Changeset ce166d3 in sasmodels


Ignore:
Timestamp:
Dec 23, 2015 10:41:35 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:
ec7e360
Parents:
d53d3cd
Message:

xbins,ybins ⇒ x_bins,y_bins to match sasview 2D data objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/data.py

    r644430f rce166d3  
    207207    detector.distance = 4 # m 
    208208    data.detector.append(detector) 
    209     data.xbins = qx 
    210     data.ybins = qy 
     209    data.x_bins = qx 
     210    data.y_bins = qy 
    211211    data.source.wavelength = 5 # angstroms 
    212212    data.source.wavelength_unit = "A" 
     
    435435    except: 
    436436        vmin, vmax = 0, 1 
    437     plt.imshow(plottable.reshape(len(data.xbins), len(data.ybins)), 
     437    plt.imshow(plottable.reshape(len(data.x_bins), len(data.y_bins)), 
    438438               interpolation='nearest', aspect=1, origin='upper', 
    439439               extent=[xmin, xmax, ymin, ymax], vmin=vmin, vmax=vmax) 
Note: See TracChangeset for help on using the changeset viewer.