Changeset 19429
- Timestamp:
- 07/08/15 05:16:15 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.py
r19428 r19429 2 2 from cmaptools import truncate_colormap 3 3 from plot_contour import plot_contour 4 from expdisp import expdisp 4 5 5 6 try: … … 24 25 25 26 See also: PLOTMODEL, PARSE_OPTIONS 26 27 27 ''' 28 28 … … 243 243 cb.set_label(options.getfieldvalue('colorbartitle'),fontsize=fontsize) 244 244 cb.ax.tick_params(labelsize=fontsize) 245 cb.solids.set_rasterized(True) 245 246 cb.update_ticks() 247 cb.set_alpha(1) 248 cb.draw_all() 246 249 plt.sca(ax) # return to original axes control 247 250 #}}} 248 251 252 #expdisp {{{ 253 if options.exist('expdisp'): 254 filename=options.getfieldvalue('expdisp') 255 style=options.getfieldvalue('expstyle','k') 256 linewidth=options.getfieldvalue('explinewidth',1) 257 for i in xrange(len(filename)): 258 filenamei=filename[i] 259 stylei=style[i] 260 if type(linewidth)==list: 261 linewidthi=linewidth[i] 262 else: 263 linewidthi=linewidth 264 expdisp(filenamei,ax,linestyle=stylei,linewidth=linewidthi,unitmultiplier=options.getfieldvalue('unit',1)) 265 #}}} 266 249 267 #area 250 251 #expdisp252 268 253 269 #text {{{
Note:
See TracChangeset
for help on using the changeset viewer.