Changeset 03e8a6e in sasmodels


Ignore:
Timestamp:
Mar 17, 2016 10:52:45 AM (9 years ago)
Author:
gonzalezm
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:
735507b
Parents:
54954e1
Message:

Axis labels in options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/genmodel.py

    raa2edb2 r03e8a6e  
    2525        'xscale'    : 'log', 
    2626        'yscale'    : 'log' if not info['structure_factor'] else 'linear', 
     27        'xlabel'    : '$Q \/(\AA^{-1})$', 
     28        'ylabel'    : '$I(Q) \/(\mathrm{cm}^{-1})$' if not info['structure_factor'] else '$S(Q) \/(\mathrm{cm}^{-1})$', 
    2729        'qmin'      : 0.001, 
    2830        'qmax'      : 1.0, 
     
    6971ax = fig.add_subplot(1,1,1) 
    7072ax.plot(q, Iq1D, color='blue', lw=2, label=info['name']) 
    71 ax.set_xlabel(r'$Q \/(\AA^{-1})$') 
     73ax.set_xlabel(opts['xlabel']) 
    7274ax.set_xscale(opts['xscale'])    
    73 ax.set_ylabel(r'$I(Q) \/(\mathrm{cm}^{-1})$') 
     75ax.set_ylabel(opts['ylabel']) 
    7476ax.set_yscale(opts['yscale'])   
    7577ax.legend() 
Note: See TracChangeset for help on using the changeset viewer.