custom symbols for scatter

Juan Fiol <fiolj@...9...> writes:

Hi, I am trying to put a sphere (rather than circles or disks) as
markers for a plot.

One approach could be to make a PatchCollection of suitable patches -
see

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

for an example of PatchCollection, and

http://matplotlib.sourceforge.net/examples/pylab_examples/dolphin.html

for a fairly complicated user-defined Patch. Matplotlib doesn't do any
gradient fills yet, so you're a little limited in drawing the sphere.

Another option is to make a bitmap drawing of a sphere in e.g. Gimp and
put multiple copies of it at various coordinates, but I don't think this
is well-supported currently.

···

--
Jouni K. Sepp�nen
http://www.iki.fi/jks