Ignore:
Timestamp:
May 7, 2018 9:34:50 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
fa05c6c1
Parents:
3c6ecd9
Message:

Fixing issues with DataOperationUtility? calculator

File:
1 edited

Legend:

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

    reb1a386 r42787fb  
    7676        self.gotLegend = 0 
    7777 
     78        self.show_legend = True 
     79 
    7880        # Annotations 
    7981        self.selectedText = None 
     
    174176        self.ax.set_xscale(scale) 
    175177        self._xscale = scale 
     178 
     179    @property 
     180    def showLegend(self): 
     181        """ Legend visibility getter """ 
     182        return self.show_legend 
     183 
     184    @showLegend.setter 
     185    def showLegend(self, show=True): 
     186        """ Legend visibility setter """ 
     187        self.show_legend = show 
    176188 
    177189    def upatePlotHelper(self): 
Note: See TracChangeset for help on using the changeset viewer.