Changeset ffd23b5 in sasview for guiframe/local_perspectives/plotting/Plotter1D.py
- Timestamp:
- Jan 19, 2009 11:39:18 AM (15 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.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 48112ab
- Parents:
- a2c38de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter1D.py
rd1dd9d4 rffd23b5 92 92 @param event: data event 93 93 """ 94 94 95 #TODO: Check for existence of plot attribute 95 96 … … 112 113 # plottable is already draw on the panel 113 114 is_new = False 114 115 116 115 117 116 118 if is_new: … … 134 136 #TODO: Should re-factor this 135 137 #if event.plot._xunit != self.graph.prop["xunit"]: 138 136 139 self.graph.xaxis(event.plot._xaxis, event.plot._xunit) 137 140 … … 223 226 id = wx.NewId() 224 227 slicerpop.Append(id, '&Add errors to data') 228 #print "panel scale before ",self.xLabel, self.yLabel 229 #print "cyllinder before adding error", self.plots[self.graph.selected_plottable].x 225 230 wx.EVT_MENU(self, id, self._on_add_errors) 226 231 else: … … 276 281 label, unit = self.plots[self.graph.selected_plottable].get_yaxis() 277 282 new_plot.yaxis(label, unit) 278 283 #print "panel scale ",self.xLabel, self.yLabel 279 284 self.graph.delete(self.plots[self.graph.selected_plottable]) 280 285 281 286 self.graph.add(new_plot) 287 # transforming the view of the new data into the same of the previous data 288 self._onEVT_FUNC_PROPERTY() 289 #print "cyllinder", self.plots[self.graph.selected_plottable].x,self.plots[self.graph.selected_plottable].view.x, new_plot.x, new_plot.view.x 282 290 self.plots[self.graph.selected_plottable]=new_plot 283 291
Note: See TracChangeset
for help on using the changeset viewer.