Changeset 19429


Ignore:
Timestamp:
07/08/15 05:16:15 (10 years ago)
Author:
cborstad
Message:

CHG: reverting some mystery changes to applyoptions.py that I use...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/applyoptions.py

    r19428 r19429  
    22from cmaptools import truncate_colormap
    33from plot_contour import plot_contour
     4from expdisp import expdisp
    45
    56try:
     
    2425
    2526                See also: PLOTMODEL, PARSE_OPTIONS
    26 
    2727        '''
    2828
     
    243243                                cb.set_label(options.getfieldvalue('colorbartitle'),fontsize=fontsize)
    244244                cb.ax.tick_params(labelsize=fontsize)
     245                cb.solids.set_rasterized(True)
    245246                cb.update_ticks()
     247                cb.set_alpha(1)
     248                cb.draw_all()
    246249                plt.sca(ax) # return to original axes control
    247250        #}}}
    248251
     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
    249267        #area
    250 
    251         #expdisp
    252268
    253269        #text {{{
Note: See TracChangeset for help on using the changeset viewer.