Changeset 42787fb in sasview for src/sas/qtgui
- Timestamp:
- May 7, 2018 9:34:50 AM (7 years ago)
- 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
- Location:
- src/sas/qtgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/DataOperationUtilityPanel.py
raed0532 r42787fb 181 181 self.cbOperator.setCurrentIndex(0) 182 182 183 self.output = None184 self.data1 = None185 self.data2 = None186 self.filenames = None187 self.list_data_items = []188 189 183 self.data1OK = False 190 184 self.data2OK = False … … 428 422 # plot 1D data 429 423 plotter = PlotterWidget(self, quickplot=True) 424 data.scale = 'linear' 430 425 plotter.data = data 431 426 plotter.showLegend = False 432 427 graph.setLayout(layout) 433 428 layout.addWidget(plotter) … … 437 432 438 433 plotter.plot(hide_error=True, marker='.') 439 # plotter.legend = None440 434 441 435 plotter.show() -
src/sas/qtgui/Plotting/Plotter.py
rbb57068 r42787fb 166 166 # Now add the legend with some customizations. 167 167 168 self.legend = ax.legend(loc='upper right', shadow=True) 169 if self.legend: 170 self.legend.set_picker(True) 168 if self.showLegend: 169 self.legend = ax.legend(loc='upper right', shadow=True) 170 if self.legend: 171 self.legend.set_picker(True) 171 172 172 173 # Current labels for axes -
src/sas/qtgui/Plotting/PlotterBase.py
reb1a386 r42787fb 76 76 self.gotLegend = 0 77 77 78 self.show_legend = True 79 78 80 # Annotations 79 81 self.selectedText = None … … 174 176 self.ax.set_xscale(scale) 175 177 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 176 188 177 189 def upatePlotHelper(self):
Note: See TracChangeset
for help on using the changeset viewer.