Re: [Matplotlib-users] [matplotlib-devel] Is there a way to link axes of imshow plots?

2010-06-10 Thread Jeff Whitaker
On 6/10/10 3:28 PM, Benjamin Root wrote: On Thu, Jun 10, 2010 at 1:00 PM, Jae-Joon Lee > wrote: On Thu, Jun 10, 2010 at 12:47 PM, Benjamin Root mailto:ben.r...@ou.edu>> wrote: > P.S. - I have found a 'bug' of sorts with using 'box-forced' for Basemap a

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread mdekauwe
Unless I am mistaken subplots_adjust doesn't do anything as I am building an axes instance. Doing... fig = plt.figure(figsize=(8, 4)) ax = fig.add_axes([0.1, 0.15, 0.7, 0.7]) has shrunk the white space, though I think the font of the legend looks a bit less well defined, but perhaps that is just

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread Benjamin Root
Just to make sure, were you calling subplots_adjust() *before* calling subplot()? Calling it after subplot() shouldn't have an effect on the already created axes (I think...). Ben Root On Thu, Jun 10, 2010 at 3:41 PM, mdekauwe wrote: > > Unless I am mistaken subplots_adjust doesn't do anything

Re: [Matplotlib-users] Trend curve

2010-06-10 Thread Benjamin Root
Just in case nobody responded to you, yet... Are you asking how to plot a trend line onto a figure already containing data, or are you asking how to calculate a trend line from the data? If you need to calculate a trend line, then you need to use the SciPy module. If you already have your trend

Re: [Matplotlib-users] [matplotlib-devel] Is there a way to link axes of imshow plots?

2010-06-10 Thread Benjamin Root
On Thu, Jun 10, 2010 at 1:00 PM, Jae-Joon Lee wrote: > On Thu, Jun 10, 2010 at 12:47 PM, Benjamin Root wrote: > > P.S. - I have found a 'bug' of sorts with using 'box-forced' for Basemap > and > > AxesGrid. For the displayed plot, if one were to zoom in on one of the > > plots, the other plots

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread mdekauwe
Hi, yes as I understand it (happy to be corrected)... fig = plt.figure(figsize=(8, 4)) fig.subplots_adjust(bottom=0.05) does nothing unless you also do ax = fig.add_subplot(111) but as I am also doing ax = fig.add_axes([0.1, 0.15, 0.7, 0.7]), it means I would just get two frames. Benja

Re: [Matplotlib-users] [matplotlib-devel] Is there a way to link axes of imshow plots?

2010-06-10 Thread Jeff Whitaker
On 6/10/10 12:00 PM, Jae-Joon Lee wrote: > On Thu, Jun 10, 2010 at 12:47 PM, Benjamin Root wrote: > >> P.S. - I have found a 'bug' of sorts with using 'box-forced' for Basemap and >> AxesGrid. For the displayed plot, if one were to zoom in on one of the >> plots, the other plots will zoom in

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread Jae-Joon Lee
On Thu, Jun 10, 2010 at 1:55 PM, mdekauwe wrote: > fig = plt.figure(figsize=(8, 6)) This. Also play with subplots_adjust. -JJ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE

Re: [Matplotlib-users] retrieve a value at from projected data at a specific lon/lat?

2010-06-10 Thread Eric Firing
On 06/10/2010 04:41 AM, Mike Bauer wrote: > Hello, > > Is there a way to get the data value at a specific longitude/latitude > from an array that has been projected and smoothed with basemap and > transform_scalar to a higher grid density? > > My original data is a global lat,lon array (73,144) tha

Re: [Matplotlib-users] [matplotlib-devel] Is there a way to link axes of imshow plots?

