Changeset 0239237 in sasview for src/sas/qtgui/Plotting


Ignore:
Timestamp:
Mar 29, 2019 11:24:37 AM (6 years ago)
Author:
awashington
Children:
033b1f2
Parents:
c149fba
Message:

The default transform for SESANS data should be linear, not log

The SESANS data is negative, so log scale can't be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Plotter.py

    r4c11b2a r0239237  
    8282 
    8383        if not is_fit: 
     84            logging.info("Plot") 
     85            logging.info(self.data.ytransform) 
     86            logging.info(self.data.isSesans) 
    8487            # make sure we have some function to operate on 
    8588            if self.data.xtransform is None: 
    86                 self.data.xtransform = 'log10(x)' 
     89                if self.data.isSesans: 
     90                    self.data.xtransform='x' 
     91                else: 
     92                    self.data.xtransform = 'log10(x)' 
    8793            if self.data.ytransform is None: 
    88                 self.data.ytransform = 'log10(y)' 
     94                if self.data.isSesans: 
     95                    self.data.ytransform='y' 
     96                else: 
     97                    self.data.ytransform = 'log10(y)' 
    8998            #Added condition to Dmax explorer from P(r) perspective 
    9099            if self.data._xaxis == 'D_{max}': 
Note: See TracChangeset for help on using the changeset viewer.