@@ -991,10 +991,13 @@ def _update_ticks(self, renderer):
991991 interval_expanded = interval [1 ], interval [0 ]
992992
993993 if hasattr (self , '_get_pixel_distance_along_axis' ):
994- # normally, one does not want to catch all exceptions that could possibly happen, but it
995- # is not clear exactly what exceptions might arise from a user's projection (their rendition
996- # of the Axis object). So, we catch all, with the idea that one would rather potentially
997- # lose a tick from one side of the axis or another, rather than see a stack trace.
994+ # normally, one does not want to catch all exceptions that
995+ # could possibly happen, but it is not clear exactly what
996+ # exceptions might arise from a user's projection (their
997+ # rendition of the Axis object). So, we catch all, with
998+ # the idea that one would rather potentially lose a tick
999+ # from one side of the axis or another, rather than see a
1000+ # stack trace.
9981001 try :
9991002 ds1 = self ._get_pixel_distance_along_axis (interval_expanded [0 ], - 0.5 )
10001003 except :
@@ -1005,7 +1008,8 @@ def _update_ticks(self, renderer):
10051008 except :
10061009 warnings .warn ("Unable to find pixel distance along axis for interval padding; assuming no interval padding needed." )
10071010 ds2 = 0.0
1008- interval_expanded = (interval [0 ] - ds1 , interval [1 ] + ds2 )
1011+ interval_expanded = (interval_expanded [0 ] - ds1 ,
1012+ interval_expanded [1 ] + ds2 )
10091013
10101014 ticks_to_draw = []
10111015 for tick , loc , label in tick_tups :
0 commit comments