Changeset 092cb3c in sasmodels
- Timestamp:
- Mar 18, 2016 10:46:20 AM (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:
- af92b73
- Parents:
- 824465b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/data.py
rc094758 r092cb3c 389 389 if view is 'log': 390 390 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='.') 392 392 all_positive = all_positive and (mdata > 0).all() 393 393 some_present = some_present or (mdata.count() > 0) … … 412 412 if view == 'q4' or not some_present or not all_positive 413 413 else view) 414 plt.xlabel("$q$/ nm$^{-1}$")414 plt.xlabel("$q$/A$^{-1}$") 415 415 plt.ylabel('$I(q)$') 416 416 … … 422 422 if num_plots > 1: 423 423 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}$") 426 426 plt.ylabel('residuals') 427 427 plt.xscale('linear' if not some_present else view)
Note: See TracChangeset
for help on using the changeset viewer.