[Matplotlib-users] assigning a plot object to a figure

2012-03-30 Thread Emmanuel Mayssat
Hello all, I can create a figure and get the corresponding axes/plotsĀ  for examples: 1/ fig = Figure(figsize=(width, height), dpi=dpi) ax = gif.add_subplot(111) 2/ fig, ax = plt.subplots() but I would like to create my plot independently from the figure and assign it to a figure I code I wou

Re: [Matplotlib-users] padding axis limits automatically?

2012-03-30 Thread Skipper Seabold
On Fri, Mar 30, 2012 at 5:45 PM, Tony Yu wrote: > > On Fri, Mar 30, 2012 at 4:40 PM, Eric Firing wrote: >> >> On 03/30/2012 08:47 AM, Skipper Seabold wrote: >> > There is probably a simple answer to this, but I don't see it. How can >> > I pad the axis limits automatically? For instance, in the b

Re: [Matplotlib-users] padding axis limits automatically?

2012-03-30 Thread Tony Yu
On Fri, Mar 30, 2012 at 4:40 PM, Eric Firing wrote: > On 03/30/2012 08:47 AM, Skipper Seabold wrote: > > There is probably a simple answer to this, but I don't see it. How can > > I pad the axis limits automatically? For instance, in the below > > example, the x axis limits are the data points an

Re: [Matplotlib-users] padding axis limits automatically?

2012-03-30 Thread Eric Firing
On 03/30/2012 08:47 AM, Skipper Seabold wrote: > There is probably a simple answer to this, but I don't see it. How can > I pad the axis limits automatically? For instance, in the below > example, the x axis limits are the data points and the y limit is > close. I want to have a function that pads

Re: [Matplotlib-users] padding axis limits automatically?

2012-03-30 Thread Tony Yu
On Fri, Mar 30, 2012 at 2:47 PM, Skipper Seabold wrote: > There is probably a simple answer to this, but I don't see it. How can > I pad the axis limits automatically? For instance, in the below > example, the x axis limits are the data points and the y limit is > close. I want to have a function

[Matplotlib-users] padding axis limits automatically?

2012-03-30 Thread Skipper Seabold
There is probably a simple answer to this, but I don't see it. How can I pad the axis limits automatically? For instance, in the below example, the x axis limits are the data points and the y limit is close. I want to have a function that pads the axis limit at least, by say, 10% of the range of x

[Matplotlib-users] Matplotlib installation

2012-03-30 Thread Mateusz J Burgunder
Hello, I am trying to download matplot (matplotlib-1.1.0) but at the start of the download I get a screen that says "Python version 2.7 required, which was not found in the registry." I have python 2.7. Where exactly should I save mathplotlib so that it can find python for the installation? Many

[Matplotlib-users] Copying a figure instance?

2012-03-30 Thread eoj
Basically the problem is like this. I have a relatively expensive (time wise) figure to create, specifically a map with lots of detail in it. On top of that, I'm making an inset set of axes to highlight some regions. I'm having to recreate the base of the map, which is static, every time I want t

[Matplotlib-users] zooming with transforms

2012-03-30 Thread Arnaud Gardelein
What is the most effective approach to perform a 'zoom under mouse cursor'? Currently I use the following code (considering g as mpl.Axes), but set_xlim() is called twice. Is there a better approach? # First zoom result = \ g.bbox.shrunk(DEFAULT_ZOOM_FACTOR,1).transformed(g.transData.inverted())

Re: [Matplotlib-users] Having trouble installing matplotlib on Mac OS X Lion

2012-03-30 Thread kgustaf
Hello William - did you manage to solve this problem without resorting to building from source? Thanks! -- View this message in context: http://old.nabble.com/Having-trouble-installing-matplotlib-on-Mac-OS-X-Lion-tp3373p33544787.html Sent from the matplotlib - users mailing list archive at

Re: [Matplotlib-users] (no subject)

2012-03-30 Thread Francesco Montesano
Dear Dorm, Il 30 marzo 2012 14:17, Dorm Eight ha scritto: > Dear Francesco, > Yes, I just tried it, it can be save perfectly. so might be a problem with the backend. Give a look to this page: http://stackoverflow.com/questions/2512225/matplotlib-not-showing-up-in-mac-osx and try to change the ba

Re: [Matplotlib-users] (no subject)

2012-03-30 Thread Dorm Eight
DearFrancesco, Yes, I just tried it, it can be save perfectly. From: Francesco Montesano To: Dorm Eight ; matplotlib-users@lists.sourceforge.net Sent: Friday, March 30, 2012 8:01 PM Subject: Re: [Matplotlib-users] (no subject) > _

Re: [Matplotlib-users] (no subject)

2012-03-30 Thread Francesco Montesano
> > From: Francesco Montesano > To: Dorm Eight > Cc: "matplotlib-users@lists.sourceforge.net" > > Sent: Tuesday, March 27, 2012 3:38 PM > Subject: Re: [Matplotlib-users] (no subject) > > Il 27 marzo 2012 05:08, Dorm Eight ha scritto: >> hi, everybody! >> >> when

Re: [Matplotlib-users] reverse colormap?

2012-03-30 Thread Chao YUE
Hi Tony, thanks! the first one works but not lambda x : 1-x. The function might be useful while it needs a little bit knowledge of colors. cheers, Chao 2012/3/29 Tony Yu > > > On Thu, Mar 29, 2012 at 1:31 PM, Chao YUE wrote: > >> Dear all, >> >> here in cookbook it says "Ever wanted to rever