Changeset a436b2e in sasview for guiframe/local_perspectives/plotting
- Timestamp:
- May 19, 2011 7:43:38 PM (14 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:
- 8960479
- Parents:
- accbb1b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter1D.py
raccbb1b ra436b2e 307 307 if self.graph.selected_plottable in self.plots: 308 308 plot = self.plots[self.graph.selected_plottable] 309 310 id = wx.NewId() 311 self._slicerpop.Append(id, '&Linear Fit') 312 wx.EVT_MENU(self, id, self.onFitting) 313 self._slicerpop.AppendSeparator() 309 314 310 id = wx.NewId() 315 311 name = plot.name 316 312 self._slicerpop.Append(id, "&Save Points as a File") 317 wx.EVT_MENU(self, id, self._onSave) 318 id = wx.NewId() 319 self._slicerpop.Append(id, "Remove %s Curve" % name) 320 wx.EVT_MENU(self, id, self._onRemove) 321 if not plot.is_data: 313 self._slicerpop.AppendSeparator() 314 if plot.name != 'SLD': 315 wx.EVT_MENU(self, id, self._onSave) 322 316 id = wx.NewId() 323 self._slicerpop.Append(id, '& Freeze', 'Freeze')324 wx.EVT_MENU(self, id, self.onF reeze)325 symbol_menu = wx.Menu()326 for label in self._symbol_labels:317 self._slicerpop.Append(id, '&Linear Fit') 318 wx.EVT_MENU(self, id, self.onFitting) 319 self._slicerpop.AppendSeparator() 320 327 321 id = wx.NewId() 328 symbol_menu.Append(id, str(label), str(label)) 329 wx.EVT_MENU(self, id, self.onChangeSymbol) 330 id = wx.NewId() 331 self._slicerpop.AppendMenu(id,'&Modify Symbol', symbol_menu) 332 self._slicerpop.AppendSeparator() 333 334 id = wx.NewId() 335 self.hide_menu = self._slicerpop.Append(id, "Hide Error") 336 337 if plot.dy is not None and plot.dy != []: 338 if plot.hide_error : 339 self.hide_menu.SetText('Show Error') 322 self._slicerpop.Append(id, "Remove %s Curve" % name) 323 wx.EVT_MENU(self, id, self._onRemove) 324 if not plot.is_data: 325 id = wx.NewId() 326 self._slicerpop.Append(id, '&Freeze', 'Freeze') 327 wx.EVT_MENU(self, id, self.onFreeze) 328 symbol_menu = wx.Menu() 329 for label in self._symbol_labels: 330 id = wx.NewId() 331 symbol_menu.Append(id, str(label), str(label)) 332 wx.EVT_MENU(self, id, self.onChangeSymbol) 333 id = wx.NewId() 334 self._slicerpop.AppendMenu(id,'&Modify Symbol', symbol_menu) 335 self._slicerpop.AppendSeparator() 336 337 id = wx.NewId() 338 self.hide_menu = self._slicerpop.Append(id, "Hide Error") 339 340 if plot.dy is not None and plot.dy != []: 341 if plot.hide_error : 342 self.hide_menu.SetText('Show Error') 343 else: 344 self.hide_menu.SetText('Hide Error') 340 345 else: 341 self.hide_menu.SetText('Hide Error') 342 else: 343 self.hide_menu.Enable(False) 344 wx.EVT_MENU(self, id, self._ontoggle_hide_error) 345 346 self._slicerpop.AppendSeparator() 347 # Option to hide 348 #TODO: implement functionality to hide a plottable (legend click) 346 self.hide_menu.Enable(False) 347 wx.EVT_MENU(self, id, self._ontoggle_hide_error) 348 349 self._slicerpop.AppendSeparator() 350 # Option to hide 351 #TODO: implement functionality to hide a plottable (legend click) 349 352 350 353
Note: See TracChangeset
for help on using the changeset viewer.