Symbol plotting

Is there a standard way to add fixed-size, arbitrary-design symbols to axes?
- Their position must be given in data coordinates
- Their size must be given in physical coordinates (inches/points)

They basically need to behave like plot markers, but with the ability to specifiy arbitrary designs.
e.g. See http://commons.wikimedia.org/wiki/File:Cloud_cover_3.svg for an example symbol.

Currently I'm defining my symbols using a sequence of Patch objects, and then using PatchCollection (with its offsets and transOffset properties, and its set_transform() method) to do the positioning/scaling.

Is there a better way?

Any suggestions gratefully received!

Thanks

Richard Hattersley, on 2011-07-13 09:58, wrote:

Is there a standard way to add fixed-size, arbitrary-design symbols to axes?
- Their position must be given in data coordinates
- Their size must be given in physical coordinates (inches/points)

They basically need to behave like plot markers, but with the ability to specifiy arbitrary designs.
e.g. See http://commons.wikimedia.org/wiki/File:Cloud_cover_3.svg for an example symbol.

Currently I'm defining my symbols using a sequence of Patch objects, and then using PatchCollection (with its offsets and transOffset properties, and its set_transform() method) to do the positioning/scaling.

Is there a better way?

This looks similar enough:

http://matplotlib.sourceforge.net/examples/api/scatter_piecharts.html

best,

ยทยทยท

--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7