Changeset 17841


Ignore:
Timestamp:
04/25/14 08:12:10 (11 years ago)
Author:
cborstad
Message:

CHG: extend colormap so that contours fully cover max/min of data

Location:
issm/trunk-jpl/src/m/plot
Files:
2 edited

Legend:

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

    r17778 r17841  
    5555                #node plot
    5656                if is2d:
    57                         tri=ax.tricontourf(x,y,elements,data,colorlevels,cmap=cmap,norm=norm,alpha=alpha)
     57                        tri=ax.tricontourf(x,y,elements,data,colorlevels,cmap=cmap,norm=norm,alpha=alpha,extend='both')
    5858                        if edgecolor != 'None':
    5959                                ax.triplot(x,y,elements,color=edgecolor)
  • TabularUnified issm/trunk-jpl/src/m/plot/plotmodel.py

    r17822 r17841  
    6060                if options.list[0].exist('figsize'):
    6161                        figsize=options.list[0].getfieldvalue('figsize')
    62                         fig=plt.figure(figurenumber,figsize=figsize,tight_layout=True)
     62                        fig=plt.figure(figurenumber,figsize=(figsize[0],figsize[1]),tight_layout=True)
    6363                else:
    6464                        fig=plt.figure(figurenumber,tight_layout=True)
     
    8989                                )
    9090
     91                if cbar_mode=='none':
     92                        for ax in axgrid.cbar_axes: fig._axstack.remove(ax)
     93
    9194                for i in xrange(numberofplots):
    9295                        plot_manager(options.list[i].getfieldvalue('model',md),options.list[i],fig,axgrid[i])
    9396
    94                 plt.show()
     97                fig.show()
    9598        else:
    9699                raise StandardError('plotmodel error message: no output data found.')
Note: See TracChangeset for help on using the changeset viewer.