- Timestamp:
- Apr 23, 2010 1:11:02 PM (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:
- b9405cd
- Parents:
- 784e2fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter1D.py
r4ed210f4 r0b57a57 127 127 for plottable in self.plots.itervalues(): 128 128 if hasattr(event.plot,"id") and hasattr(plottable, "id"): 129 if event.plot.id==plottable.id : 129 #remove the existing plot and same id and same name 130 if event.plot.id==plottable.id and event.plot.name== plottable.name: 130 131 self.graph.delete(plottable) 131 132 … … 151 152 self.graph.render(self) 152 153 self.subplot.figure.canvas.draw_idle() 153 if self.errors_hide:154 self._on_remove_errors(evt=None)155 else:156 self._on_add_errors( evt=None)154 #if self.errors_hide: 155 # self._on_remove_errors(evt=None) 156 #else: 157 # self._on_add_errors( evt=None) 157 158 158 159 def onLeftDown(self,event): … … 249 250 #if self.plots[self.graph.selected_plottable].name in self.err_dy.iterkeys()\ 250 251 # and self.errors_hide: 252 """ 251 253 if selected_plot.__class__.__name__=="Data1D": 252 254 if numpy.all(selected_plot.dy==0): … … 258 260 slicerpop.Append(id, '&Hide Error bars') 259 261 wx.EVT_MENU(self, id, self._on_remove_errors) 260 262 """ 261 263 id = wx.NewId() 262 264 slicerpop.Append(id, '&Linear fit')
Note: See TracChangeset
for help on using the changeset viewer.