3d plot without marker edge

Hi,

I have a 3d plot that I am trying to plot and I can not get rid of the marker edge. an example would help

Bryn

What have you tried -- if line is a Line3D object, the following should work:

  line.set_markeredgecolor('None')

Note that 'None' is a string here, not the python object None. This
is because None in matplotlib properties means do the default, ie the
default value specified in matplotlibrc

http://matplotlib.sourceforge.net/users/customizing.html

JDH

···

On Fri, Oct 15, 2010 at 3:10 AM, Robert Fenwick <robert.fenwick@...2162...> wrote:

I have a 3d plot that I am trying to plot and I can not get rid of the marker edge. an example would help

Since you are talking about markers, I assume that you made the plot with the scatter() function.

The scatter() function creates the appropriate collection of patches (polygon, circle, etc.) depending on what the marker style was passed to it. As such, the normal ‘marker*’ properties do not work, as there is just a collection patches that is being drawn. So the properties that you are looking for in your situation are here:

http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.PatchCollection

I believe that the property you are looking for is ‘edgewidth’. E.g. (and I think this is right, but not where I can test right now):

the_artist.set_edgewidth(0.0)

Which I believe will work, or you may have to do

the_artist.set_edgewidths((0.0,))

But anyway, hopefully this is enough to set you on your way.

···

On Fri, Oct 15, 2010 at 4:10 AM, Robert Fenwick <robert.fenwick@…2162…> wrote:

Hi,

I have a 3d plot that I am trying to plot and I can not get rid of the marker edge. an example would help

Bryn


Download new Adobe® Flash® Builder™ 4

The new Adobe® Flex® 4 and Flash® Builder™ 4 (formerly

Flex® Builder™) enable the development of rich applications that run

across multiple browsers and platforms. Download your free trials today!

http://p.sf.net/sfu/adobe-dev2dev


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Daniel Hyams
dhyams@…287…

Ugh, if I could only undo an email send 20 seconds after I hit go :wink:

If setting ‘edgewidths’ to 0 doesn’t work, try setting ‘edgecolors’ to ‘None’ as per JDH’s suggestion above, which is the same suggestion as mine except for the “marker” part of the property is removed.

···

On Fri, Oct 15, 2010 at 10:32 AM, Daniel Hyams <dhyams@…985…> wrote:

Since you are talking about markers, I assume that you made the plot with the scatter() function.

The scatter() function creates the appropriate collection of patches (polygon, circle, etc.) depending on what the marker style was passed to it. As such, the normal ‘marker*’ properties do not work, as there is just a collection patches that is being drawn. So the properties that you are looking for in your situation are here:

http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.PatchCollection

I believe that the property you are looking for is ‘edgewidth’. E.g. (and I think this is right, but not where I can test right now):

the_artist.set_edgewidth(0.0)

Which I believe will work, or you may have to do

the_artist.set_edgewidths((0.0,))

But anyway, hopefully this is enough to set you on your way.

On Fri, Oct 15, 2010 at 4:10 AM, Robert Fenwick <robert.fenwick@…2162…> wrote:

Hi,

I have a 3d plot that I am trying to plot and I can not get rid of the marker edge. an example would help

Bryn


Download new Adobe® Flash® Builder™ 4

The new Adobe® Flex® 4 and Flash® Builder™ 4 (formerly

Flex® Builder™) enable the development of rich applications that run

across multiple browsers and platforms. Download your free trials today!

http://p.sf.net/sfu/adobe-dev2dev


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Daniel Hyams
dhyams@…287…


Daniel Hyams
dhyams@…287…