Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread tva
Thanks JJ, but unfortunately this is not the solution. draw() gives the same result. - and I am running this as a script (running it from ipython shell). Any clue? Jae-Joon Lee wrote: I presume you're running that script in interactive shell? Try draw() instead of show(). Regards,

[Matplotlib-users] Re : slow rendering of 2K images using Animation_blit_tk.py - bis

2009-09-07 Thread Auré Gourrier
OK, thanks JJ, I just wanted to make sure I was not missing something. I guess I'll have to check how it goes once rebinned. Cheers, Auré De : Jae-Joon Lee lee.j.j...@gmail.com À : Auré Gourrier aurelien.gourr...@yahoo.fr Cc :

Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread Michiel de Hoon
Any idea why there is such a difference between 0.98.5.3 and 0.99 ?? Drawing the whole figure once, when no further Python input is available, is much more efficient than drawing after each plot() command. For some figures, matplotlib 0.98.5.3 becomes extremely slow. Thanks JJ, but

Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread tva
Hi Michiel thanks, but does that explain why the script works smoothly in 0.98.6 and earlier versions? Plotting all the curves at the end of the script is certainly possible, but it is a severe reduction of the functionallity. given the fact that it works so well in earlier versions of

[Matplotlib-users] Fetching a data slab with NetCDFFile

2009-09-07 Thread Arthur M. Greene
Hi All, The problem is not with fetching the data slice itself, but finding the correct indices to specify, particularly with the time dimension. The below examples refer to a remote dataset that I can open and slice using indices, as in slice = remoteobj.variables['tas'][:120,20:40,30:50].

Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread tva
Problem solved. The backend was set to Qt4Agg. Once set to TkAgg everything works. I don't get it but it works.. tva wrote: Hi Michiel thanks, but does that explain why the script works smoothly in 0.98.6 and earlier versions? Plotting all the curves at the end of the script

[Matplotlib-users] grid on log-plots

2009-09-07 Thread jihi
Hi, can anybody tell me how to get gridlines in a logarithmic plot? i tried eg.: loglog([1,10,100], [1,10,100]) grid(True) but neither the grid is drawn, nor an error occur. When i make a linear plot, grid(True) works fine and draws the grid. (win32, python 2.6, matplotlib 0.99) Thanks

[Matplotlib-users] Ploting Date

2009-09-07 Thread Javier Olaechea
Oi, I'm having trouble ploting some values vs date with matplotlib. I get the data from an SQL server using the _mssql module after the query I tried populating the list using: [code] xls = [] yls = [] for row in conn: xls.append(row['Ia']) yls.append(row['tiempo']) [/code]

Re: [Matplotlib-users] Segmentation fault with EPS output on matplotlib =0.98.5.2

2009-09-07 Thread Ewald Zietsman
I'm using 'xpdf' now, I think it must be ghostscript acting up. I only need eps output infrequently so I'll stick with this workaround for the moment. On Mon, Sep 7, 2009 at 4:28 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: I cannot reproduce this error. And I'm not sure if this is a bug in

Re: [Matplotlib-users] grid on log-plots

2009-09-07 Thread Sebastian Busch
jihi wrote: ... can anybody tell me how to get gridlines in a logarithmic plot? ... from matplotlib.pyplot import * plot([1,10,100],[1,10,100]) grid() yscale('log') xscale('log') works here. best, sebastian. signature.asc Description: OpenPGP digital signature

Re: [Matplotlib-users] cannot plot in loops with matplotlib 0.99. 0.98 works fine

2009-09-07 Thread Jae-Joon Lee
On Mon, Sep 7, 2009 at 1:02 PM, tvat...@brygge.dk wrote: Problem solved. The backend was set to Qt4Agg. Once set to TkAgg everything works. I don't get it but it works.. I think an explicit call of draw() in the interactive mode (e.g. with ipython -pylab) should update the figure

Re: [Matplotlib-users] Fetching a data slab with NetCDFFile

2009-09-07 Thread David Huard
Arthur, I wrote the date2index function and I think what you are seeing is a bug that I fixed a couple of months ago. By using the latest version of netcdf4-python, not only should this bug disappear, but you'll also find that date2index now supports different selection methods: 'exact',