Ignore:
Timestamp:
Mar 20, 2019 8:06:22 AM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
ticket-1249
Children:
9305b46
Parents:
09d7021
Message:

py3/wx4 compatibility changes for gui. Refs #1249

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/plotting/AnnulusSlicer.py

    r5251ec6 r34f23c8  
    161161        new_plot.detector = self.base.data2D.detector 
    162162        # If the data file does not tell us what the axes are, just assume... 
    163         new_plot.xaxis("\\rm{\phi}", 'degrees') 
    164         new_plot.yaxis("\\rm{Intensity} ", "cm^{-1}") 
    165         if hasattr(data, "scale") and data.scale == 'linear' and \ 
    166                 self.base.data2D.name.count("Residuals") > 0: 
     163        new_plot.xaxis(r"\rm{\phi}", 'degrees') 
     164        new_plot.yaxis(r"\rm{Intensity} ", "cm^{-1}") 
     165        if (hasattr(data, "scale") and data.scale == 'linear' 
     166                and self.base.data2D.name.count("Residuals") > 0): 
    167167            new_plot.ytransform = 'y' 
    168             new_plot.yaxis("\\rm{Residuals} ", "/") 
     168            new_plot.yaxis(r"\rm{Residuals} ", "/") 
    169169 
    170170        new_plot.group_id = "AnnulusPhi" + self.base.data2D.name 
Note: See TracChangeset for help on using the changeset viewer.