Re: [Matplotlib-users] removing a line with its label from an axes

2009-06-30 Thread C Lewis
Try calling legend() again once you've changed the lines; in ipython - pylab, this x = linspace(-10, 10, 101) sub = subplot(111) plot(x, x**2, label=x^2) plot(x, x**3, label=x^3) legend() #Two lines, two legend entries sub.lines[0].remove() #One line, two legend entries

[Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-25 Thread C Lewis
In matplotlib.mlab.csv2rec in 0.91.2 (*) headers = reader.next() fails with Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode? Which sounds like a good idea, but I can't figure out how to specify that in/with/before calling

Re: [Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-25 Thread C Lewis
soilrec.dtype triangleplot_demo.csv Description: Binary data triangleplot_demo2.csv Description: Binary data thanks! On Jan 25, 2009, at 1:27 PM, John Hunter wrote: On Sun, Jan 25, 2009 at 3:23 PM, C Lewis chle...@nature.berkeley.edu wrote: In matplotlib.mlab.csv2rec in 0.91.2

Re: [Matplotlib-users] plot a data stream with matplotlib

2009-01-18 Thread C Lewis
you give me a little example of add_current_state_to_plot function? Because I don't know the right way to update: do I have to pass all the array, or just the new values? best regards, simone 2009/1/18 C Lewis chle...@nature.berkeley.edu: Guessing about what you want: Does the class

Re: [Matplotlib-users] Color themes

2009-01-17 Thread C Lewis
Someplace to start: from matplotlib import cm shade = cm.bone_r cmstep = shade.N/len(vg_bulk) #TODO: even *more* elegant to space colors by time elapsed for ii in range(len(vg_bulk)): hue = shade(ii*cmstep) #convert to moles for iii in (0,1,2):