Re: [Matplotlib-users] Nested grids

2011-06-06 Thread Benjamin Root
On Monday, June 6, 2011, Bruce Ford wrote: > Does anyone have an example of nested grids. > I need to (for instance), plot a global grid in filled contours, then plot > another, higher resolution grid over the US.The global grid could work > something like this, but I'm not sure where to start w

[Matplotlib-users] Nested grids

2011-06-06 Thread Bruce Ford
Does anyone have an example of nested grids. I need to (for instance), plot a global grid in filled contours, then plot another, higher resolution grid over the US. The global grid could work something like this, but I'm not sure where to start with the 2nd (nested) grid to go atop. fig=plt.figur

Re: [Matplotlib-users] imshow() with colorbar and custom range?

2011-06-06 Thread Eric Firing
On 06/06/2011 11:33 AM, Daniel Mader wrote: > Hi all, > > I'd like to compare two sets of data by using subplots and imshow(). I > have two issues with this: > > 1) how can I have a colorbar in each subplot? > 2) how can I adjust the range limits for a colorbar, so that the > comparison possible? >

[Matplotlib-users] imshow() with colorbar and custom range?

2011-06-06 Thread Daniel Mader
Hi all, I'd like to compare two sets of data by using subplots and imshow(). I have two issues with this: 1) how can I have a colorbar in each subplot? 2) how can I adjust the range limits for a colorbar, so that the comparison possible? Below is code which could serve as a starting point, I hop

Re: [Matplotlib-users] ImportError when I import FigureCanvasGTKAgg—seeking advice!

2011-06-06 Thread thecommexokid
I found a solution after all, from http://old.nabble.com/_backend_gdk-not-found-td26514059.html#a26514059 the thread I mentioned in the original post, which turned out not to be as cryptic as I had thought. Just as the answerer there suggested, I had PyGTK but matplotlib wasn't recognizing it

Re: [Matplotlib-users] Input array dimensions for contour or contourf

2011-06-06 Thread Mannucci, Anthony J (335G)
Benjamin, Thanks. I will point out that the contourf in Basemap behaves differently than that contourf in pylab. That is, in pylab, for contour(X,Y,Z) X,Y can be 1D whereas Z must be 2D. However, it appears that for contourf in Basemap: from mpl_toolkits.basemap import Basemap m=Basemap() g=m.c

[Matplotlib-users] no gdk backend with macports and snow leopard FIXED

2011-06-06 Thread John Jameson
OK, I just found the fix ­ within two minutes of my last email to you (after spending 6 hours on it)!! I needed to use the following variant for the macports installation (like I said, I rather new at the Mac and unix): sudo port install py26-matplotlib @1.0.1 +gtk2 for the matplotlib installatio

[Matplotlib-users] no gdk backend with macports and snow leopard

2011-06-06 Thread John Jameson
I am having the old "no gdk backend" problem with GTKAgg. I am running OS X 10.6 (Snow Leopard), and, uh, I'm kind of new to Unix :). I installed the following through Macports: python26 @2.6.6_3 (active) py26-gtk @2.22.0_1 (active) py26-matplotlib @1.0.1_3+tkinter (active) py26-numpy @1.6.0_0+at

[Matplotlib-users] cartesian/polar conversion

2011-06-06 Thread Nick Veitch
I have a small problem which I suspect can be solved in an easy and elegant way, and it is simply lack of sleep/stupidity preventing me from finding it. I have a number of line drawings comprised of cartesian points. I need to project them onto a sphere (they are drawings of constellations, so I n

[Matplotlib-users] ImportError when I import FigureCanvasGTKAgg—seeking advice!

2011-06-06 Thread thecommexokid
Hi all, I am new to the forum and to all things PyGTK and matplotlib, so go easy on me, please. A colleague created a Python program that uses matplotlib and GTK. I wanted to be able run her program on my MacBook (OS X 10.6.7). I used macports to update/obtain Python 2.7, matplotlib 1.0.1, and