Changeset 685e0e3 in sasview for src/sas/qtgui/Plotting


Ignore:
Timestamp:
Aug 10, 2018 6:41:49 AM (6 years ago)
Author:
piotr
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
c7f259d
Parents:
a2cc8b97
Message:

Fix for frozen theories not showing correct plots. SASVIEW-978
Fix for Linear Fit not working properly after recent changes.

File:
1 edited

Legend:

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

    r42787fb r685e0e3  
    7575        is_fit = (self.data.id=="fit") 
    7676 
    77         # make sure we have some function to operate on 
    78         if self.data.xtransform is None: 
    79             self.data.xtransform = 'log10(x)' 
    80         if self.data.ytransform is None: 
    81             self.data.ytransform = 'log10(y)' 
    82  
    83         # Transform data if required. 
    84         if self.data.xtransform is not None or self.data.ytransform is not None: 
    85             _, _, xscale, yscale = GuiUtils.xyTransform(self.data, self.data.xtransform, self.data.ytransform) 
    86             if xscale != 'log': 
    87                 self.xscale = xscale 
    88             if yscale != 'log': 
    89                 self.yscale = yscale 
    90  
    91             # Redefine the Scale properties dialog 
    92             self.properties = ScaleProperties(self, 
    93                                     init_scale_x=self.data.xtransform, 
    94                                     init_scale_y=self.data.ytransform) 
     77        if not is_fit: 
     78            # make sure we have some function to operate on 
     79            if self.data.xtransform is None: 
     80                self.data.xtransform = 'log10(x)' 
     81            if self.data.ytransform is None: 
     82                self.data.ytransform = 'log10(y)' 
     83 
     84            # Transform data if required. 
     85            if self.data.xtransform is not None or self.data.ytransform is not None: 
     86                _, _, xscale, yscale = GuiUtils.xyTransform(self.data, self.data.xtransform, self.data.ytransform) 
     87                if xscale != 'log': 
     88                    self.xscale = xscale 
     89                if yscale != 'log': 
     90                    self.yscale = yscale 
     91 
     92                # Redefine the Scale properties dialog 
     93                self.properties = ScaleProperties(self, 
     94                                        init_scale_x=self.data.xtransform, 
     95                                        init_scale_y=self.data.ytransform) 
    9596 
    9697        # Shortcuts 
Note: See TracChangeset for help on using the changeset viewer.