|
From: Åke K. <ake...@gm...> - 2010-12-15 14:13:57
|
I am using matplotlib in a wxpython application where series are added dynamically to subplots in a figure. I added the very handy option to toggle series' visibility (by calling set_visible(False). The catch is however that the invisible series are included in the rescaling of the artists (Line2D all of them). Is there any way to fix that? The behavior I'm after is for rescaling to be based on visible artists only. The way I am doing the rescaling currently is simply by calling these two methods from the event handler: event.inaxes.relim() event.inaxes.autoscale_view(tight=None, scalex=False, scaley=True) |