Re: [Matplotlib-users] Hiding data via legend

2009-10-04 Thread Gökhan Sever
Hello, Are there any opinions how to make this legend picking work after a zoom or pan event? There is no way to bring the cursor into its beginning shape and therefore non of the clicking works as expected. On Sun, Oct 4, 2009 at 9:37 AM, Peter Butterworth wrote: > Hi, > > I am a bit surprised

Re: [Matplotlib-users] Hiding data via legend

2009-10-04 Thread Peter Butterworth
Hi, I am a bit surprised that a line that isn't visible remains pickable by default : # toggle line visibility: vis = not line.get_visible() line.set_visible(vis) # by default a line would remain pickable even if not visible : if vis : line.set_picker(5)

Re: [Matplotlib-users] Hiding data via legend

2009-09-27 Thread John Hunter
On Sun, Sep 27, 2009 at 3:45 PM, Peter Butterworth wrote: > On Sun, Sep 27, 2009 at 9:31 PM, Jae-Joon Lee wrote: >>> Some feedback: If plotting a line2D as discrete points rather than a >>> continuous line, you must use numpoints=2 for the legend picking to actually >>> occur on the points. The a

Re: [Matplotlib-users] Hiding data via legend

2009-09-27 Thread Peter Butterworth
On Sun, Sep 27, 2009 at 9:31 PM, Jae-Joon Lee wrote: >> Some feedback: If plotting a line2D as discrete points rather than a >> continuous line, you must use numpoints=2 for the legend picking to actually >> occur on the points. The alpha blending doesn't work on the legend symbols >> however. >>

Re: [Matplotlib-users] Hiding data via legend

2009-09-27 Thread Jae-Joon Lee
On Sun, Sep 27, 2009 at 10:02 AM, butterw wrote: > > Hi, > > thank you for clearing that up. > > > Some feedback: If plotting a line2D as discrete points rather than a > continuous line, you must use numpoints=2 for the legend picking to actually > occur on the points. The alpha blending doesn't w

Re: [Matplotlib-users] Hiding data via legend

2009-09-27 Thread butterw
Hi, thank you for clearing that up. Some feedback: If plotting a line2D as discrete points rather than a continuous line, you must use numpoints=2 for the legend picking to actually occur on the points. The alpha blending doesn't work on the legend symbols however. Is there any other way, I

Re: [Matplotlib-users] Hiding data via legend

2009-09-23 Thread Jae-Joon Lee
On Wed, Sep 23, 2009 at 3:27 PM, butterw wrote: > > Hi, > > pickers work great to make matplotlib plots more interactive/general user > friendly. > > On the subject of the legend_picker.py example, I was wondering if it was > possible to combine both a legend picker and a line picker in the same p

Re: [Matplotlib-users] Hiding data via legend

2009-09-23 Thread butterw
Hi, pickers work great to make matplotlib plots more interactive/general user friendly. On the subject of the legend_picker.py example, I was wondering if it was possible to combine both a legend picker and a line picker in the same plot. From what I gather they will both use the same onpick eve

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Jae-Joon Lee
On Tue, Aug 4, 2009 at 12:50 PM, John Hunter wrote: > On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever wrote: >> Hello, >> >> I was wondering if it is possible to hide some data on figures using a say >> right click option to any of the legend entry and make it temporarily >> hidden/visible to better

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Ryan May
On Tue, Aug 4, 2009 at 2:27 PM, Michael Droettboom wrote: > > Gökhan Sever wrote: > >> >> I see a little change when I typed them in Ipython, however not exactly >> sure the real reasoning behind this. >> >> In [4]: lines = ax.plot(t, y1, lw=2, color='red', label='1 hz') >> >> In [5]: lines >> Ou

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Michael Droettboom
Gökhan Sever wrote: > > I see a little change when I typed them in Ipython, however not > exactly sure the real reasoning behind this. > > In [4]: lines = ax.plot(t, y1, lw=2, color='red', label='1 hz') > > In [5]: lines > Out[5]: [] Here the variable lines is a list with one element (a Line2D ob

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Gökhan Sever
On Tue, Aug 4, 2009 at 11:50 AM, John Hunter wrote: > On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever > wrote: > > Hello, > > > > I was wondering if it is possible to hide some data on figures using a > say > > right click option to any of the legend entry and make it temporarily > > hidden/visible

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Ryan May
On Tue, Aug 4, 2009 at 11:50 AM, John Hunter wrote: > On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever > wrote: > > Hello, > > > > I was wondering if it is possible to hide some data on figures using a > say > > right click option to any of the legend entry and make it temporarily > > hidden/visible

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread John Hunter
On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever wrote: > Hello, > > I was wondering if it is possible to hide some data on figures using a say > right click option to any of the legend entry and make it temporarily > hidden/visible to better analyse the rest of the data? > > Check this screenshot for

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Josh Hemann
For this particular data set you might try simply using a log-scaled Y-axis. As to the larger question of interactively adding/removing plot elements, take a look at Enthought's Chaco toolkit. I think most people would agree that its plotting features are not as rich as mpl, but with respect to cu