Changeset 1ce365f8 in sasview
- Timestamp:
- Feb 18, 2009 3:13:06 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:
- b5c537f
- Parents:
- d466625
- Location:
- guiframe/local_perspectives/plotting
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/AnnulusSlicer.py
r14d3495 r1ce365f8 52 52 53 53 # Bind to slice parameter events 54 self.base. parent.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS)54 self.base.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 55 55 56 56 57 57 58 58 def _onEVT_SLICER_PARS(self, event): 59 wx.PostEvent(self.base .parent, StatusEvent(status="AnnulusSlicer._onEVT_SLICER_PARS"))59 wx.PostEvent(self.base, StatusEvent(status="AnnulusSlicer._onEVT_SLICER_PARS")) 60 60 event.Skip() 61 61 if event.type == self.__class__.__name__: … … 123 123 math.fabs(self.outer_circle.get_radius())) 124 124 print "rmin, rmax", rmin, rmax 125 126 sect = SectorPhi(r_min=rmin , r_max= rmax, phi_min=0, phi_max=2*math.pi) 127 if nbins!=None: 128 sect.nbins = nbins 125 if nbins==None: 126 nbins = 20 127 sect = SectorPhi(r_min=rmin , r_max= rmax, 128 phi_min=0, phi_max=2*math.pi , nbins=nbins) 129 129 130 130 131 sector = sect(self.base.data2D) -
guiframe/local_perspectives/plotting/Plotter2D.py
r9a585d0 r1ce365f8 190 190 wx.EVT_MENU(self, id, self.onPrint) 191 191 192 id = wx.NewId() 193 slicerpop.Append(id,'&Image Preview', 'image preview for print') 194 wx.EVT_MENU(self, id, self.onPrinterPreview) 195 192 196 slicerpop.AppendSeparator() 193 197 item_list = self.parent.get_context_menu(self.graph) … … 248 252 wx.EVT_MENU(self, id, self.onPrinterSetup) 249 253 250 id = wx.NewId() 251 slicerpop.Append(id,'&Printer Preview', 'Set image size') 252 wx.EVT_MENU(self, id, self.onPrinterPreview) 254 253 255 """ 254 256 id = wx.NewId() -
guiframe/local_perspectives/plotting/SectorSlicer.py
r31e3298 r1ce365f8 63 63 64 64 # Bind to slice parameter events 65 self.base.parent.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS)66 65 #self.base.parent.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 66 self.base.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 67 67 68 68 def _onEVT_SLICER_PARS(self, event): 69 wx.PostEvent(self.base.parent, StatusEvent(status="SectorSlicer._onEVT_SLICER_PARS")) 69 #wx.PostEvent(self.base.parent, StatusEvent(status="SectorSlicer._onEVT_SLICER_PARS")) 70 wx.PostEvent(self.base, StatusEvent(status="SectorSlicer._onEVT_SLICER_PARS")) 70 71 event.Skip() 71 72 if event.type == self.__class__.__name__: … … 162 163 #print "sector Q angles=",phimin*180/math.pi,phimax*180/math.pi,self.main_line.theta*180/math.pi 163 164 #phi must be 0 to 2pi with cut-off line sts on the left. 164 sect = SectorQ(r_min=0.0, r_max= radius , phi_min=phimin+math.pi, phi_max=phimax+math.pi) 165 if nbins==None: 166 nbins = 20 167 sect = SectorQ(r_min=0.0, r_max= radius , phi_min=phimin+math.pi, phi_max=phimax+math.pi, nbins=nbins) 165 168 #sect = SectorQ(r_min=-1*radius , r_max= radius , phi_min=phimin, phi_max=phimax) 166 if nbins!=None: 167 sect.nbins = nbins 169 168 170 169 171 sector = sect(self.base.data2D) -
guiframe/local_perspectives/plotting/boxSum.py
rea290ee r1ce365f8 77 77 self.panel_name= name 78 78 def _onEVT_SLICER_PARS(self, event): 79 #printEVT("AnnulusSlicer._onEVT_SLICER_PARS")79 wx.PostEvent(self.base, StatusEvent(status="Boxsum._onEVT_SLICER_PARS")) 80 80 event.Skip() 81 81 if event.type == self.__class__.__name__: … … 108 108 109 109 #self.base.connect.disconnect() 110 self.base.parent.Unbind(SlicerParameters.EVT_SLICER_PARS)110 #self.base.parent.Unbind(SlicerParameters.EVT_SLICER_PARS) 111 111 112 112 def update(self):
Note: See TracChangeset
for help on using the changeset viewer.