Changeset 235f514 in sasview for src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter2D.py
- Timestamp:
- Apr 9, 2017 5:46:10 AM (8 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- ac07a3a
- Parents:
- 5b2b04d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter2D.py
r959eb01 r235f514 144 144 """ 145 145 # Not implemented 146 if event ==None:146 if event is None: 147 147 return 148 148 event.Skip() … … 227 227 if self._is_changed_legend_label: 228 228 data.label = self.title_label 229 if data.label ==None:229 if data.label is None: 230 230 data.label = data.name 231 231 if not self.title_font: … … 320 320 if len(self.data2D.detector) <= 1: 321 321 item_list = self.parent.get_current_context_menu(self) 322 if (not item_list ==None) and (not len(item_list) == 0) and\322 if (not item_list is None) and (not len(item_list) == 0) and\ 323 323 self.data2D.name.split(" ")[0] != 'Residuals': 324 324 for item, wx_id in zip(item_list, [ids.next() for i in range(len(item_list))]): … … 533 533 """ 534 534 ## Clear current slicer 535 if not self.slicer ==None:535 if not self.slicer is None: 536 536 self.slicer.clear() 537 537 ## Create a new slicer … … 719 719 Clear the slicer on the plot 720 720 """ 721 if not self.slicer ==None:721 if not self.slicer is None: 722 722 self.slicer.clear() 723 723 self.subplot.figure.canvas.draw()
Note: See TracChangeset
for help on using the changeset viewer.