@@ -713,7 +713,7 @@ def __init__(self, axes, pickradius=15):
713
713
self .callbacks = cbook .CallbackRegistry ()
714
714
715
715
self ._autolabelpos = True
716
- self ._smart_bounds = False # Deprecated in 3.0
716
+ self ._smart_bounds = False # Deprecated in 3.1
717
717
718
718
self .label = self ._get_label ()
719
719
self .labelpad = rcParams ['axes.labelpad' ]
@@ -1003,13 +1003,13 @@ def get_ticklabel_extents(self, renderer):
1003
1003
bbox2 = mtransforms .Bbox .from_extents (0 , 0 , 0 , 0 )
1004
1004
return bbox , bbox2
1005
1005
1006
- @cbook .deprecated ("3.0 " )
1006
+ @cbook .deprecated ("3.1 " )
1007
1007
def set_smart_bounds (self , value ):
1008
1008
"""set the axis to have smart bounds"""
1009
1009
self ._smart_bounds = value
1010
1010
self .stale = True
1011
1011
1012
- @cbook .deprecated ("3.0 " )
1012
+ @cbook .deprecated ("3.1 " )
1013
1013
def get_smart_bounds (self ):
1014
1014
"""get whether the axis has smart bounds"""
1015
1015
return self ._smart_bounds
@@ -1024,7 +1024,7 @@ def _update_ticks(self, renderer=None):
1024
1024
if renderer is not None :
1025
1025
cbook .warn_deprecated ("Axis._update_ticks should be called with"
1026
1026
" no arguments; the 'renderer' argument"
1027
- " is ignored and will be removed in 3.1 " )
1027
+ " is ignored and will be removed in 3.2 " )
1028
1028
interval = self .get_view_interval ()
1029
1029
tick_tups = list (self .iter_ticks ()) # iter_ticks calls the locator
1030
1030
if self ._smart_bounds and tick_tups : # _smart_bounds is deprecated
@@ -1081,7 +1081,7 @@ def _update_ticks(self, renderer=None):
1081
1081
try :
1082
1082
ds1 = self ._get_pixel_distance_along_axis (
1083
1083
interval_expanded [0 ], - 0.0005 )
1084
- except :
1084
+ except Exception :
1085
1085
warnings .warn ("Unable to find pixel distance along axis "
1086
1086
"for interval padding of ticks; assuming no "
1087
1087
"interval padding needed." )
@@ -1091,7 +1091,7 @@ def _update_ticks(self, renderer=None):
1091
1091
try :
1092
1092
ds2 = self ._get_pixel_distance_along_axis (
1093
1093
interval_expanded [1 ], + 0.0005 )
1094
- except :
1094
+ except Exception :
1095
1095
warnings .warn ("Unable to find pixel distance along axis "
1096
1096
"for interval padding of ticks; assuming no "
1097
1097
"interval padding needed." )
0 commit comments