Ignore:
Timestamp:
Mar 29, 2011 4:52:25 PM (13 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:
8f12385
Parents:
3b72b36
Message:

moving fixes from branch

File:
1 edited

Legend:

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

    r55a0dc1 r21969a4a  
    188188        new_plot.interactive = True 
    189189        new_plot.detector = self.base.data2D.detector 
    190         # If the data file does not tell us what the axes are, just assume... 
    191         new_plot.xaxis("\\rm{Q}", '\\AA^{-1}') 
    192         new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 
     190        ## If the data file does not tell us what the axes are, just assume... 
     191        new_plot.xaxis("\\rm{Q}", "A^{-1}") 
     192        if hasattr(self.base.data2D, "scale"): 
     193            if self.base.data2D.scale == 'linear': 
     194                new_plot.ytransform = 'y' 
     195                new_plot.yaxis("\\rm{Residuals} ", "/") 
     196        else: 
     197            new_plot.yaxis("\\rm{Intensity} ", "cm^{-1}") 
    193198        new_plot.group_id = str(self.averager.__name__) + self.base.data2D.name 
    194         new_plot.id = str(self.averager.__name__) 
     199        #new_plot.id = str(self.averager.__name__) 
    195200        #new_plot.is_data= True 
    196201        wx.PostEvent(self.base.parent, NewPlotEvent(plot=new_plot, 
Note: See TracChangeset for help on using the changeset viewer.