On Wed, Sep 2, 2009 at 11:41 AM, Sebastian Rhode<sebrh...@googlemail.com> wrote:
> So I already figure out how to delete the last drawn line, but this is not a
> very good solution. What I actually would need, is a selection which line &
> legend the users whats to remove from the graph (perfect would be
> interactivly directly from the graph). But so far, I could not figure this
> out. Has anyone a good ides how to achieve this?

All the matplotlib plot commands return artists created by that plot
command. Unless you want those permanently removed from the current
plot, it is suffice to just make them invisible
(http://matplotlib.sourceforge.net/api/artist_api.html?highlight=set_visible#matplotlib.artist.Artist.set_visible).

For interactive stuff, the following example may be a good starting
point (well, the example is in the svn trunk and I'm not sure if it
will run with older version of matplotlib).

http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/examples/event_handling/legend_picking.py?revision=7351&view=markup

Regards,

-JJ

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to