Changeset 092cb3c in sasmodels


Ignore:
Timestamp:
Mar 18, 2016 10:46:20 AM (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:
af92b73
Parents:
824465b
Message:

compare plots in Ang rather than nm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/data.py

    rc094758 r092cb3c  
    389389            if view is 'log': 
    390390                mdata[mdata <= 0] = masked 
    391             plt.errorbar(data.x/10, scale*mdata, yerr=data.dy, fmt='.') 
     391            plt.errorbar(data.x, scale*mdata, yerr=data.dy, fmt='.') 
    392392            all_positive = all_positive and (mdata > 0).all() 
    393393            some_present = some_present or (mdata.count() > 0) 
     
    412412                   if view == 'q4' or not some_present or not all_positive 
    413413                   else view) 
    414         plt.xlabel("$q$/nm$^{-1}$") 
     414        plt.xlabel("$q$/A$^{-1}$") 
    415415        plt.ylabel('$I(q)$') 
    416416 
     
    422422        if num_plots > 1: 
    423423            plt.subplot(1, num_plots, (use_data or use_theory) + 1) 
    424         plt.plot(data.x/10, mresid, '-') 
    425         plt.xlabel("$q$/nm$^{-1}$") 
     424        plt.plot(data.x, mresid, '-') 
     425        plt.xlabel("$q$/A$^{-1}$") 
    426426        plt.ylabel('residuals') 
    427427        plt.xscale('linear' if not some_present else view) 
Note: See TracChangeset for help on using the changeset viewer.