[Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
Good morning, I'm creating the attached plot using pcolormesh(). What I would like to do now is draw contour lines at +/- 2.5%, which follow the grid edges. The problem is that when I use contour(), the lines drawn do not follow the grid edges but seem to be interpolated somehow. Do you have an

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Benjamin Root
On Tuesday, February 28, 2012, Andreas H. wrote: > Good morning, > > I'm creating the attached plot using pcolormesh(). What I would like to > do now is draw contour lines at +/- 2.5%, which follow the grid edges. > > The problem is that when I use contour(), the lines drawn do not follow > the gr

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Ryan May
On Tue, Feb 28, 2012 at 9:10 AM, Benjamin Root wrote: > On Tuesday, February 28, 2012, Andreas H. wrote: >> >> Good morning, >> >> I'm creating the attached plot using pcolormesh(). What I would like to >> do now is draw contour lines at +/- 2.5%, which follow the grid edges. >> >> The problem is

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
>> On Tuesday, February 28, 2012, Andreas H. wrote: >> >>> Good morning, >>> >>> I'm creating the attached plot using pcolormesh(). What I would like to >>> do now is draw contour lines at +/- 2.5%, which follow the grid edges. >>> >>> The problem is that when I use contour(), the lines drawn do no

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Eric Firing
On 02/28/2012 06:28 AM, Andreas H. wrote: >>> On Tuesday, February 28, 2012, Andreas H. wrote: >>> Good morning, I'm creating the attached plot using pcolormesh(). What I would like to do now is draw contour lines at +/- 2.5%, which follow the grid edges. The problem i

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
Am 28.02.2012 18:56, schrieb Eric Firing: > On 02/28/2012 06:28 AM, Andreas H. wrote: On Tuesday, February 28, 2012, Andreas H. wrote: > Good morning, > > I'm creating the attached plot using pcolormesh(). What I would like to > do now is draw contour lines at +/- 2.5%, wh

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Eric Firing
On 02/28/2012 08:08 AM, Andreas H. wrote: > Am 28.02.2012 18:56, schrieb Eric Firing: >> On 02/28/2012 06:28 AM, Andreas H. wrote: > On Tuesday, February 28, 2012, Andreas H. wrote: > >> Good morning, >> >> I'm creating the attached plot using pcolormesh(). What I would like to

[Matplotlib-users] get parent or child from twinx() or twiny()

2012-02-28 Thread Federico Ariza
Hello everybody This is my first post to the list. To the point. I want to access the all the axes located where a mouse event occurred. My first try is with button_release_event The event will include inaxes, so I know the axes where the mouse event occurred. This is fine if at that location I

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
Am Di 28 Feb 2012 19:23:14 CET schrieb Eric Firing: > On 02/28/2012 08:08 AM, Andreas H. wrote: >> Am 28.02.2012 18:56, schrieb Eric Firing: >>> On 02/28/2012 06:28 AM, Andreas H. wrote: >> On Tuesday, February 28, 2012, Andreas H. wrote: >> >>> Good morning, >>> >>> I'm creatin

Re: [Matplotlib-users] Question(s) for new MAC 10.7 User

2012-02-28 Thread Russell E. Owen
In article , William Jennings wrote: > Hello mat plot lib users! > I feel quite embarrassed that I've gone through 2 days of trying to get to > get numpy, scipy and matplotlib all to work nice with each other. I've > scraped through forums, stackoverflow and all the links that can bide me >

Re: [Matplotlib-users] get parent or child from twinx() or twiny()

2012-02-28 Thread John Hunter
On Tue, Feb 28, 2012 at 12:45 PM, Federico Ariza wrote: > Hello everybody > > This is my first post to the list. > Welcome. > > To the point. > I want to access the all the axes located where a mouse event occurred. > > My first try is with button_release_event > The event will include inaxes,

[Matplotlib-users] draw_event

2012-02-28 Thread Antoine Sirinelli
Hi, I have been using the event "draw_event" for a while with the old matplotlib 0.8. I have tested my program with newer versions but it seems the function connected to "draw_event" is never called. You can find an example of this there: https://gist.github.com/1901504 With an old version the

[Matplotlib-users] Set width before saving

2012-02-28 Thread Mario Fuest
Hi there, Currently i use these commands to layout and save my figures: > figure > ... > gca.set_aspect('equal') > gca.autoscale(tight=True) > ... > plt.savefig('fpp.png', bbox_inches='tight', pad_inches=0) I would like to set the width of this png file, how to do that? If savefig() does n

Re: [Matplotlib-users] Fixed width - axis equal *and* tight

2012-02-28 Thread Mario Fuest
Hi, Sorry for the late reply. Tony Yu schrieb am Tue, 03. Jan 17:07: > You can try > > >>> ax.set_aspect('equal') > >>> ax.autoscale(tight=True) > > The order doesn't seem to matter. That works well, thank you! :) Kind regars, Keba. --

Re: [Matplotlib-users] Set width before saving

2012-02-28 Thread Benjamin Root
On Tue, Feb 28, 2012 at 3:48 PM, Mario Fuest wrote: > Hi there, > > Currently i use these commands to layout and save my figures: > > > figure > > ... > > gca.set_aspect('equal') > > gca.autoscale(tight=True) > > ... > > plt.savefig('fpp.png', bbox_inches='tight', pad_inches=0) > > I would

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Moore, Eric (NIH/NIDDK) [F]
I think that what you want can be achieved more simply than contouring. I've attached a quick example of how I would do this. I'm assuming that the data has the same form as pcolormesh, i.e, the z values are measured at grid centers but we have coordinate of the edges. This means that we can

Re: [Matplotlib-users] draw_event

2012-02-28 Thread Tony Yu
On Tue, Feb 28, 2012 at 4:05 PM, Antoine Sirinelli wrote: > Hi, > > I have been using the event "draw_event" for a while with the old > matplotlib 0.8. I have tested my program with newer versions but it seems > the function connected to "draw_event" is never called. > > You can find an example o

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
> I think that what you want can be achieved more simply than contouring. > I've attached a quick example of how I would do this. I'm assuming that > the data has the same form as pcolormesh, i.e, the z values are measured > at grid centers but we have coordinate of the edges. This means that we