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-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 butt...@gmail.com wrote: Hi, I am

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,

Re: [Matplotlib-users] Hiding data via legend

2009-09-27 Thread Jae-Joon Lee
On Sun, Sep 27, 2009 at 10:02 AM, butterw butt...@gmail.com 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

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 lee.j.j...@gmail.com 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

Re: [Matplotlib-users] Hiding data via legend

2009-09-27 Thread John Hunter
On Sun, Sep 27, 2009 at 3:45 PM, Peter Butterworth butt...@gmail.com wrote: On Sun, Sep 27, 2009 at 9:31 PM, Jae-Joon Lee lee.j.j...@gmail.com 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

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

Re: [Matplotlib-users] Hiding data via legend

2009-09-23 Thread Jae-Joon Lee
On Wed, Sep 23, 2009 at 3:27 PM, butterw butt...@gmail.com 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

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread John Hunter
On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Severgokhanse...@gmail.com 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

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Ryan May
On Tue, Aug 4, 2009 at 11:50 AM, John Hunter jdh2...@gmail.com wrote: On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Severgokhanse...@gmail.com 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

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]: [matplotlib.lines.Line2D object at 0xabce76c] Here the variable lines is

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Ryan May
On Tue, Aug 4, 2009 at 2:27 PM, Michael Droettboom md...@stsci.edu 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

[Matplotlib-users] Hiding data via legend

2009-08-03 Thread Gökhan Sever
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 example: http://img25.imageshack.us/img25/9427/datahiding.png