Changeset 7432acb in sasview for src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter2D.py
- Timestamp:
- Apr 9, 2017 6:11:31 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:
- 45dffa69
- Parents:
- ac07a3a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter2D.py
rac07a3a r7432acb 156 156 PlotPanel.onLeftDown(self, event) 157 157 ax = event.inaxes 158 if ax !=None:158 if ax is not None: 159 159 # data coordinate position 160 160 pos_x = "%8.3g" % event.xdata … … 264 264 # control axis labels from the panel itself 265 265 yname, yunits = data.get_yaxis() 266 if self.yaxis_label !=None:266 if self.yaxis_label is not None: 267 267 yname = self.yaxis_label 268 268 yunits = self.yaxis_unit … … 271 271 self.yaxis_unit = yunits 272 272 xname, xunits = data.get_xaxis() 273 if self.xaxis_label !=None:273 if self.xaxis_label is not None: 274 274 xname = self.xaxis_label 275 275 xunits = self.xaxis_unit … … 355 355 slicerpop.Append(wx_id, '&Box Averaging in Qy') 356 356 wx.EVT_MENU(self, wx_id, self.onBoxavgY) 357 if self.slicer !=None:357 if self.slicer is not None: 358 358 wx_id = ids.next() 359 359 slicerpop.Append(wx_id, '&Clear Slicer') … … 435 435 msg = "Add Text: Error. Check your property values..." 436 436 logger.error(msg) 437 if self.parent !=None:437 if self.parent is not None: 438 438 wx.PostEvent(self.parent, StatusEvent(status=msg)) 439 439 dial.Destroy() … … 629 629 630 630 """ 631 if self.slicer !=None:631 if self.slicer is not None: 632 632 from SlicerParameters import SlicerParameterPanel 633 633 dialog = SlicerParameterPanel(self, -1, "Slicer Parameters") … … 735 735 """ 736 736 event_id = str(evt.GetId()) 737 if self.parent !=None:737 if self.parent is not None: 738 738 self._default_save_location = self.parent._default_save_location 739 739 default_name = self.plots[self.graph.selected_plottable].label … … 759 759 default_name = default_name.split('.')[0] 760 760 #default_name += "_out" 761 if self.parent !=None:761 if self.parent is not None: 762 762 self.parent.show_data2d(data, default_name) 763 763
Note: See TracChangeset
for help on using the changeset viewer.