Re: [Matplotlib-users] Axes.frame vs. Axes.spines in SVN Basemap and Matplotlib? (was New contourf()...)

2009-06-16 Thread Jeff Whitaker
Andrew Straw wrote: > Zane Selvans wrote: > >> Yep, looks like the trunk has fixed the contourf() issue. >> >> Unfortunately there also seems to be some new incompatibility with the >> Basemap toolkit, even after re-installing Basemap from source. I get: >> >> AttributeError: Axes.frame was rem

Re: [Matplotlib-users] Axes.frame vs. Axes.spines in SVN Basemap and Matplotlib? (was New contourf()...)

2009-06-16 Thread Andrew Straw
Zane Selvans wrote: > Yep, looks like the trunk has fixed the contourf() issue. > > Unfortunately there also seems to be some new incompatibility with the > Basemap toolkit, even after re-installing Basemap from source. I get: > > AttributeError: Axes.frame was removed in favor of Axes.spines

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread Sebastian Haase
On Tue, Jun 16, 2009 at 10:39 PM, John Hunter wrote: > On Tue, Jun 16, 2009 at 3:32 PM, Sebastian Haase > wrote:> On Tue, Jun 16, 2009 at 6:54 PM, John > Hunter wrote: > >> Is there a similar function (to im.set_array) for graph plots ? > > for lines you would use line.set_data (or set_ydata, set_x

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread John Hunter
On Tue, Jun 16, 2009 at 3:32 PM, Sebastian Haase wrote:> On Tue, Jun 16, 2009 at 6:54 PM, John Hunter wrote: > Is there a similar function (to im.set_array) for graph plots ? for lines you would use line.set_data (or set_ydata, set_xdata). Eg http://matplotlib.sourceforge.net/examples/animation

Re: [Matplotlib-users] Axes.frame vs. Axes.spines in SVN Basemap and Matplotlib? (was New contourf()...)

2009-06-16 Thread Zane Selvans
Yep, looks like the trunk has fixed the contourf() issue. Unfortunately there also seems to be some new incompatibility with the Basemap toolkit, even after re-installing Basemap from source. I get: AttributeError: Axes.frame was removed in favor of Axes.spines when I attempt to call: drawmapb

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread Sebastian Haase
On Tue, Jun 16, 2009 at 6:54 PM, John Hunter wrote: > On Tue, Jun 16, 2009 at 11:42 AM, Randy Heiland wrote: >> Can someone point me to the "best" way to dynamically update a 2D >> [image] array (think of cellular automata)?  E.g., this simple example >> works, but gets sluggish after several itera

Re: [Matplotlib-users] trying to plot polar data

2009-06-16 Thread Sandro Tosi
Hi Mathew, On Tue, Jun 16, 2009 at 21:20, Yeates, Mathew C wrote: > Hi > > I am running the following snippet > > ax = axes(polar=True) > > polar(angles,mag,'bo') please include a full, working example: with this so few information we can help a little. > and I get the attached plot no attached

[Matplotlib-users] beginner help: color map plot from raw data

2009-06-16 Thread Nathaniel Echols
I'm attempting to plot the distribution of bond angles in protein structures (the best-known example: http://en.wikipedia.org/wiki/Ramachandran_plot). I have the raw data as a collection of x,y,z data, where x and y are integers between -180 and 180, and z is a floating-point value. (Right now, t

[Matplotlib-users] trying to plot polar data

2009-06-16 Thread Yeates, Mathew C
Hi I am running the following snippet ax = axes(polar=True) polar(angles,mag,'bo') and I get the attached plot How do make the dashed lines continue inward? How do choose the spacing? How do remove the ugly text? Mathew

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread John Hunter
On Tue, Jun 16, 2009 at 11:42 AM, Randy Heiland wrote: > Can someone point me to the "best" way to dynamically update a 2D > [image] array (think of cellular automata)? E.g., this simple example > works, but gets sluggish after several iterations: Use im.set_array rather than making multiple call

[Matplotlib-users] dynamic image update

2009-06-16 Thread Randy Heiland
Can someone point me to the "best" way to dynamically update a 2D [image] array (think of cellular automata)? E.g., this simple example works, but gets sluggish after several iterations: import numpy as N import pylab as P nx = 20 ny = 20 c = N.zeros(nx*ny, dtype='int8') c.resize(ny,nx) ite

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-16 Thread Michiel de Hoon
I can't reproduce this error with the current code in SVN trunk, but I remember seeing this bug a while ago. So I'm guessing that this bug has already been fixed in SVN. Zane, could you try installing the latest matplotlib from trunk and see if you still see this bug? --Michiel --- On Mon, 6