Changeset db500cb in sasview


Ignore:
Timestamp:
Sep 18, 2018 3:44:01 AM (5 weeks ago)
Author:
ibressler
Branches:
ESS_GUI, ESS_GUI_image_viewer, ESS_GUI_project_save
Children:
aa82f54
Parents:
5990185
Message:

plotPolydispersities(): used param unit provided by the model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py

    r5990185 rdb500cb  
    592592        # similar to FittingLogic._create1DPlot() but different data/axes 
    593593        data1d = Data1D(x = arr[0], y = arr[1]) 
    594         data1d.xaxis('\\rm{{{}}} '.format(name.replace('_', '\_')), 'A') # correct unit? 
     594        xunit = "" 
     595        if name in model.details and len(model.details[name]): 
     596            xunit = model.details[name][0] 
     597        data1d.xaxis('\\rm{{{}}}'.format(name.replace('_', '\_')), xunit) 
    595598        data1d.yaxis('\\rm{{{weight}}}', 'normalized') 
    596599        data1d.scale = 'linear' 
Note: See TracChangeset for help on using the changeset viewer.