Changeset 78cae5a in sasview
- Timestamp:
- Mar 12, 2010 12:55:13 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:
- 20b6760
- Parents:
- 08ece0b
- Location:
- guiframe/local_perspectives/plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/AnnulusSlicer.py
r4ac8556 r78cae5a 117 117 return 118 118 119 from DataLoader.manipulations import SectorPhi119 from DataLoader.manipulations import Ring 120 120 121 121 rmin= min(math.fabs(self.inner_circle.get_radius()), … … 130 130 self.nbins = nbins 131 131 ## create the data1D Q average of data2D 132 sect = SectorPhi(r_min=rmin , r_max= rmax, 133 phi_min=0, phi_max=2*math.pi , nbins=self.nbins) 132 sect = Ring(r_min=rmin , r_max= rmax, nbins=self.nbins) 134 133 sector = sect(self.base.data2D) 135 134 … … 144 143 dxw= None 145 144 146 new_plot = Data1D(x= sector.x,y=sector.y,dy=sector.dy)145 new_plot = Data1D(x=(sector.x-math.pi)*180/math.pi,y=sector.y,dy=sector.dy) 147 146 new_plot.dxl = dxl 148 147 new_plot.dxw = dxw 149 new_plot.name = " SectorPhi" +"("+ self.base.data2D.name+")"148 new_plot.name = "AnnulusPhi" +"("+ self.base.data2D.name+")" 150 149 151 150 new_plot.source=self.base.data2D.source … … 157 156 new_plot.xaxis("\\rm{\phi}", 'degrees') 158 157 new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 159 new_plot.group_id = " SectorPhi"+self.base.data2D.name160 new_plot.id= " SectorPhi"+self.base.data2D.name158 new_plot.group_id = "AnnulusPhi"+self.base.data2D.name 159 new_plot.id= "AnnulusPhi"+self.base.data2D.name 161 160 #new_plot.is_data= True 162 161 … … 164 163 new_plot.ytransform="y" 165 164 wx.PostEvent(self.base.parent, NewPlotEvent(plot=new_plot, 166 title=" SectorPhi" ))165 title="AnnulusPhi" )) 167 166 168 167 … … 181 180 wx.PostEvent(self.base, event) 182 181 # create a 1D data plot 183 self._post_data()182 #self._post_data() 184 183 185 184 def restore(self): -
guiframe/local_perspectives/plotting/AzimutSlicer.py
r4937983 r78cae5a 201 201 #print "main moveend ", event.params 202 202 #wx.PostEvent(self.base.parent, event) 203 self._post_data() 203 #self._post_data() 204 pass 204 205 205 206 def restore(self):
Note: See TracChangeset
for help on using the changeset viewer.