Changeset 17880
- Timestamp:
- 04/29/14 13:54:54 (11 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.py
r17869 r17880 59 59 titlefont['size']=titlefontsize 60 60 titlefont['weight']=titlefontweight 61 fig.set_title(title,**titlefont)61 ax.set_title(title,**titlefont) 62 62 #}}} 63 63 -
issm/trunk-jpl/src/m/plot/plot_manager.py
r17820 r17880 57 57 if data.lower()=='mesh': 58 58 plot_mesh(md,options,ax) 59 applyoptions(md,[],options,fig,ax) 60 fig.delaxes(fig.axes[1]) # hack to remove colorbar after the fact 59 61 return 60 62 elif data.lower()=='none': -
issm/trunk-jpl/src/m/plot/plot_mesh.py
r17706 r17880 7 7 from applyoptions import applyoptions 8 8 9 def plot_mesh(md,options, nlines,ncols,i):9 def plot_mesh(md,options,ax): 10 10 ''' 11 11 PLOT_MESH - plot model mesh … … 20 20 21 21 if is2d: 22 p.subplot(nlines,ncols,i,aspect='equal') 23 p.triplot(x,y,elements) 22 ax.triplot(x,y,elements) 24 23 else: 25 24 print 'WARNING: only 2D mesh plot is currently implemented' … … 28 27 options.addfielddefault('title','Mesh') 29 28 options.addfielddefault('colorbar','off') 30 applyoptions(md,[],options)
Note:
See TracChangeset
for help on using the changeset viewer.