Changing symbols on the fly

I have a look like this:

for i,_ in enumerate(myRunObject.results[0]):
    pylab.plot(x, counts[i])

That will plot a bunch of curves and I would like the point style to change as well as the colour (which changes automatically). Is there a nice way to do this? The only idea I had was to make a list of the possible point styles that I like and grab a point style from that list according to the index = mod(i, len(listOfPointStyles))

···


David Grant
http://www.davidgrant.ca

i've gone something similar using separate masked arrays on my data set,
see
http://www.scipy.org/Cookbook/Matplotlib/Plotting_values_with_masked_arrays, for how to do this.

···

On Thu, 2006-08-10 at 15:40 -0700, David Grant wrote:

I have a look like this:

    for i,_ in enumerate(myRunObject.results[0]):
        pylab.plot(x, counts[i])

That will plot a bunch of curves and I would like the point style to
change as well as the colour (which changes automatically). Is there a
nice way to do this? The only idea I had was to make a list of the
possible point styles that I like and grab a point style from that
list according to the index = mod(i, len(listOfPointStyles))

--
David Grant
http://www.davidgrant.ca
-------------------------------------------------------------------------
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 Matplotlib-users@lists.sourceforge.net matplotlib-users List Signup and Options

--
Rick Albright
Senior Quantitvative Analyst
Indie Research, LLC
254 Witherspoon Street
Princeton, NJ 08542
(609)497-1030
ralbright@...1184...