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)
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to