Changeset ce64735 in sasview for guiframe/local_perspectives
- Timestamp:
- Nov 17, 2008 6:19:11 AM (16 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:
- 9696b075
- Parents:
- 4ce29e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/DataPanel.py
r35d1092 rce64735 16 16 from danse.common.plottools.plottables import Graph,Data1D 17 17 from sans.guicomm.events import EVT_NEW_PLOT 18 from sans.guicomm.events import StatusEvent 18 from sans.guicomm.events import StatusEvent ,NewPlotEvent 19 19 20 20 class PanelMenu(wx.Menu): … … 514 514 515 515 id = wx.NewId() 516 slicerpop.Append(id, '&Line slicer [Q-view]') 517 wx.EVT_MENU(self, id, self.onLineSlicer) 518 519 id = wx.NewId() 520 slicerpop.Append(id, '&Annulus slicer [Phi-view]') 521 wx.EVT_MENU(self, id, self.onAnnulusSlicer) 522 523 id = wx.NewId() 524 slicerpop.Append(id, '&Clear slicer') 525 wx.EVT_MENU(self, id, self.onClearSlicer) 526 527 id = wx.NewId() 528 slicerpop.Append(id, '&Edit Parameters') 529 wx.EVT_MENU(self, id, self._onEditDetector) 516 slicerpop.Append(id, '§or averaging') 517 wx.EVT_MENU(self, id, self.onSectorSlicer) 518 519 530 520 531 521 pos = event.GetPosition() … … 534 524 535 525 536 def on LineSlicer(self, event):526 def onSectorSlicer(self, event): 537 527 print "onLineSlicer" 538 539 def onAnnulusSlicer(self, event): 540 print "onAnnulusSlicer" 541 def onClearSlicer(self, event): 542 print "onClearSlicer" 543 def _onEditDetector(self, event): 544 print "_onEditDetector" 545 def onSaveImage(self, event): 546 print "onSaveImage" 547 def _onToggleScale(self, event): 548 print "_onToggleScale" 549 def _onToggleEnable(self, event): 550 print "_onToggleEnable" 528 import math 529 from DataLoader.manipulations import SectorPhi 530 for item in self.graph.plottables: 531 r= SectorPhi(005,.01, 0.0, math.pi/2.0) 532 print r(item) 533 data=r(item) 534 new_plot= Data1D(x=data.x,y=data.y,dy=data.dy ) 535 new_plot.name = "sector" 536 new_plot.group_id= "sector" 537 #wx.PostEvent(self.parent, NewPlotEvent(plot=r(item), title="Analytical model")) 538 wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, title="Analytical model")) 539 540 541
Note: See TracChangeset
for help on using the changeset viewer.