markers are vector paths, so I don't think you can use images as markers. But you may overlay your images using imshow. The tricky part is to figure out the extents of the image.
You may use OffsetImage http://matplotlib.sourceforge.net/trunk-docs/examples/pylab_examples/demo_annotation_box.html But, it is only available in the svn version of matplotlib. For example, you may do something like below import matplotlib.pyplot as plt from matplotlib.offsetbox import OffsetImage, AnnotationBbox import numpy as np if 1: ax = plt.subplot(111) xx = [0.22, 0.5, 0.83] yy = [0.5, 0.43, 0.63] ax.plot(xx, yy, "-") arr = np.arange(100).reshape((10,10)) im = OffsetImage(arr, zoom=2) for x1, y1 in zip(xx, yy): ab = AnnotationBbox(im, (x1, y1), xycoords='data', frameon=False) ax.add_artist(ab) -JJ On Tue, Feb 23, 2010 at 9:07 AM, t putkonen <teeputko...@gmail.com> wrote: > I would like to use custom symbols (markers) on both line charts and scatter > charts. The symbols I would like to use are currently stored in PNG files. > Is there a way to convert these images to markers? Symbols are pretty simple > and contain only one colour, and the background should be transparent. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users