Le mardi 07 janvier 2014 à 17:57 +0100, V. Armando Sole a écrit : > > What about using axvline with the picker argument? > > see http://matplotlib.org/users/event_handling.html > > > > I think axvline is part of the pyplot interface that I am not using. > > However your link is going to help me a lot. I thought picking was > restricted to patches, and I had missed Line2D is an Artist too with the > same capabilities.
axvline is a pyplot function, but it is also a method of the Axes class. So if you have an Axes in your Figure, everything is ok http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.axvline regards ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users