Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

## Re: [Matplotlib-users] per-element marker - possible? how to?

 Re: [Matplotlib-users] per-element marker - possible? how to? From: Jouni K. Seppänen - 2009-08-22 06:11:30 ```John Owens writes: > plot([1,2,3], [1,4,9], markerlist=['A', 'B', 'C']) > > and have it draw the first point with a rendered > letter 'A', the second with a 'B', and the third with > a 'C'. You could do text(1,1,'A') text(2,4,'B') text(3,9,'C') -- Jouni K. Seppänen http://www.iki.fi/jks ```

 [Matplotlib-users] per-element marker - possible? how to? From: John Owens - 2009-08-22 03:05:26 ```So I can do: plot([1,2,3], [1,4,9], marker='+') and it'll draw 3 points each with a + marker. What I'd really like to do is plot([1,2,3], [1,4,9], markerlist=['A', 'B', 'C']) and have it draw the first point with a rendered letter 'A', the second with a 'B', and the third with a 'C'. 1) Not sure how to draw a letter as my marker - are markers limited to those in the marker list? Is that possible? 2) And is it possible to have a different marker for each point in a dataset, specified by a vector? I guess I could draw a separate plot for each point, but that's an enormous kludge. JDO ```
 Re: [Matplotlib-users] per-element marker - possible? how to? From: Jouni K. Seppänen - 2009-08-22 06:11:30 ```John Owens writes: > plot([1,2,3], [1,4,9], markerlist=['A', 'B', 'C']) > > and have it draw the first point with a rendered > letter 'A', the second with a 'B', and the third with > a 'C'. You could do text(1,1,'A') text(2,4,'B') text(3,9,'C') -- Jouni K. Seppänen http://www.iki.fi/jks ```
 Re: [Matplotlib-users] per-element marker - possible? how to? From: John Owens - 2009-08-22 18:49:37 ```Jouni K. Seppänen writes: > John Owens writes: > > > plot([1,2,3], [1,4,9], markerlist=['A', 'B', 'C']) > > > > and have it draw the first point with a rendered > > letter 'A', the second with a 'B', and the third with > > a 'C'. > > You could do > > text(1,1,'A') > text(2,4,'B') > text(3,9,'C') Quite sensible, thanks! DW also suggests "You can use the 'hold' command to plot multiple vectors on the same plot, each with its own marker." Neither of those is ideal - it would be much nicer to be able to pass either a {marker list, text list} as an argument to the plot command directly - but at least the workaround is reasonable. JDO ```