Changeset 17880


Ignore:
Timestamp:
04/29/14 13:54:54 (11 years ago)
Author:
cborstad
Message:

CHG: fix for plot_mesh given new ImageGrid foundation

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

Legend:

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

    r17869 r17880  
    5959                titlefont['size']=titlefontsize
    6060                titlefont['weight']=titlefontweight
    61                 fig.set_title(title,**titlefont)
     61                ax.set_title(title,**titlefont)
    6262        #}}}
    6363               
  • issm/trunk-jpl/src/m/plot/plot_manager.py

    r17820 r17880  
    5757                if data.lower()=='mesh':
    5858                        plot_mesh(md,options,ax)
     59                        applyoptions(md,[],options,fig,ax)
     60                        fig.delaxes(fig.axes[1]) # hack to remove colorbar after the fact
    5961                        return
    6062                elif data.lower()=='none':
  • issm/trunk-jpl/src/m/plot/plot_mesh.py

    r17706 r17880  
    77from applyoptions import applyoptions
    88
    9 def plot_mesh(md,options,nlines,ncols,i):
     9def plot_mesh(md,options,ax):
    1010        '''
    1111        PLOT_MESH - plot model mesh
     
    2020
    2121        if is2d:
    22                 p.subplot(nlines,ncols,i,aspect='equal')
    23                 p.triplot(x,y,elements)
     22                ax.triplot(x,y,elements)
    2423        else:
    2524                print 'WARNING: only 2D mesh plot is currently implemented'
     
    2827        options.addfielddefault('title','Mesh')
    2928        options.addfielddefault('colorbar','off')
    30         applyoptions(md,[],options)
Note: See TracChangeset for help on using the changeset viewer.