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
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
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
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
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):