2010-06-10 Thread Jae-Joon Lee
On Thu, Jun 10, 2010 at 12:47 PM, Benjamin Root wrote: > P.S. - I have found a 'bug' of sorts with using 'box-forced' for Basemap and > AxesGrid.  For the displayed plot, if one were to zoom in on one of the > plots, the other plots will zoom in as well (which I think is neat), but > they won't up

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread mdekauwe
Hi OK assuming upgrading is going to be a hassle. I just looked into and some of the libraries need changing etc etc. Do you know what I would change as a short term work around? When you said adjust size, did you mean this line fig = plt.figure(figsize=(8, 6)) or this ax = fig.add_axes([0.

Re: [Matplotlib-users] [matplotlib-devel] Basemap r8403 and numpy 2.0

2010-06-10 Thread Pierre GM
On Jun 10, 2010, at 1:30 PM, Christoph Gohlke wrote: > > > On 6/10/2010 10:14 AM, Pierre GM wrote: >> On Jun 10, 2010, at 12:51 PM, Jeff Whitaker wrote: >>> On 6/10/10 10:40 AM, Pierre GM wrote: All, Sorry, it's been a while since I've been using Basemap. I was just trying to upda

Re: [Matplotlib-users] [matplotlib-devel] Basemap r8403 and numpy 2.0

2010-06-10 Thread Christoph Gohlke
On 6/10/2010 10:14 AM, Pierre GM wrote: > On Jun 10, 2010, at 12:51 PM, Jeff Whitaker wrote: >> On 6/10/10 10:40 AM, Pierre GM wrote: >>> All, >>> Sorry, it's been a while since I've been using Basemap. I was just trying >>> to update my local svn directory to r8403 and reinstall basemap, but an

Re: [Matplotlib-users] [matplotlib-devel] Basemap r8403 and numpy 2.0

2010-06-10 Thread Pierre GM
On Jun 10, 2010, at 12:51 PM, Jeff Whitaker wrote: > On 6/10/10 10:40 AM, Pierre GM wrote: >> All, >> Sorry, it's been a while since I've been using Basemap. I was just trying to >> update my local svn directory to r8403 and reinstall basemap, but an import >> fail w/ the following message: >> ""

Re: [Matplotlib-users] [matplotlib-devel] Is there a way to link axes of imshow plots?

2010-06-10 Thread Benjamin Root
On Thu, Jun 10, 2010 at 11:05 AM, Jeff Whitaker wrote: > On 6/9/10 1:58 PM, Benjamin Root wrote: > > Has anybody given any further thought to the implication of having Basemap > set adjustable as "box-forced" instead of "box"? So far, it has been > working just fine for me, but I have no clue i

Re: [Matplotlib-users] [matplotlib-devel] Is there a way to link axes of imshow plots?

2010-06-10 Thread Jeff Whitaker
On 6/9/10 1:58 PM, Benjamin Root wrote: Has anybody given any further thought to the implication of having Basemap set adjustable as "box-forced" instead of "box"? So far, it has been working just fine for me, but I have no clue if there are any unintended side-effects. Ben Root Ben: To s

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread Jae-Joon Lee
On Thu, Jun 10, 2010 at 9:28 AM, mdekauwe wrote: > so by the sounds of it an outdated version? But your example will work on a > newer version? I think bbox_inches option is not supported with your version of matplotlib. You may upgrade to newer version, or you have to manually adjust the figure

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Jae-Joon Lee
Can you describe why using the "extent" keyword does not serve your purpose? The svn version of matplotlib support BboxImage which might be better (depending on your use case). -JJ On Thu, Jun 10, 2010 at 1:21 AM, Eamon Caddigan wrote: > Hi everybody, > > I'd like to draw thumbnails of images

[Matplotlib-users] retrieve a value at from projected data at a specific lon/lat?

2010-06-10 Thread Mike Bauer
Hello, Is there a way to get the data value at a specific longitude/latitude from an array that has been projected and smoothed with basemap and transform_scalar to a higher grid density? My original data is a global lat,lon array (73,144) that I process by hemisphere with a polar centered 'laea'

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Benjamin Root
Actually, You might want to check out axes_grid module in the mpl_toolkits. After a quick perusal, I think InsetLocator might be what you are looking for in the axes_grid module. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html I hope this helps, Ben Root On Thu, Jun

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Eamon Caddigan
Actually, since axes are created with normalized coordinates, what I really need is a way to query the size of the current figure, in pixels. On Thu, Jun 10, 2010 at 7:43 AM, Eamon Caddigan wrote: > Thanks Scott. In order to precisely position an image using separate > axes, I'd need to be able t

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread mdekauwe
Hmm OK thanks. It seems I am using In [3]: matplotlib.__version__ Out[3]: '0.98.5.3' so by the sounds of it an outdated version? But your example will work on a newer version? What version of matplotlib are yo

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Eamon Caddigan
Thanks Scott. In order to precisely position an image using separate axes, I'd need to be able to query and set the margin between the bounding box and the actual axes. I can't seem to find any way to do that, either. On Thu, Jun 10, 2010 at 1:13 AM, Scott Sinclair wrote: >>On 10 June 2010 07:21,

Re: [Matplotlib-users] patch: adding kwargs 'which' in axes.grid and 'g' toggles all tick grid lines

2010-06-10 Thread Matthias Michler
On Thursday, June 10, 2010 09:57:44 am Eric Firing wrote: > On 06/09/2010 09:15 PM, Matthias Michler wrote: > > On Wednesday, June 09, 2010 08:00:13 pm Eric Firing wrote: > >> On 06/08/2010 11:07 PM, Matthias Michler wrote: > >>> On Wednesday, June 09, 2010 11:00:31 am Eric Firing wrote: > On

Re: [Matplotlib-users] patch: adding kwargs 'which' in axes.grid and 'g' toggles all tick grid lines

2010-06-10 Thread Eric Firing
On 06/09/2010 09:15 PM, Matthias Michler wrote: > On Wednesday, June 09, 2010 08:00:13 pm Eric Firing wrote: >> On 06/08/2010 11:07 PM, Matthias Michler wrote: >>> On Wednesday, June 09, 2010 11:00:31 am Eric Firing wrote: On 06/08/2010 10:48 PM, Matthias Michler wrote: > On Friday, April

[Matplotlib-users] Trend curve

2010-06-10 Thread L1011
Hello all! I was wondering if it's possible to a trend curve (linear, quadratic...) to a set of data with matplotlib... Thanks you! L1011 -- View this message in context: http://old.nabble.com/Trend-curve-tp28839772p28839772.html Sent from the matplotlib - users mailing list archive at Nabbl

Re: [Matplotlib-users] patch: adding kwargs 'which' in axes.grid and 'g' toggles all tick grid lines

2010-06-10 Thread Matthias Michler
On Wednesday, June 09, 2010 08:00:13 pm Eric Firing wrote: > On 06/08/2010 11:07 PM, Matthias Michler wrote: > > On Wednesday, June 09, 2010 11:00:31 am Eric Firing wrote: > >> On 06/08/2010 10:48 PM, Matthias Michler wrote: > >>> On Friday, April 23, 2010 11:08:50 am Matthias Michler wrote: >