From: Jouni K. S. <jk...@ik...> - 2009-04-27 16:28:28
|
Juan Fiol <fi...@ya...> 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 |