[Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Hello, I'm trying to take a npstereographic grid of points and reproject it so that I can save out a file in regular 0.5 degree lat lon grid coordinates. The description of the grid points in the current projection is here: http://nsidc.org/data/docs/daac/nsidc0051_gsfc_seaice.gd.html I've writte

Re: [Matplotlib-users] Inserting an Image into a Subplot

2010-10-25 Thread Ted Kord
Thanks for the links and suggestions. Worked fine. Thx Ted On 25 October 2010 03:08, Jae-Joon Lee wrote: > There are a few ways to show images, where using imshow is one of them. > > > http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=imshow#matplotlib.pyplot.imshow > > Take a lo

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread Jeff Whitaker
On 10/25/10 2:27 AM, John wrote: > Hello, > > I'm trying to take a npstereographic grid of points and reproject it > so that I can save out a file in regular 0.5 degree lat lon grid > coordinates. The description of the grid points in the current > projection is here: > http://nsidc.org/data/docs

Re: [Matplotlib-users] Not seeing middle mouse button events

2010-10-25 Thread Brian J. Soher
Hi Stan, Thank you for taking the time to check this for me. I did switch up to Matplotlib 1.0.0 and Python 2.6, and that solved my problem. I'm tempted to chalk the whole thing up to having a corrupted Matplotlib installation, except that it did happen on two different computers. All the bes

Re: [Matplotlib-users] stem plots:

2010-10-25 Thread Stan West
> From: Alan G Isaac [mailto:ais...@american.edu] > Sent: Friday, October 22, 2010 13:25 > > On 10/22/2010 12:39 PM, Stan West wrote: > > markerline.set_zorder(markerline.get_zorder() + 0.1) > > Nice idea. > Thanks, You're welcome. Now that I look at it again, I suppose that something lik

[Matplotlib-users] GridSpec Index Order

2010-10-25 Thread Nikolaus Rath
Hello, I just noticed that in order to get a 3 row by 4 column grid, I have to do import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec def make_ticklabels_invisible(fig): for i, ax in enumerate(fig.axes): ax.text(0.5, 0.5, "ax%d" % (i+1), v

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-25 Thread Maarten Sneep
On Fri, 2010-10-22 at 13:39 -0500, Ryan May wrote: > Thanks for that. This actually led me here: > http://en.wikipedia.org/wiki/Histogram which gives a bunch of > different ways to estimate the number of bins/binsize. It might be > worth looking at one of these in general. However, ironically enoug

Re: [Matplotlib-users] GridSpec Index Order

2010-10-25 Thread Jae-Joon Lee
On Mon, Oct 25, 2010 at 10:45 PM, Nikolaus Rath wrote: > So I have to instantiate GridSpec with a (rows, column), but when I > index the grid I have to use (column, row). > > Is there any reason for this counterintuitive behaviour? > This is not an intended behavior but a bug which affects a grid

Re: [Matplotlib-users] mpl_toolkits.axes_grid.Grid: How to draw an " axis grid" inside each plot?

2010-10-25 Thread Jae-Joon Lee
On Tue, Oct 26, 2010 at 12:04 AM, Cesar Enrique Garcia Dabo wrote: >  It works "almost" fine, except for the line >    grid[i].grid(True) >  which doesn't draw the axis grid defined by the ticklabels. When using > add_subplot instead of Grid it works properly, tough, like this: > I believe this i

Re: [Matplotlib-users] GridSpec Index Order

2010-10-25 Thread Nikolaus Rath
On 10/25/2010 11:18 AM, Jae-Joon Lee wrote: > On Mon, Oct 25, 2010 at 10:45 PM, Nikolaus Rath wrote: >> So I have to instantiate GridSpec with a (rows, column), but when I >> index the grid I have to use (column, row). >> >> Is there any reason for this counterintuitive behaviour? >> > > This is

[Matplotlib-users] How to Reduce White Space Around Figure?

2010-10-25 Thread Lorenzo Isella
Dear All, I am aware that this question has already been asked several times on the mailing list, see e.g. http://bit.ly/aPzQTA However, in the following snippet, nothing I tried has been able to reduce the amount of white space around the figure (including toying around with ax = plt.axes([0

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Jeff, thanks for the answer. Unfortunately I have a problem due to the 'polar' nature of the grid, the xin, yin values are not increasing. I tried both passing lat and lon grids or flattened vectors of the original data, but neither works. You can see my method here, which is a new method of my NSI

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Apologies, I see I didn't need to change the xin, yin variables in the interp function. I have it working now, but I still don't quite have the plotting correct... be back with a report. -john On Mon, Oct 25, 2010 at 9:27 PM, John wrote: > Jeff, thanks for the answer. Unfortunately I have a probl

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Closer, but still not quite right... not sure what I'm doing wrong?? http://picasaweb.google.com/lh/photo/6Dnylo0BcjX0A-wdmczmNg?feat=directlink Any ideas?? -john On Mon, Oct 25, 2010 at 9:53 PM, John wrote: > Apologies, I see I didn't need to change the xin, yin variables in the > interp func

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread Jeff Whitaker
On 10/25/10 2:13 PM, John wrote: > Closer, but still not quite right... not sure what I'm doing wrong?? John: Since I don't know what the plot should look like, it's hard to say. Perhaps the data is just transposed? Let me back up a bit and ask why you want to interpolate to a lat/lon grid

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Jeff, Thank you again for the quick response. Unfortunately, I need to output the data onto a regular lat/lon 0.5 degree grid for including in another project (this is the format we need, so I'll write the data out to a file). For plotting, however, I would be interested in seeing the 'easy' way

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread Jeff Whitaker
On 10/25/10 2:28 PM, John wrote: > Jeff, > > Thank you again for the quick response. > > Unfortunately, I need to output the data onto a regular lat/lon 0.5 > degree grid for including in another project (this is the format we > need, so I'll write the data out to a file). > > For plotting, howev

Re: [Matplotlib-users] [matplotlib-devel] Release schedule for version 1.0.1?

2010-10-25 Thread Daniel Hyams
Oops, yes! The spirit is willing but the (my) brain is weak. On Mon, Oct 25, 2010 at 5:13 PM, John Hunter wrote: > On Mon, Oct 25, 2010 at 4:09 PM, Daniel Hyams wrote: > > Right, I was referring specifically to MATPLOTLIBDIR ;) > > > > I was just pleased as punch to find it in the source code,

Re: [Matplotlib-users] How to Reduce White Space Around Figure?

2010-10-25 Thread Benjamin Root
On Mon, Oct 25, 2010 at 11:56 AM, Lorenzo Isella wrote: > Dear All, > I am aware that this question has already been asked several times on > the mailing list, see e.g. > > http://bit.ly/aPzQTA > > However, in the following snippet, nothing I tried has been able to > reduce the amount of white spa

Re: [Matplotlib-users] How to Reduce White Space Around Figure?

2010-10-25 Thread Lorenzo Isella
On 10/25/2010 11:36 PM, Benjamin Root wrote: > , bbox_inches='tight' Hi, And thanks for your suggestion. The improvement (if any) if unfortunately rather modest. I'd like to hear about the other "tricks". Cheers Lorenzo ---

Re: [Matplotlib-users] How to Reduce White Space Around Figure?

2010-10-25 Thread Tony S Yu
On Oct 25, 2010, at 12:56 PM, Lorenzo Isella wrote: > Dear All, > I am aware that this question has already been asked several times on > the mailing list, see e.g. > > http://bit.ly/aPzQTA > > However, in the following snippet, nothing I tried has been able to > reduce the amount of white sp

[Matplotlib-users] Problem in animation cookbook example

2010-10-25 Thread Drew Frank
I believe I've found a problem with the following cookbook example: http://www.scipy.org/Cookbook/Matplotlib/Animations?action=show#head-3d51654b8306b1585664e7fe060a60fc76e5aa08. Specifically, the example calls canvas.copy_from_bbox() before the initial draw(). This doesn't throw an error, but wi