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


Ignore:
Timestamp:
Mar 5, 2018 3:39:00 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:
3b3b40b, fca1f50
Parents:
91ad45c
Message:

Minor fixes

File:
1 edited

Legend:

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

    rd6b8a1d re4c475b7  
    1313from sas.qtgui.Plotting import DataTransform 
    1414from sas.qtgui.Plotting.LineModel import LineModel 
     15import sas.qtgui.Utilities.GuiUtils as GuiUtils 
    1516 
    1617# Local UI 
     
    5657        self.txtRangeMin.setText(str(max_range[0])) 
    5758        self.txtRangeMax.setText(str(max_range[1])) 
    58         self.txtFitRangeMin.setText(str(fit_range[0])) 
    59         self.txtFitRangeMax.setText(str(fit_range[1])) 
     59        # Assure nice display of ranges 
     60        fr_min = GuiUtils.formatNumber(fit_range[0]) 
     61        fr_max = GuiUtils.formatNumber(fit_range[1]) 
     62        self.txtFitRangeMin.setText(str(fr_min)) 
     63        self.txtFitRangeMax.setText(str(fr_max)) 
    6064 
    6165        # cast xLabel into html 
     
    113117        # Set the qmin and qmax in the panel that matches the 
    114118        # transformed min and max 
    115         #value_xmin = X_VAL_DICT[self.xLabel].floatTransform(xmin) 
    116         #value_xmax = X_VAL_DICT[self.xLabel].floatTransform(xmax) 
    117  
    118119        value_xmin = self.floatInvTransform(xmin) 
    119120        value_xmax = self.floatInvTransform(xmax) 
Note: See TracChangeset for help on using the changeset viewer.