Changeset 9068f4c in sasmodels


Ignore:
Timestamp:
Oct 14, 2016 2:09:58 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
87bc707
Parents:
5bddd89
Message:

fix -hist option on sascomp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r234c532 r9068f4c  
    8181    -default/-demo* use demo vs default parameters 
    8282    -html shows the model docs instead of running the model 
     83    -title="note" adds note to the plot title, after the model name 
    8384 
    8485Any two calculation engines can be selected for comparison: 
     
    679680        else: 
    680681            err, errstr, errview = abs(relerr), "rel err", "log" 
     682        #sorted = np.sort(err.flatten()) 
     683        #cutoff = sorted[int(sorted.size*0.95)] 
     684        #err[err>cutoff] = cutoff 
    681685        #err,errstr = base/comp,"ratio" 
    682686        plot_theory(data, None, resid=err, view=errview, use_data=False) 
     
    691695    fig.suptitle(opts['name']) 
    692696 
    693     if n_comp > 0 and n_base > 0 and '-hist' in opts: 
     697    if n_comp > 0 and n_base > 0 and opts['show_hist']: 
    694698        plt.figure() 
    695699        v = relerr 
Note: See TracChangeset for help on using the changeset viewer.