#NEWLINE# def _set_norm( self , mode ) : #NEWLINE# #INDENT# ' Use the `ContrastMouseMode` to adjust the transfer function ' #NEWLINE# ( clip_lo , clip_hi ) = mode . get_clip_percentile ( ) #NEWLINE# ( vmin , vmax ) = mode . get_vmin_vmax ( ) #NEWLINE# stretch = mode . stretch #NEWLINE# self . _norm . clip_lo = clip_lo #NEWLINE# self . _norm . clip_hi = clip_hi #NEWLINE# self . _norm . stretch = stretch #NEWLINE# self . _norm . bias = mode . bias #NEWLINE# self . _norm . contrast = mode . contrast #NEWLINE# self . _norm . vmin = vmin #NEWLINE# self . _norm . vmax = vmax #NEWLINE# self . _im . set_norm ( self . _norm ) #NEWLINE# self . _redraw ( )