I am trying to get do a 3D scatter plot, but the only markers that seems to work are so large that they start overlapping. I would like to just use '.'
or ','
, but I always get bumped to using 'o'
. I could live with those if markersize
would work in 3D plots. Is there a way around this?
For scatter
, '.'
is for point markers and ','
is for pixel markers. When I attempt to use them, however, I get a ValueError
claiming they do not exist, but that is likely due to using matplotlib v1.0.1; the changelog for v1.1.x includes a comment on markers:
There is now a common set of markers for all plotting functions. Previously, some markers existed only for
scatter()
or just forplot()
. This is now no longer the case.
There is a table of the markers available for scatter
in the documentation that you can try out. There is also an example in the gallery with a scatter plot using different markers.
Marker size is also controllable in scatter
, either with a scalar argument or an array to specify the size for each point. Take a look at the s
formal parameter in the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With