#NEWLINE# def _update_ranges( self , element , ranges ) : #NEWLINE# #INDENT# framewise = self . lookup_options ( element , 'norm' ) . options . get ( 'framewise' ) #NEWLINE# ( l , b , r , t ) = self . get_extents ( element , ranges ) #NEWLINE# if ( ( not framewise ) and ( not self . dynamic ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# plot = self . handles [ 'plot' ] #NEWLINE# if self . invert_axes : #NEWLINE# #INDENT# ( l , b , r , t ) = ( b , l , t , r ) #NEWLINE# #UNINDENT# if ( l == r ) : #NEWLINE# #INDENT# offset = abs ( ( ( l * 0.1 ) if l else 0.5 ) ) #NEWLINE# l -= offset #NEWLINE# r += offset #NEWLINE# #UNINDENT# if ( b == t ) : #NEWLINE# #INDENT# offset = abs ( ( ( b * 0.1 ) if b else 0.5 ) ) #NEWLINE# b -= offset #NEWLINE# t += offset #NEWLINE# #UNINDENT# plot . x_range . start = l #NEWLINE# plot . x_range . end = r #NEWLINE# plot . y_range . start = b #NEWLINE# plot . y_range . end = t