Changeset d5e650d in sasmodels


Ignore:
Timestamp:
Feb 5, 2016 10:21:24 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c
Parents:
840b859
Message:

fix option for plotting absolute rather than relative error in compare

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rd07c883 rd5e650d  
    539539    if Ncomp > 0 and Nbase > 0: 
    540540        plt.subplot(133) 
    541         if '-abs' in opts: 
     541        if not opts['rel_err']: 
    542542            err, errstr, errview = resid, "abs err", "linear" 
    543543        else: 
     
    545545        #err,errstr = base/comp,"ratio" 
    546546        plot_theory(data, None, resid=err, view=errview, use_data=False) 
     547        if view == 'linear': 
     548            plt.xscale('linear') 
    547549        plt.title("max %s = %.3g"%(errstr, max(abs(err)))) 
    548550        #cbar_title = errstr if errview=="linear" else "log "+errstr 
Note: See TracChangeset for help on using the changeset viewer.