#NEWLINE# @ on_trait_change ( 'model.value_item' ) #NEWLINE# def _on_model_value_item_change( self , value_item ) : #NEWLINE# #INDENT# if ( value_item is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( value_item in self . model . UNITS ) : #NEWLINE# #INDENT# value_title = '{0} ({1})' . format ( value_item , value_title . model . UNITS [ value_item ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value_title = value_item #NEWLINE# #UNINDENT# self . plot . y_axis . title = value_title