Re: [Matplotlib-users] pick the legend? pick a point but not a connecting line?

2009-02-22 Thread Jae-Joon Lee
> > 1) WIthin this same pick handler function, have another if conditional, > but for the case when the user is picking the legend. In other words, I > want to pick the legend artist, not a Line2D artist. I'm afraid but it is not clear what you want here (at least to me). Can you just pick up the

[Matplotlib-users] pick the legend? pick a point but not a connecting line?

2009-02-21 Thread C M
Hi, I have two picking questions. First, If I do this inside a pick handler function: def OnPick(self, event): if isinstance(event.artist, Line2D): thisline = event.artist xdata = thisline.get_xdata() ydata = thisline.get_ydata() I can grab the data from