Changeset b789967 in sasview for src/sas/qtgui/Plotter.py
- Timestamp:
- Feb 4, 2017 1:01:26 PM (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:
- e712ca5
- Parents:
- 965fbd8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotter.py
r3bdbfcc rb789967 82 82 83 83 # Plot name 84 self.title(title=self.data.title) 84 if self.data.title: 85 self.title(title=self.data.title) 86 else: 87 self.title(title=self.data.name) 85 88 86 89 # Error marker toggle … … 134 137 # Now add the legend with some customizations. 135 138 self.legend = ax.legend(loc='upper right', shadow=True) 136 self.legend.set_picker(True) 139 if self.legend: 140 self.legend.set_picker(True) 137 141 138 142 # Current labels for axes … … 191 195 for id in self.plot_dict.keys(): 192 196 plot = self.plot_dict[id] 193 #name = plot.name 194 name = plot. title197 198 name = plot.name if plot.name else plot.title 195 199 plot_menu = self.contextMenu.addMenu('&%s' % name) 196 200
Note: See TracChangeset
for help on using the changeset viewer.