Re: [Matplotlib-users] how to get legend size, try #2.

2010-10-29 Thread Paul Ivanov
Daniel Hyams, on 2010-10-29 23:48, wrote: > Thanks Paul! Your suggestion got me part of the way, but I've run > into another problem...I'm using draggable legends, I'm also wanting > to fetch the current position of the legend after a drag. The > draggable legend always updates 'loc', and not 'b

Re: [Matplotlib-users] how to get legend size, try #2.

2010-10-29 Thread Paul Ivanov
Daniel Hyams, on 2010-10-29 17:07, wrote: > I realized after sending that off that I need to provide more > contextsorry about that. > > What I'm trying to do can be boiled down to the following: I'm trying to > place a legend precisely, using the top left corner of legend as the > "sticky"

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-29 Thread Paul Ivanov
Alan G Isaac, on 2010-10-28 21:29, wrote: > On 10/27/2010 8:21 PM, Paul Ivanov wrote: > >def onelegend_twinaxes(axis,twin): > >#make a joint axis legend > >lines = twin.get_lines() > >lines.extend(axis.get_lines()) > >labels = [l.get_label() for l in lines] > >

Re: [Matplotlib-users] help creating a netcdf file with an irregular grid projection (stereographic)

2010-10-29 Thread Jeff Whitaker
On 10/29/10 6:04 PM, John wrote: > Any good tutorials or examples that people could point me to on > creating a netcdf file for a grid projected with a stereographic > projection? It's not clear to me how you would create the lat / lon > dimensions. > > Thanks, > john > > > John: The nice thing

Re: [Matplotlib-users] help creating a netcdf file with an irregular grid projection (stereographic)

2010-10-29 Thread Benjamin Root
On Fri, Oct 29, 2010 at 7:04 PM, John wrote: > Any good tutorials or examples that people could point me to on > creating a netcdf file for a grid projected with a stereographic > projection? It's not clear to me how you would create the lat / lon > dimensions. > > Thanks, > john > > > Be careful

[Matplotlib-users] help creating a netcdf file with an irregular grid projection (stereographic)

2010-10-29 Thread John
Any good tutorials or examples that people could point me to on creating a netcdf file for a grid projected with a stereographic projection? It's not clear to me how you would create the lat / lon dimensions. Thanks, john -- Configuration `` Basemap: 1.0 Matplotlib: 1.0

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Nikolaus Rath
Eric Firing writes: >> I don't know if there are any strict requirement on monotonicity for X >> and Y, or if there are any cases where the plot is still valid even if >> that property is violated. If it is a requirement, then I agree that >> there should be a check. > > For sensible output, it i

[Matplotlib-users] how to get legend size, try #2.

2010-10-29 Thread Daniel Hyams
I realized after sending that off that I need to provide more contextsorry about that. What I'm trying to do can be boiled down to the following: I'm trying to place a legend precisely, using the top left corner of legend as the "sticky" point. In other words, if I want to place the legend h

[Matplotlib-users] how to get the legend size?

2010-10-29 Thread Daniel Hyams
Going a little crosseyed here...how might I get the size of the legend in axes coordinates? Or any coordinates? -- Daniel Hyams dhy...@gmail.com -- Nokia and AT&T present the 2010 Calling All Innovators-North America con

Re: [Matplotlib-users] creating graphs and putting them in a figure afterwards

2010-10-29 Thread Benjamin Root
On Wed, Oct 27, 2010 at 11:08 AM, Bram Sanders wrote: > > Hi, > > I want to create graphs, fully specify their properties and only then > combine them in a single figure. The figure instance holding these > graphs is made after creating the graphs: I want to decide afterwards > what selection of

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Eric Firing
> I don't know if there are any strict requirement on monotonicity for X > and Y, or if there are any cases where the plot is still valid even if > that property is violated. If it is a requirement, then I agree that > there should be a check. For sensible output, it is a requirement. Contour a

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Benjamin Root
On Fri, Oct 29, 2010 at 12:25 PM, Nikolaus Rath wrote: > Benjamin Root writes: > >> However, it seems to me that this is quite a serious bug. The contour > >> documentation on > >> > >> > http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.contour > >> does not mention this

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Nikolaus Rath
Benjamin Root writes: >> However, it seems to me that this is quite a serious bug. The contour >> documentation on >> >> http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.contour >> does not mention this requirement, and obviously the contour method >> itself does not even b

[Matplotlib-users] Overlapping pcolor() plots

2010-10-29 Thread chewbaccabacca
I have three seperate pcolor() plots that I want to merge into one single plot (see attached file). Each plot uses a binary color scheme (white and blue, white and red, and white and green). I tried to overlap the plots by using the alpha command, but the output looks rather poor (for example, whe

Re: [Matplotlib-users] pick_event returning wrong indices

2010-10-29 Thread Benjamin Root
On Sat, Oct 23, 2010 at 1:41 PM, Ryan dale wrote: > Here's a problem that's been driving me nuts, and I finally reduced it > to a small self-contained script which can be found at > http://gist.github.com/642538. The issue is that the pick_event does > not always provide the correct index into t

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Benjamin Root
On Fri, Oct 29, 2010 at 7:44 AM, Nikolaus Rath wrote: > Benjamin Root writes: > > On Thu, Oct 28, 2010 at 3:31 PM, Nikolaus Rath < > nikolaus-bth8mxji...@public.gmane.org> wrote: > > > >> Hello, > >> > >> I'm having a weird problem with a contour plot. Consider the following > >> plots: > >> > >

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Nikolaus Rath
Benjamin Root writes: > On Thu, Oct 28, 2010 at 3:31 PM, Nikolaus Rath > wrote: > >> Hello, >> >> I'm having a weird problem with a contour plot. Consider the following >> plots: >> >> import cPickle as pickle >> import matplotlib.pyplot as plt >> (Theta, Phi, Bnormal) = pickle.load(open('troubl