Changeset e4032d64 in sasview for guiframe


Ignore:
Timestamp:
Jan 13, 2009 3:49:53 PM (16 years ago)
Author:
Jae Cho <jhjcho@…>
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:
d15c0202
Parents:
ac9a5f6
Message:

phi added on axis label

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/AnnulusSlicer.py

    rac9a5f6 re4032d64  
    110110        rmin= self.inner_circle.get_radius() 
    111111        rmax = self.outer_circle.get_radius() 
    112         sect = SectorPhi(r_min=rmin , r_max= rmax, phi_min=-1*math.pi, phi_max=math.pi) 
     112        phi_min=-math.pi 
     113        phi_max=math.pi 
     114        phimi=phi_min+math.pi 
     115        phima=phi_max+math.pi 
     116        sect = SectorPhi(r_min=rmin , r_max= rmax, phi_min=phimi, phi_max=phima) 
    113117        if nbins!=None: 
    114118            sect.nbins = nbins 
     
    130134         
    131135        
    132  
     136         
    133137        new_plot.source=self.base.data2D.source 
    134138        #new_plot.info=self.base.data2D.info 
     
    137141        new_plot.detector =self.base.data2D.detector 
    138142        # If the data file does not tell us what the axes are, just assume... 
    139         new_plot.xaxis("\\rm{Q}", 'rad') 
     143        new_plot.xaxis("\\rm{\phi}", 'rad') 
    140144        new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 
    141145        new_plot.group_id = "SectorPhi"+self.base.data2D.name 
     146         
    142147        wx.PostEvent(self.base.parent, NewPlotEvent(plot=new_plot, 
    143148                                                 title="SectorPhi" )) 
     
    239244                                      linestyle='-', marker='', 
    240245                                      color=self.color) 
    241         self.npts = 20 
     246        self.npts = 40 
    242247             
    243248        self.connect_markers([self.inner_marker]) 
Note: See TracChangeset for help on using the changeset viewer.