Changeset 21435
- Timestamp:
- 12/08/16 07:02:26 (8 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.py
r21303 r21435 234 234 cb.set_alpha(1) 235 235 cb.draw_all() 236 if options.exist('colorbarfontsize'): 237 colorbarfontsize=options.getfieldvalue('colorbarfontsize') 238 cb.ax.tick_params(labelsize=colorbarfontsize) 239 # cb.set_ticks([0,-10]) 240 # cb.set_ticklabels([-10,0,10]) 241 if options.exist('colorbarticks'): 242 colorbarticks=options.getfieldvalue('colorbarticks') 243 cb.set_ticks(colorbarticks) 236 244 plt.sca(ax) # return to original axes control 237 245 # }}} -
issm/trunk-jpl/src/m/plot/plotdoc.py
r21427 r21435 48 48 49 49 pyoptions={'axis':" show ('on') or hide ('off') axes", 50 50 'caxis':" modify colorbar range. (array of type [a b] where b>=a)", 51 51 'colorlevels':" N, number of levels to use", 52 52 'colorbar':" add colorbar (string 'on','off' or 'one')", 53 53 'axes_pad':" spacing between axes (default is 0.25)", 54 54 'colorbartitle':" colorbar title (string)", 55 'colorbarticks':" set colorbar ticks manually (list)", 56 'colorbarfontsize':" specify colorbar fontsize", 55 57 'colormap':" change the default colormap ('viridis' is the default)", 56 58 'contourlevels':" N or [value1,...] add the contours of the specified values or N contours", 57 59 'streamlines':" TOFIX argument does nothing", 58 60 'edgecolor':" color of mesh edges. RGB tuple or standard string", … … 97 99 'colorbarcornerposition':" 'West','North',etc ...", 98 100 'colorbartitlerotation':" -90, etc ...", 99 'colorbarfontsize':" specify colorbar fontsize",100 101 'colorbarwidth':" multiplier (default 1) to the default width colorbar", 101 102 'colorbarheight':" multiplier (default 1) to the default height colorbar", … … 163 164 164 165 165 166 166 print(" Plot usage: plotmodel(model,varargin)") 167 167 print(" plotting is done with couples of keywords values, the type and style of data to display is given by one (or several) of the followings")
Note:
See TracChangeset
for help on using the changeset viewer.