Jean-Baptiste> I do not see the utilitiy of the b variable. Is it
Jean-Baptiste> to keep some kind of scheme ? or just a left over
Jean-Baptiste> from set_visible ?
It's a bug, just use
"return the artist's visiblity"
Jean-Baptiste> By the way on which backend is the alpha channel
Agg, TkAgg, GTKAgg.
Since I know you are a GTK user, I suspect you'll be interested in
GTKAgg. It's identical to the GTK backend in terms of the widget set,
but the figures are renderer with agg.
I know you are interested in object_picker so I might as well deal
with that now :-). You have to make a couple of minor changes to
object_picker.py to work with GTKAgg. In my apps I import
FigureCasvasGTK or FigureCanvasGTKAgg renamed as FigureCanvas, which
makes it easy to switch back and forth if you want.
from matplotlib.backends.backend_gtk import NavigationToolbar, \
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas
Then create your picker canvas like
def button_press_event(self, widget, event):
width = self.figure.bbox.x.interval()
height = self.figure.bbox.y.interval()
The rest is OK.