- Timestamp:
- Mar 27, 2009 3:23:35 PM (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:
- ca94880
- Parents:
- 2c0f2a5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter2D.py
r6c0568b r15550f4 101 101 ## Update self.data2d with the current plot 102 102 self.data2D = event.plot 103 103 104 #TODO: Check for existence of plot attribute 104 105 … … 162 163 @param event: wx context event 163 164 """ 165 164 166 slicerpop = PanelMenu() 165 167 slicerpop.set_plots(self.plots) 166 168 slicerpop.set_graph(self.graph) 167 168 169 169 170 id = wx.NewId() … … 198 199 wx.EVT_MENU(self, id, self._onEditDetector) 199 200 200 id = wx.NewId() 201 slicerpop.Append(id, '&Perform circular average') 202 wx.EVT_MENU(self, id, self.onCircular) 203 204 id = wx.NewId() 205 slicerpop.Append(id, '&Sector [Q view]') 206 wx.EVT_MENU(self, id, self.onSectorQ) 207 208 id = wx.NewId() 209 slicerpop.Append(id, '&Annulus [Phi view ]') 210 wx.EVT_MENU(self, id, self.onSectorPhi) 211 212 id = wx.NewId() 213 slicerpop.Append(id, '&Box Sum') 214 wx.EVT_MENU(self, id, self.onBoxSum) 215 216 id = wx.NewId() 217 slicerpop.Append(id, '&Box averaging in Qx') 218 wx.EVT_MENU(self, id, self.onBoxavgX) 219 220 id = wx.NewId() 221 slicerpop.Append(id, '&Box averaging in Qy') 222 wx.EVT_MENU(self, id, self.onBoxavgY) 223 224 if self.slicer !=None : 201 if not hasattr(self.data2D,"pictype"): 225 202 id = wx.NewId() 226 slicerpop.Append(id, '&Clear slicer') 227 wx.EVT_MENU(self, id, self.onClearSlicer) 228 229 if self.slicer.__class__.__name__ !="BoxSum": 203 slicerpop.Append(id, '&Perform circular average') 204 wx.EVT_MENU(self, id, self.onCircular) 205 206 id = wx.NewId() 207 slicerpop.Append(id, '&Sector [Q view]') 208 wx.EVT_MENU(self, id, self.onSectorQ) 209 210 id = wx.NewId() 211 slicerpop.Append(id, '&Annulus [Phi view ]') 212 wx.EVT_MENU(self, id, self.onSectorPhi) 213 214 id = wx.NewId() 215 slicerpop.Append(id, '&Box Sum') 216 wx.EVT_MENU(self, id, self.onBoxSum) 217 218 id = wx.NewId() 219 slicerpop.Append(id, '&Box averaging in Qx') 220 wx.EVT_MENU(self, id, self.onBoxavgX) 221 222 id = wx.NewId() 223 slicerpop.Append(id, '&Box averaging in Qy') 224 wx.EVT_MENU(self, id, self.onBoxavgY) 225 226 if self.slicer !=None : 230 227 id = wx.NewId() 231 slicerpop.Append(id, '& Edit Slicer Parameters')232 wx.EVT_MENU(self, id, self._onEditSlicer)228 slicerpop.Append(id, '&Clear slicer') 229 wx.EVT_MENU(self, id, self.onClearSlicer) 233 230 234 slicerpop.AppendSeparator() 231 if self.slicer.__class__.__name__ !="BoxSum": 232 id = wx.NewId() 233 slicerpop.Append(id, '&Edit Slicer Parameters') 234 wx.EVT_MENU(self, id, self._onEditSlicer) 235 236 slicerpop.AppendSeparator() 235 237 236 238 id = wx.NewId()
Note: See TracChangeset
for help on using the changeset viewer.