Ignore:
Timestamp:
Mar 29, 2011 4:52:25 PM (14 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/SectorSlicer.py

    r55a0dc1 r21969a4a  
    167167        else: 
    168168            dxw = None 
    169         new_plot = Data1D(x=sector.x, y=sector.y, dy=sector.dy) 
     169        new_plot = Data1D(x=sector.x, y=sector.y, dy=sector.dy, dx=sector.dx) 
    170170        new_plot.dxl = dxl 
    171171        new_plot.dxw = dxw 
     
    175175        new_plot.interactive = True 
    176176        new_plot.detector = self.base.data2D.detector 
    177         # If the data file does not tell us what the axes are, just assume... 
    178         new_plot.xaxis("\\rm{Q}", 'A^{-1}') 
    179         new_plot.yaxis("\\rm{Intensity} ", "cm^{-1}") 
     177        ## If the data file does not tell us what the axes are, just assume... 
     178        new_plot.xaxis("\\rm{Q}", "A^{-1}") 
     179        if hasattr(data, "scale"): 
     180            if data.scale == 'linear': 
     181                new_plot.ytransform = 'y' 
     182                new_plot.yaxis("\\rm{Residuals} ", "/") 
     183        else: 
     184            new_plot.yaxis("\\rm{Intensity} ", "cm^{-1}") 
     185        
    180186        new_plot.group_id = "SectorQ" + self.base.data2D.name 
    181         new_plot.id = "SectorQ" + self.base.data2D.name 
     187        new_plot.id = None 
    182188        new_plot.is_data = True 
     189 
    183190        wx.PostEvent(self.base.parent, NewPlotEvent(plot=new_plot, 
    184191                                    title="SectorQ" + self.base.data2D.name)) 
Note: See TracChangeset for help on using the changeset viewer.