Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Plotter.py

    rb764ae5 r0cd98a1  
    3030        # Dictionary of {plot_id:Data1d} 
    3131        self.plot_dict = {} 
    32  
     32        # Dictionaty of {plot_id:line} 
     33 
     34        self.plot_lines = {} 
    3335        # Window for text add 
    3436        self.addText = AddText(self) 
     
    180182 
    181183        # 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 
    183187 
    184188        # Now add the legend with some customizations. 
     
    196200 
    197201        # 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() 
    203203 
    204204    def createContextMenu(self): 
     
    470470        """ 
    471471        selected_plot = self.plot_dict[id] 
    472  
     472        selected_line = self.plot_lines[id] 
    473473        # Old style color - single integer for enum color 
    474474        # New style color - #hhhhhh 
Note: See TracChangeset for help on using the changeset viewer.