#NEWLINE# def _rebuild_data( self ) : #NEWLINE# #INDENT# sort_index = self . fields . index ( self . value_item ) #NEWLINE# self . data_items = sorted ( self . _data_items . values ( ) , key = itemgetter ( sort_index ) , reverse = True ) #NEWLINE# data = zip ( * self . data_items ) #NEWLINE# for index in self . plottable_item_indices : #NEWLINE# #INDENT# self . plot_data . set_data ( self . fields [ index ] , np . array ( data [ index ] ) )