@@ -1622,7 +1622,7 @@ def _break_share_link(ax, grouper):
1622
1622
return None
1623
1623
1624
1624
self ._axstack .remove (ax )
1625
- self ._axobservers .process ("_on_axes_change " , self )
1625
+ self ._axobservers .process ("_axes_change_event " , self )
1626
1626
self .stale = True
1627
1627
1628
1628
last_ax = _break_share_link (ax , ax ._shared_y_axes )
@@ -1918,7 +1918,7 @@ def gca(self, **kwargs):
1918
1918
def sca (self , a ):
1919
1919
"""Set the current axes to be *a* and return *a*."""
1920
1920
self ._axstack .bubble (a )
1921
- self ._axobservers .process ("_on_axes_change " , self )
1921
+ self ._axobservers .process ("_axes_change_event " , self )
1922
1922
return a
1923
1923
1924
1924
def _gci (self ):
@@ -1961,7 +1961,7 @@ def __getstate__(self):
1961
1961
# The canvas cannot currently be pickled, but this has the benefit
1962
1962
# of meaning that a figure can be detached from one canvas, and
1963
1963
# re-attached to another.
1964
- for attr_to_pop in ('show' , ' canvas' , '_cachedRenderer' ):
1964
+ for attr_to_pop in ('canvas' , '_cachedRenderer' ):
1965
1965
state .pop (attr_to_pop , None )
1966
1966
1967
1967
# add version information to the state
@@ -2028,7 +2028,7 @@ def add_axobserver(self, func):
2028
2028
"""Whenever the axes state change, ``func(self)`` will be called."""
2029
2029
# Connect a wrapper lambda and not func itself, to avoid it being
2030
2030
# weakref-collected.
2031
- self ._axobservers .connect ("_on_axes_change " , lambda arg : func (arg ))
2031
+ self ._axobservers .connect ("_axes_change_event " , lambda arg : func (arg ))
2032
2032
2033
2033
def savefig (self , fname , * , transparent = None , ** kwargs ):
2034
2034
"""
0 commit comments