Re: [Matplotlib-users] test before show

2009-04-13 Thread Douglas Macdonald
Dear Eric and John, Thank both for your help. John, I'll use your solution for now. Eric, when it comes through my repository, I'll try your solution. Again thanks. Best, Douglas 2009/4/13 Eric Firing efir...@hawaii.edu: John Hunter wrote: On Thu, Apr 9, 2009 at 4:02 PM, mm2ps

Re: [Matplotlib-users] How to plot 2d histogram with the same scale!!

2009-04-13 Thread Jouni K . Seppänen
siz siz cute.man...@gmail.com writes: I have 2 plots and want them have the same colorbar scale so that I could compare the minima or maxima. You can do it like this: mn = min(data1.min(), data2.min()) mx = max(data1.max(), data2.max()) norm = matplotlib.colors.Normalize(mn, mx) figure();

Re: [Matplotlib-users] How do I install Matplotlib 0.98 on Ubuntu 8.04 Hardy Heron?

2009-04-13 Thread Michael Droettboom
One of the cool things about Debian-esque distros is you can say: apt-get build-dep python-matplotlib which will install all of the build dependencies for matplotlib. It will download a lot, but if bandwidth/disk space is not an issue, it's nicely automated. That's one of the first things

Re: [Matplotlib-users] basemap error or user error?

2009-04-13 Thread Jeff Whitaker
antonv wrote: Hi all, I have a weird thing happening with basemap and I am not sure if it's basemap or me, but more than likely it's me :( Here is the grib file that I am using: http://downloads.75ive.com/multi_1.20090321.t18z_multi_1.wc_10m.all.grb2

[Matplotlib-users] matplotlib.pyplot.pcolor and matplotlib.pyplot.savefig unexpectedly slow

2009-04-13 Thread Jim Vickroy
Hello all, I am a matplotlib novice so I expect I am doing something inappropriate. From the attached script (matplotlib-slow.py), it will be seen that I am creating a 512x512 (numpy) array and using matplotlib to plot it. Below is the script output on my Microsoft Windows XP (service pack

[Matplotlib-users] imshow scaling

2009-04-13 Thread rmber
Is there a way to make imshow scale images to dimensions other than that of the arrya passed to it? I'm trying to plot a long matrix (like 23x5000) and imshow doesn't work very well since it makes a very vertically thin plot and its hard to see anything. I would like the image to dynamically

Re: [Matplotlib-users] imshow scaling

2009-04-13 Thread Jae-Joon Lee
Explicitly set the aspect to auto. imshow(image, aspect=auto) http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow -JJ On Mon, Apr 13, 2009 at 12:20 PM, rmber ryanmbergm...@gmail.com wrote: Is there a way to make imshow scale images to dimensions other than that

Re: [Matplotlib-users] imshow scaling

2009-04-13 Thread John Hunter
On Mon, Apr 13, 2009 at 11:20 AM, rmber ryanmbergm...@gmail.com wrote: Is there a way to make imshow scale images to dimensions other than that of the arrya passed to it? I'm trying to plot a long matrix (like 23x5000) and imshow doesn't work very well since it makes a very vertically thin

Re: [Matplotlib-users] matplotlib.pyplot.pcolor and matplotlib.pyplot.savefig unexpectedly slow

2009-04-13 Thread Jae-Joon Lee
Is there any particular reason that you have to use pcolor? My understanding is that the imshow is the fastest. Also, pcolormesh is much faster than pcolor if you use agg backend. Your script runs in a second on my linux box if I replace pcolor with pcolormesh. -JJ On Mon, Apr 13, 2009 at

Re: [Matplotlib-users] matplotlib.pyplot.pcolor and matplotlib.pyplot.savefig unexpectedly slow

2009-04-13 Thread Jim Vickroy
Jae-Joon Lee wrote: Is there any particular reason that you have to use pcolor? None whatsoever; it is simply what I first encountered in an example. My understanding is that the imshow is the fastest. Also, pcolormesh is much faster than pcolor if you use agg backend. Your script runs in

[Matplotlib-users] installing matplotlib

2009-04-13 Thread Paul de Beurs
When installing matplotlib-0.98.5.2.win32-py2.5.exe on Windows Vista I got the messages 'Could not create key matplotlib-py2.5' and 'Could not set key value Python 2.5 matplotlib-0,98.5.2'. Any idea what is wrong? --

[Matplotlib-users] tweaking automatic date formatting?

2009-04-13 Thread C M
Hi, I've asked this before but still am stuck. I want to use mpl's automatic tick locating and date formatting for a zoomable date plot, OTHER THAN the hour formatting. The default hour formatting (when zoomed in on 1 day) is like 05:00:00 UTC, but I'd like to be of the form something more

Re: [Matplotlib-users] Basemap Installation Errors

2009-04-13 Thread jtamir
Andrew Straw wrote: That's the first error -- and it's quite diagnostic. gcc can't find Python.h. Looks like I didn't have the python-dev package installed - I wasn't aware it was necessary (still relatively new to these things!). Basemap is now working correctly. Thanks for the help,

Re: [Matplotlib-users] basemap error or user error?

2009-04-13 Thread antonv
Jeff, thanks for the comment on rebuilding the lons and lats! I have attached 2 images, one that is from the whole data in the file and the other the zoomed version. http://www.nabble.com/file/p23031035/basemap_all.png basemap_all.png http://www.nabble.com/file/p23031035/basemap_zoom.png