[Matplotlib-users] Remove Toolbar state

2010-06-22 Thread David Morton
Hello, I have Matplotlib running embedded in a wxPython app with the ability to show/hide the toolbar. When I hide the toolbar the current tool remains active (i.e. zooming) even though the toolbar is invisible. Is there a way to turn off the tools when I hide the toolbar? The toolbar I'm using

Re: [Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Stephen George
>> However if I am zoomed in on my graph looking at detail, then click the >> radio button, the scatter plot forces the graph to resize to once again >> show the overall intial view (zoomed out). >> > Try using: > > axes.set_autoscale_on(False) > Thank you very much, this does exactly w

Re: [Matplotlib-users] selecting part of a contour to plot

2010-06-22 Thread Jae-Joon Lee
contour creates list of LineCollection objects (per each level I suppose) which is stored in "collections" attribute. For example, cntr = contour(A, levels) then cntr.collections[i] is a LineCollection objects that is associated with levels[i]. And you can change colors of each line in the Line

Re: [Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Ryan May
On Tue, Jun 22, 2010 at 8:56 PM, Stephen George wrote: > I have an application that draws a line plot of  a spectrum. When the > spectrum is collected different gains and filters may be used for each > data point (which I have also collected). I am looking at artefacts in > the spectrum and trying

Re: [Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Benjamin Root
Stephen, Most likely, the program isn't really going back to the "original" axes as much that it is automatically setting the axes to fit all the data from the new plot (which would likely be the "original axes", but only by coincidence). I am sure there is some sort of easy way to do this, but t

[Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Stephen George
Hi, I have an application that draws a line plot of a spectrum. When the spectrum is collected different gains and filters may be used for each data point (which I have also collected). I am looking at artefacts in the spectrum and trying to correlate them with things such as the gain and fi

Re: [Matplotlib-users] selecting part of a contour to plot

2010-06-22 Thread Benjamin Root
Actually, I just re-read your original message and noticed that you were specifying your levels (I believe). The double set of contours depends on what your values are. If you want to make absolutely sure that there aren't extra lines, you could contour a boolean array: contour(x, y, z > 4.5, [0

Re: [Matplotlib-users] selecting part of a contour to plot

2010-06-22 Thread Benjamin Root
Jon, One thing you can do is to manually specify the levels to contour for in the contour call, or just specify the number of contours (and contour() will figure out the levels for you). The fourth argument to contour() allows you to give a sequence of values (or an integer) for the isopleths. S

[Matplotlib-users] Setting the xaxis date ranges

2010-06-22 Thread Fa
Hi all, I am trying to figure out how I can limit the xaxis date ranges. I tried set_xlim(), but that didn't work. The graph consists of dates for the xaxis and data for the yaxis. Currently the xaxis is showing the entire year's worth of months, even though there are no data for some months.

Re: [Matplotlib-users] Animated Line2D

2010-06-22 Thread Nie, Jinsuo
Super. I will need to study your solution tomorrow. -- Jinsuo -Original Message- From: Stan West [mailto:stan.w...@nrl.navy.mil] Sent: Tuesday, June 22, 2010 4:41 PM To: Nie, Jinsuo; matplotlib-users@lists.sourceforge.net Subject: RE: [Matplotlib-users] Animated Line2D > From: Nie, Jin

Re: [Matplotlib-users] Animated Line2D

2010-06-22 Thread Stan West
> From: Nie, Jinsuo [mailto:j...@bnl.gov] > Sent: Tuesday, June 22, 2010 09:33 ... > I modified the path_editor.py example in order to make a line editor, as > attached. The path_editor.py worked fine on Qt4Agg. However, in the > line editor, the line was not draggable on the same backend. ...

[Matplotlib-users] selecting part of a contour to plot

2010-06-22 Thread Jonathan Slavin
To all: I'm making a plot with an image and a contour on it. I use only one level in the call to contour, but it results in two distinct contours, an inner closed one and an outer open one. I want to plot only the outer piece. How might I go about that? I've been looking at the properties of t

Re: [Matplotlib-users] problem with RectangleSelector

2010-06-22 Thread Michael Droettboom
On 06/22/2010 11:39 AM, Benjamin Root wrote: On Tue, Jun 22, 2010 at 3:45 AM, Matthias Michler mailto:matthiasmich...@gmx.net>> wrote: On Tuesday, June 22, 2010 10:03:06 am Eric Firing wrote: > On 06/21/2010 09:28 PM, Matthias Michler wrote: > > On Monday, June 21, 2010 06:30:04

Re: [Matplotlib-users] problem with RectangleSelector

2010-06-22 Thread Benjamin Root
On Tue, Jun 22, 2010 at 3:45 AM, Matthias Michler wrote: > On Tuesday, June 22, 2010 10:03:06 am Eric Firing wrote: > > On 06/21/2010 09:28 PM, Matthias Michler wrote: > > > On Monday, June 21, 2010 06:30:04 pm Eric Firing wrote: > > >> On 06/21/2010 06:10 AM, Matthias Michler wrote: > > >>> Hello

[Matplotlib-users] Animated Line2D

2010-06-22 Thread Nie, Jinsuo
I am reposting my problem since I have not been able to solve it myself. I guess my original question has been buried deeply in this list. I modified the path_editor.py example in order to make a line editor, as attached. The path_editor.py worked fine on Qt4Agg. However, in the line editor, the

Re: [Matplotlib-users] Demo does not work on Snow Leopard

2010-06-22 Thread Friedrich Romstedt
Many apologises for the slow response ... I'm quite convinced the path is not an issue. 2010/6/19 Hana Sevcikova : > I see there are some compatibility issues. What would be the best way to > deal with it? This should be the issue. I think usually the matplotlib binaries are linked against the

Re: [Matplotlib-users] problem with RectangleSelector

2010-06-22 Thread Matthias Michler
On Tuesday, June 22, 2010 10:03:06 am Eric Firing wrote: > On 06/21/2010 09:28 PM, Matthias Michler wrote: > > On Monday, June 21, 2010 06:30:04 pm Eric Firing wrote: > >> On 06/21/2010 06:10 AM, Matthias Michler wrote: > >>> Hello list, > >>> > >>> I'm encountering a strange problem with the Rect

Re: [Matplotlib-users] problem with RectangleSelector

2010-06-22 Thread Eric Firing
On 06/21/2010 09:28 PM, Matthias Michler wrote: > On Monday, June 21, 2010 06:30:04 pm Eric Firing wrote: >> On 06/21/2010 06:10 AM, Matthias Michler wrote: >>> Hello list, >>> >>> I'm encountering a strange problem with the RectangleSelector using the >>> latest version of svn. Namely it doesn't w

Re: [Matplotlib-users] problem with RectangleSelector

2010-06-22 Thread Matthias Michler
On Monday, June 21, 2010 06:30:04 pm Eric Firing wrote: > On 06/21/2010 06:10 AM, Matthias Michler wrote: > > Hello list, > > > > I'm encountering a strange problem with the RectangleSelector using the > > latest version of svn. Namely it doesn't work if it wasn't initialized > > as RS = Rectangle