Re: [Matplotlib-users] can plot only one time in windows

2007-05-29 Thread Jeff Whitaker
Emmanuel Favre-Nicolin wrote: > Hi, > > I can plot only one time in windows. The second time, the window > appears without the tools and when I click on the windows it become > white and freezes. Here is a code : > > from pylab import * > x=arange(5) > y=x*x > plot(x,y) > show() > plot(x,y) > sho

[Matplotlib-users] can plot only one time in windows

2007-05-29 Thread Emmanuel Favre-Nicolin
Hi, I can plot only one time in windows. The second time, the window appears without the tools and when I click on the windows it become white and freezes. Here is a code : from pylab import * x=arange(5) y=x*x plot(x,y) show() plot(x,y) show() ---

Re: [Matplotlib-users] Basemap - coastlines overlay question

2007-05-29 Thread Jeff Whitaker
James Boyle wrote: > Thanks Jeff, it works. > where is the reference to explain exactly what 'zorder' does and its > proper use? > > --Jim > Jim: See zorder_demo.py in the examples - the comments explain it pretty well. I've cut and pasted below: """ The default drawing order for axes is patc

[Matplotlib-users] updating an existing plot

2007-05-29 Thread Trevis Crane
Hi, I'm making contour plots of a field distribution, and overlaid on that is a grid that I create using hlines() and vlines(). I want to change the contour plot many times, but keep the grid the same. Right now, I have clear the axes with cla() then plot the new contour and replot the grid.

[Matplotlib-users] Possible bug in annotate

2007-05-29 Thread John Travers
Hi all, I think there may be a bug in annotate. If I don't have any offset between the xcoord of xy and xytext I get a zero division error. Otherwise it is fine. For example: In [3]: plot([1,2,3],[1,2,3]) Out[3]: [] In [4]: annotate('hello', xy=(2.0,2.0), xytext=(2.0,1.5), arrowprops=dict(facecol

Re: [Matplotlib-users] Basemap - coastlines overlay question

2007-05-29 Thread Jeff Whitaker
James Boyle wrote: > The code at the end of this message is a toy example which shows the > problem I am encountering. > OS X 10.4.9 basemap 0.9.5 (Numeric 24.2 and Numpy 1.0) python 2.5 > > I define a map projection using Basemap, and then plot a number of > markers at various geographical lo

[Matplotlib-users] Basemap - coastlines overlay question

2007-05-29 Thread James Boyle
The code at the end of this message is a toy example which shows the problem I am encountering. OS X 10.4.9 basemap 0.9.5 (Numeric 24.2 and Numpy 1.0) python 2.5 I define a map projection using Basemap, and then plot a number of markers at various geographical locations. I would like the map

Re: [Matplotlib-users] figure dpi output problem

2007-05-29 Thread Antonino Ingargiola
Hi, 2007/5/26, Steve Schmerler <[EMAIL PROTECTED]>: > Jeff Whitaker wrote: > > [EMAIL PROTECTED] wrote: [cut] > > I get a 600x300 png with that script, using the latest SVN. > > > > -Jeff > > > > Me too, on Linux, mpl 0.90dev3131. Me too with MPL 0.87.7 on Debian Etch. ~ Antonio --

Re: [Matplotlib-users] Setting axes at the origin

2007-05-29 Thread Antonino Ingargiola
Hi, 2007/5/24, Michael Hogue <[EMAIL PROTECTED]>: > Hi, > > I'm wondering how to use matplotlib to > plot on axes that intersect at the > origin, as in the following picture: > > | > | > | > | > |(0,0) >