Changes in src/sas/qtgui/Plotting/Plotter.py [b764ae5:0cd98a1] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plotter.py
rb764ae5 r0cd98a1 30 30 # Dictionary of {plot_id:Data1d} 31 31 self.plot_dict = {} 32 32 # Dictionaty of {plot_id:line} 33 34 self.plot_lines = {} 33 35 # Window for text add 34 36 self.addText = AddText(self) … … 180 182 181 183 # Update the list of data sets (plots) in chart 182 self.plot_dict[self._data.id] = self.data 184 self.plot_dict[self._data.name] = self.data 185 186 self.plot_lines[self._data.name] = line 183 187 184 188 # Now add the legend with some customizations. … … 196 200 197 201 # refresh canvas 198 self.canvas.draw_idle() 199 # This is an important processEvent. 200 # This allows charts to be properly updated in order 201 # of plots being applied. 202 QtWidgets.QApplication.processEvents() 202 self.canvas.draw() 203 203 204 204 def createContextMenu(self): … … 470 470 """ 471 471 selected_plot = self.plot_dict[id] 472 472 selected_line = self.plot_lines[id] 473 473 # Old style color - single integer for enum color 474 474 # New style color - #hhhhhh
Note: See TracChangeset
for help on using the changeset viewer.