>>>>> "David" == David Grant <[EMAIL PROTECTED]> writes:
David> I have a look like this: for i,_ in
David> enumerate(myRunObject.results[0]): pylab.plot(x, counts[i])
David> That will plot a bunch of curves and I would like the point
David> style to change as well as the colour (which changes
David> automatically). Is there a nice way to do this? The only
David> idea I had was to make a list of the possible point styles
David> that I like and grab a point style from that list according
David> to the index = mod(i, len(listOfPointStyles))
The linestyles can be obtained as the keys of the
matplotlib.lines.lineStyles dictionary; the markers are the keys of
the matplotlib.lines.lineMarkers dictionary
In [95]: matplotlib.lines.lineStyles.keys()
Out[95]: ['None', '--', '-.', '-', 'steps', ':']
In [96]: matplotlib.lines.lineMarkers.keys()
Out[96]: [0, 1, 2, 3, '+', ',', '.', '1', '3', '2', '4', '<','>',
'None', 'D', 'H', '_', '^', 'd', 'h', 'o', 'p', 's', 'v',
'x', '|']
The list of valid colornames are the keys of the
matplotlib.colors.cnames dictionary
In [97]: import matplotlib.colors
In [98]: colors = matplotlib.colors.cnames.keys()
In [99]: len(colors)
Out[99]: 139
In [100]: colors.sort()
In [101]: colors[:5]
Out[101]: ['aliceblue', 'antiquewhite', 'aqua', 'aquamarine', 'azure']
Darren -- something for the user's guide?
JDH
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users