Changeset 1d61d07 in sasmodels
- Timestamp:
- Mar 29, 2016 6:23:07 PM (9 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/data.py
r092cb3c r1d61d07 381 381 382 382 if use_data or use_theory: 383 if num_plots > 1: 384 plt.subplot(1, num_plots, 1) 385 383 386 #print(vmin, vmax) 384 387 all_positive = True … … 399 402 if view is 'log': 400 403 mtheory[mtheory <= 0] = masked 401 plt.plot(data.x /10, scale*mtheory, '-', hold=True)404 plt.plot(data.x, scale*mtheory, '-', hold=True) 402 405 all_positive = all_positive and (mtheory > 0).all() 403 406 some_present = some_present or (mtheory.count() > 0) … … 406 409 plt.ylim(*limits) 407 410 408 if num_plots > 1:409 plt.subplot(1, num_plots, 1)410 411 plt.xscale('linear' if not some_present else view) 411 412 plt.yscale('linear'
Note: See TracChangeset
for help on using the changeset viewer.