Changeset 98816c43 in sasview for src/sans/guiframe/local_perspectives/plotting
- Timestamp:
- Apr 10, 2014 11:29:35 AM (11 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:
- 92c6c36
- Parents:
- 062ebef
- Location:
- src/sans/guiframe/local_perspectives/plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
rcafa75f r98816c43 417 417 418 418 def remove_data_by_id(self, id): 419 """ '420 remove data from plot419 """ 420 Remove data from plot 421 421 """ 422 422 if id in self.plots.keys(): … … 430 430 if id in theory_list.keys(): 431 431 data = theory_list[id] 432 # Update Graph menu and help string 433 #h_id = self.parent._window_menu.FindItem(self.window_caption) 434 if data != None: 435 if data.__class__.__name__ == 'list': 436 label = data[0].label 437 else: 438 label = data.label 439 else: 440 label = '???' 441 #helpString = self.parent._window_menu.GetHelpString(h_id) 442 d_string = (' ' + str(label) +';') 443 #new_tip = helpString.replace(d_string, '') 444 #self.parent._window_menu.SetHelpString(h_id, new_tip) 445 432 446 433 del self.plots[id] 447 434 self.graph.render(self) … … 450 437 #onRemove: graph is empty must be the panel must be destroyed 451 438 self.parent.delete_panel(self.uid) 452 453 439 454 440 def plot_data(self, data): … … 480 466 self._onEVT_FUNC_PROPERTY() 481 467 except Exception, exc: 482 msg=" Encountered singular points..."483 468 wx.PostEvent(self.parent, StatusEvent(status=\ 484 469 "Plotting Error: %s"% str(exc), info="error")) … … 498 483 self.canvas._onDrawIdle() 499 484 except Exception,exc: 500 msg=" Encountered singular points..."501 485 wx.PostEvent(self.parent, StatusEvent(status=\ 502 486 "Plotting Error: %s"% str(exc), info="error")) 503 487 self.toolbar.update() 504 488 self.is_zoomed = False 505 # Update Graph menu and help string 506 #pos = self.parent._window_menu.FindItem(self.window_caption) 507 helpString = 'Show/Hide Graph: ' 508 for plot in self.plots.itervalues(): 509 helpString += (' ' + str(plot.label) +';') 510 #self.parent._window_menu.SetHelpString(pos, helpString) 511 489 512 490 def draw_plot(self): 513 491 """ … … 850 828 self.get_symbol_label()[info[2]] 851 829 self.appearance_selected_plot.label = str(info[3]) 852 853 #pos = self.parent._window_menu.FindItem(self.window_caption)854 #helpString = 'Show/Hide Graph: '855 #for plot in self.plots.itervalues():856 # helpString += (' ' + str(plot.label) + ';')857 # self.parent._window_menu.SetHelpString(pos, helpString)858 # self._is_changed_legend_label = True859 860 830 self.appD.Destroy() 861 831 self._check_zoom_plot() 862 863 832 864 833 def modifyGraphAppearance(self, event): … … 878 847 self.is_xtick, self.is_ytick) 879 848 self.graphApp.Bind(wx.EVT_CLOSE, self.on_graphApp_close) 880 881 849 882 850 def on_graphApp_close(self, event): -
src/sans/guiframe/local_perspectives/plotting/Plotter2D.py
rcafa75f r98816c43 241 241 color=self.title_color) 242 242 self.subplot.figure.canvas.draw_idle() 243 # Update Graph menu and help string244 #pos = self.parent._window_menu.FindItem(self.window_caption)245 helpString = 'Show/Hide Graph: '246 helpString += (' ' + str(data.label) +';')247 #self.parent._window_menu.SetHelpString(pos, helpString)248 243 ## store default value of zmin and zmax 249 244 self.default_zmin_ctl = self.zmin_2D … … 458 453 dial.Destroy() 459 454 460 # Update Graph menu and help string461 if self.title_label != None:462 #pos = self.parent._window_menu.FindItem(self.window_caption)463 helpString = 'Show/Hide Graph: '464 helpString += (' ' + str(self.title_label) +';')465 #self.parent._window_menu.SetHelpString(pos, helpString)466 467 468 455 def _onEditDetector(self, event): 469 456 """
Note: See TracChangeset
for help on using the changeset viewer.