From: Ryan M. <rm...@gm...> - 2009-08-04 18:05:24
|
On Tue, Aug 4, 2009 at 11:50 AM, John Hunter <jd...@gm...> wrote: > On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever<gok...@gm...> > 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 example: > > > > http://img25.imageshack.us/img25/9427/datahiding.png > > > > The red data clutters the rest of the figure, and I would like to be able > to > > hide it temporarily so that I can investigate the other two relations > more > > easily. > > > > Any ideas? or alternative solutions? > > It's a nice idea, and should be doable with the pick interface we have > for all mpl artists. Unfortunately, there were a few problems in the > legend implementation which blocked the pick events from hitting the > proxy lines they contained. I just made a few changes to mpl svn HEAD > to support this, and added a new example. > > examples/event_handling/legend_picking.py Awesome example. I tweaked it to change the alpha of the lines in the legend so that you know when you've turned off a line (making it more chaco-like). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |