Changes in sasmodels/data.py [013adb7:d15a908] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/data.py
r013adb7 rd15a908 284 284 mdata[mdata <= 0] = masked 285 285 plt.errorbar(data.x/10, scale*mdata, yerr=data.dy, fmt='.') 286 all_positive = all_positive and (mdata >0).all()286 all_positive = all_positive and (mdata > 0).all() 287 287 some_present = some_present or (mdata.count() > 0) 288 288 … … 292 292 mtheory[~np.isfinite(mtheory)] = masked 293 293 if view is 'log': 294 mtheory[mtheory <=0] = masked294 mtheory[mtheory <= 0] = masked 295 295 plt.plot(data.x/10, scale*mtheory, '-', hold=True) 296 all_positive = all_positive and (mtheory >0).all()296 all_positive = all_positive and (mtheory > 0).all() 297 297 some_present = some_present or (mtheory.count() > 0) 298 298 … … 396 396 plt.title('theory') 397 397 h = plt.colorbar() 398 h.set_label(r'$\log_{10}I(q)$' if view =='log'398 h.set_label(r'$\log_{10}I(q)$' if view == 'log' 399 399 else r'$q^4 I(q)$' if view == 'q4' 400 400 else '$I(q)$') … … 411 411 plt.title('residuals') 412 412 h = plt.colorbar() 413 h.set_label( '$\Delta I(q)$')413 h.set_label(r'$\Delta I(q)$') 414 414 415 415
Note: See TracChangeset
for help on using the changeset viewer.