[Matplotlib-users] How do I make a legend for Line2D objects in Basemap, colored using a colormap?

2008-10-08 Thread Zane Selvans
I'm plotting a bunch of lines on a map. They're being colored according to the value of an attribute associated with the objects they represent, using a colormap. However, I also need to create a colorbar to act as a legend, describing what the colors of the lines means, in terms of value

Re: [Matplotlib-users] Animation and imshow

2008-10-08 Thread Alan G Isaac
On 10/7/2008 6:23 PM Michael apparently wrote: > loop through the data and call clf(): The clf call seems quite wrong: it flashes horribly and I get good behavior without it (once I add a call to sleep). What am I missing? Alan Isaac PS The following almost works (i.e., works, but then exits wi

Re: [Matplotlib-users] Axis limits for dynamic plot.

2008-10-08 Thread Venkat Ramanan
John Hunter wrote: > Unfortunatelym the API for the > latter has changed somewhat from 0.91 to 0.98, so I hesitate to tell > advise you to do this with 0.91 since it will break when you upgrade. > Please let me know the instructions as if the version is 0.98. I'll upgrade to it soon. Thanks, V

Re: [Matplotlib-users] latest debian package

2008-10-08 Thread Ondrej Certik
On Wed, Oct 8, 2008 at 6:46 PM, Angus McMorland <[EMAIL PROTECTED]> wrote: > Hi all, > > This is just a head's-up for those using debian and who upgrade > regularly. There's a problem with the latest debian package to hit > testing: 0.98.1-1, which is currently unusable, throwing up the error: > >

Re: [Matplotlib-users] Axis limits for dynamic plot.

2008-10-08 Thread John Hunter
On Wed, Oct 8, 2008 at 12:23 PM, Venkat Ramanan <[EMAIL PROTECTED]> wrote: > for i in p.arange(1,nframes): >A=2*p.sin(2*p.pi*(1/float(2*nframes))*i) >sindata=A*p.sin(x) >line.set_ydata(sindata) # update the data >p.draw() # redraw the canvas The autoscalin

[Matplotlib-users] Axis limits for dynamic plot.

2008-10-08 Thread Venkat Ramanan
Hi all, I'm trying to do a plot which is dynamically updated. However, the axis limits remain fixed even when the data goes out of the current ylim. Is there an easy way to keep the axis limits updated when the data gets updated? I've trivially modified the anim.py example to show the problem.

[Matplotlib-users] latest debian package

2008-10-08 Thread Angus McMorland
Hi all, This is just a head's-up for those using debian and who upgrade regularly. There's a problem with the latest debian package to hit testing: 0.98.1-1, which is currently unusable, throwing up the error: ImportError: /usr/lib/python2.5/site-packages/matplotlib/nxutils.so: undefined symbol:

Re: [Matplotlib-users] Dropped mplot3d support? Any alternative?!

2008-10-08 Thread Vincent Favre-Nicolin
On mercredi 08 octobre 2008, John [H2O] wrote: > Is there an alternative set up in matplotlib 0.98? I've just finished the > migration and porting my code so that basemap will work properly! Also, I > would really prefer not to use too many packages as it becomes difficult to > switch syntax consta

[Matplotlib-users] Dropped mplot3d support? Any alternative?!

2008-10-08 Thread John [H2O]
I was discouraged to read recently on Scipy's Cookbook / Matplotlib / mplot3D entry: "The examples below show simple 3D plots using matplotlib. matplotlib's 3D capabilities were added by incorporating John Porter's mplot3d module, thus no additional download is required any more, the following ex