Changeset 14252
- Timestamp:
- 01/15/13 13:47:08 (12 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.py
r13957 r14252 1 from matplotlib.ticker import MaxNLocator 1 2 2 3 try: … … 107 108 #}}} 108 109 110 #ticklabel notation {{{ 111 p.gca().ticklabel_format(style='sci',scilimits=(0,0)) 112 #}}} 113 109 114 #ticklabelfontsize {{{ 110 115 if options.exist('ticklabelfontsize'): … … 116 121 label.set_fontsize(options.getfieldvalue('ticklabelfontsize')) 117 122 #}}} 123 118 124 #view 119 125 … … 153 159 #colorbar {{{ 154 160 if 'on' in options.getfieldvalue('colorbar','off'): 155 p.colorbar() 161 cb=p.colorbar() 162 cb.locator=MaxNLocator(nbins=5) # default 5 ticks 163 cb.update_ticks() 164 if options.exist('colorbarnumticks'): 165 cb.locator=MaxNLocator(nbins=options.getfieldvalue('colorbarnumticks',5)) 166 cb.update_ticks() 156 167 #}}} 157 168 -
issm/trunk-jpl/src/m/plot/plot_manager.py
r13771 r14252 57 57 58 58 #standard plot 59 p.subplot(nlines,ncols,i )59 p.subplot(nlines,ncols,i,aspect='equal') 60 60 61 61 #plot unit … … 64 64 #apply all options 65 65 applyoptions(md,data2,options) 66 66 67 67 #ground overlay on kml plot_unit -
issm/trunk-jpl/src/m/plot/plotmodel.py
r14248 r14252 65 65 else: 66 66 raise StandardError('plotmodel error message: no output data found.') 67
Note:
See TracChangeset
for help on using the changeset viewer.