Changeset 3c6ecd9 in sasview for src/sas/qtgui/Plotting


Ignore:
Timestamp:
May 7, 2018 6:47:21 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
42787fb
Parents:
b0ba43e (diff), 80468f6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ESS_GUI' into ESS_GUI_Pr

Location:
src/sas/qtgui/Plotting
Files:
5 edited

Legend:

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

    reb1a386 rbb57068  
    1313from sas.qtgui.Plotting.LinearFit import LinearFit 
    1414from sas.qtgui.Plotting.PlotProperties import PlotProperties 
     15from sas.qtgui.Plotting.ScaleProperties import ScaleProperties 
    1516 
    1617import sas.qtgui.Utilities.GuiUtils as GuiUtils 
     
    7475        is_fit = (self.data.id=="fit") 
    7576 
     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 
    7683        # Transform data if required. 
    77         # TODO: it properly! 
    78         #if data.xtransform is not None or data.ytransform is not None: 
    79         #    a, b, c, d = GuiUtils.xyTransform(self.data, self.data.xtransform, self.data.ytransform) 
     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) 
    8095 
    8196        # Shortcuts 
     
    276291        if self.properties.exec_() == QtWidgets.QDialog.Accepted: 
    277292            self.xLogLabel, self.yLogLabel = self.properties.getValues() 
     293            self.data.xtransform = self.xLogLabel 
     294            self.data.ytransform = self.yLogLabel 
    278295            self.xyTransform(self.xLogLabel, self.yLogLabel) 
    279296 
  • src/sas/qtgui/Plotting/SlicerParameters.py

    re90988c raed0532  
    8686        Display generic data averaging help 
    8787        """ 
    88         location = "/user/sasgui/guiframe/graph_help.html#d-data-averaging" 
     88        location = "/user/qtgui/MainWindow/graph_help.html#d-data-averaging" 
    8989        self.parent.showHelp(location) 
    9090 
  • src/sas/qtgui/Plotting/ConvertUnits.py

    • Property mode changed from 100644 to 100755
  • src/sas/qtgui/Plotting/DataTransform.py

    • Property mode changed from 100644 to 100755
  • src/sas/qtgui/Plotting/Slicers/Arc.py

    • Property mode changed from 100644 to 100755
Note: See TracChangeset for help on using the changeset viewer.