Re: [Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib

2006-12-12 Thread David Cournapeau
John Hunter wrote: This is where you can help us. Saying specgram is slow is only marginally more useful than saying matplotlib is slow or python is slow. What is helpful is to post a complete, free-standing script that we can run, with some attached performance numbers. For starters, just run

[Matplotlib-users] matplotlib *EGG* installation works on Fedora but not Debian Etch..

2006-12-12 Thread chris
Yes we all know the normal install of Matplotlib is rock solid and reliable. I'm having trouble doing an "egg" (setuptools) install of matplotlib. (I'm hoping eggs will be a nice way to have uniform install instructions across all OSes.) I got numpy egg installed but got this when I tried matplo

Re: [Matplotlib-users] Plotting non-rectangular data on maps

2006-12-12 Thread Jeff Whitaker
Orion Poplawski wrote: > Jeff Whitaker wrote: >> Orion Poplawski wrote: >>> I've got a 2-D array of values that I'd like to plot onto a map with >>> Basemap. The latitude and longitudes for each point are stored in >>> their own 2-D array that matches that of the values. Can some one >>> help

Re: [Matplotlib-users] Plotting non-rectangular data on maps

2006-12-12 Thread Jeff Whitaker
Orion Poplawski wrote: > I've got a 2-D array of values that I'd like to plot onto a map with > Basemap. The latitude and longitudes for each point are stored in their > own 2-D array that matches that of the values. Can some one help with > how to do this? Looks like basemap requires a squar

[Matplotlib-users] Plotting non-rectangular data on maps

2006-12-12 Thread Orion Poplawski
I've got a 2-D array of values that I'd like to plot onto a map with Basemap. The latitude and longitudes for each point are stored in their own 2-D array that matches that of the values. Can some one help with how to do this? Looks like basemap requires a square and uniform set of data to p

Re: [Matplotlib-users] Contours message error

2006-12-12 Thread Eric Firing
Pierre, I will try to improve it. Eric Pierre GM wrote: > Folks, > Would it be possible to switch the current error message > > ValueError: Arguments x, y, z, mask (if present) must be 2D arrays. > > > in cntr.c to something more explicit, when x, y, and z are 2D arrays, but > one >

Re: [Matplotlib-users] question about imshow

2006-12-12 Thread Eric Firing
This slightly modified excerpt from the new version of spy may do what you want: nr, nc = Z.shape extent = [-0.5, nc-0.5, nr-0.5, -0.5] return self.imshow(Z, interpolation='nearest', extent=extent, origin='upper') Eric John Travers wrote: > Hi, I'm struggling to get an

Re: [Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib

2006-12-12 Thread Fernando Perez
On 12/12/06, John Hunter <[EMAIL PROTECTED]> wrote: > --verbose-helpful will confirm the setting). A good way to start is > to write a demonstration script that you find too slow which makes a > call to savefig, and run it with > > > time myscript.py --verbose-helpful -dAgg It may be worth men

Re: [Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib

2006-12-12 Thread John Hunter
> "David" == David Cournapeau <[EMAIL PROTECTED]> writes: David> Hi, I am a regular user of matplotlib since I moved from David> matlab to python/numpy/scipy. Even if I find matplotlib to David> be a real help during the transition from matlab to python, David> I must confess I

Re: [Matplotlib-users] question about imshow

2006-12-12 Thread John Travers
On 12/12/06, Pierre GM <[EMAIL PROTECTED]> wrote: > On Tuesday 12 December 2006 06:57, John Travers wrote: > > Hi, I'm struggling to get an array plotted the way I want with imshow. > > I have an array A which i try to plot with > > > > e=(tdims[0], tdims[-1], wldims[-1], wldims[0]) > > imshow(A,ex

Re: [Matplotlib-users] question about imshow

2006-12-12 Thread Pierre GM
On Tuesday 12 December 2006 06:57, John Travers wrote: > Hi, I'm struggling to get an array plotted the way I want with imshow. > I have an array A which i try to plot with > > e=(tdims[0], tdims[-1], wldims[-1], wldims[0]) > imshow(A,extent=e) > > if I set extent correctly, the image is scaled >

[Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib

2006-12-12 Thread David Cournapeau
Hi, I am a regular user of matplotlib since I moved from matlab to python/numpy/scipy. Even if I find matplotlib to be a real help during the transition from matlab to python, I must confess I found it the most disappointing compare other packages ( essentially numpy/scipy/ipython). This i

[Matplotlib-users] question about imshow

2006-12-12 Thread John Travers
Hi, I'm struggling to get an array plotted the way I want with imshow. I have an array A which i try to plot with e=(tdims[0], tdims[-1], wldims[-1], wldims[0]) imshow(A,extent=e) The image displays fine in the x axis, with tdims marked correctly, but in the yaxis the dimensions are incorrect. An

Re: [Matplotlib-users] spy ignores negative values?

2006-12-12 Thread Robert Cimrman
Eric Firing wrote: > Robert Cimrman wrote: > [...] >> What could be done, though, is to raise an exception explaining that >> sparse matrices and the image mode don't like each other; as it is, >> the function spy3 just dies on asarray (should be st. like asarray( >> Z.todense() )) > > (I think

[Matplotlib-users] problem with memory

2006-12-12 Thread Андрей Абрамов
(sorry for my English) The following code in Python causes leakage of memory: from pylab import * import pygtk pygtk.require('2.0') import gtk import matplotlib matplotlib.use('GTKAgg') # or 'GTK' from matplotlib.backends.backend_gt

[Matplotlib-users] Contours message error

2006-12-12 Thread Pierre GM
Folks, Would it be possible to switch the current error message >>> ValueError: Arguments x, y, z, mask (if present) must be 2D arrays. in cntr.c to something more explicit, when x, y, and z are 2D arrays, but one of them is complex ? Or force a downcast to float if needed ? (I know, I should