Slightly larger markers?

Matplotlib seems to support two sizes of default markers, "much too
small" or "much too big." Nothing I tried from the table on this page

http://matplotlib.org/api/markers_api.html

was in the Goldilocks zone. :slight_smile:

This example:

http://matplotlib.org/examples/lines_bars_and_markers/marker_reference.html

suggests the "." marker should be more reasonably sized, but it's
still pretty darn big. By my crude estimates, the comma marker is a
single pixel, while the dot marker is a circle with diameter five
pixels. Am I missing something predefined which has a size in between
the comma and dot markers, maybe just a square marker with side length
two pixels?

I see that you can create custom markers. I suspect this will work
(though be a bit clunky). I'm not finding many examples, however, so
far just this marker_path example:

http://matplotlib.org/examples/pylab_examples/marker_path.html

The target is a command line plotting tool, so I'll probably have to
provide a way for users to map between marker characters and pickled
markers.

Thx,

Skip Montanaro

Why not just provide your own size?

2017-01-07 15:01 GMT+03:00 Skip Montanaro <skip.montanaro at gmail.com>:

Matplotlib seems to support two sizes of default markers, "much too
small" or "much too big." Nothing I tried from the table on this page

http://matplotlib.org/api/markers_api.html

was in the Goldilocks zone. :slight_smile:

This example:

http://matplotlib.org/examples/lines_bars_and_
markers/marker_reference.html

suggests the "." marker should be more reasonably sized, but it's
still pretty darn big. By my crude estimates, the comma marker is a
single pixel, while the dot marker is a circle with diameter five
pixels. Am I missing something predefined which has a size in between
the comma and dot markers, maybe just a square marker with side length
two pixels?

I see that you can create custom markers. I suspect this will work
(though be a bit clunky). I'm not finding many examples, however, so
far just this marker_path example:

http://matplotlib.org/examples/pylab_examples/marker_path.html

The target is a command line plotting tool, so I'll probably have to
provide a way for users to map between marker characters and pickled
markers.

Thx,

Skip Montanaro
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
Matplotlib-users Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170107/d9a5ee5b/attachment.html&gt;

Thanks. Didn't see it in the documentation.

Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170107/26d156b7/attachment.html&gt;

···

On Sat, Jan 7, 2017 at 6:08 AM, Ilya Flyamer <flyamer at gmail.com> wrote:

Why not just provide your own size?
python - pyplot scatter plot marker size - Stack Overflow
scatter-plot-marker-size