Changeset 3bfd924 in sasmodels


Ignore:
Timestamp:
Oct 26, 2017 12:00:39 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
f39d4a3
Parents:
f18ddc8
Message:

sascomp: fix scale for residuals plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    ra5f91a7 r3bfd924  
    992992        #err,errstr = base/comp,"ratio" 
    993993        plot_theory(data, None, resid=err, view=errview, use_data=use_data) 
    994         plt.xscale('log' if view == 'log' else linear) 
     994        plt.xscale('log' if view == 'log' and not opts['is2d'] else 'linear') 
    995995        plt.legend(['P%d'%(k+1) for k in range(setnum+1)], loc='best') 
    996996        plt.title("max %s = %.3g"%(errstr, abs(err).max())) 
Note: See TracChangeset for help on using the changeset viewer.