Changeset 1d61d07 in sasmodels for sasmodels/data.py


Ignore:
Timestamp:
Mar 29, 2016 6:23:07 PM (8 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:
ea75043
Parents:
1182da5
Message:

fix broken 1D plotting in bumps wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/data.py

    r092cb3c r1d61d07  
    381381 
    382382    if use_data or use_theory: 
     383        if num_plots > 1: 
     384            plt.subplot(1, num_plots, 1) 
     385 
    383386        #print(vmin, vmax) 
    384387        all_positive = True 
     
    399402            if view is 'log': 
    400403                mtheory[mtheory <= 0] = masked 
    401             plt.plot(data.x/10, scale*mtheory, '-', hold=True) 
     404            plt.plot(data.x, scale*mtheory, '-', hold=True) 
    402405            all_positive = all_positive and (mtheory > 0).all() 
    403406            some_present = some_present or (mtheory.count() > 0) 
     
    406409            plt.ylim(*limits) 
    407410 
    408         if num_plots > 1: 
    409             plt.subplot(1, num_plots, 1) 
    410411        plt.xscale('linear' if not some_present else view) 
    411412        plt.yscale('linear' 
Note: See TracChangeset for help on using the changeset viewer.