Matlab plotting capability
plotmodel
>> plotmodel(md,'data',md.geometry.thickness)
You can plot several fields at the same time but you have to add the argument >> plotmodel(md,'data',md.geometry.thickness,'data','mesh','data',[1:md.mesh.numberofelements])
This can work for any field of length OptionsOptions in >> plotmodel(md,'data',md.initialization.vel,'colorbar',0)
any options (except >> plotmodel(md,'data',md.initialization.vel,'data','mesh','view#2',3,'colorbar#all','on','axis#1','off equal')
axisSame as standard axis MATLAB option: >> plotmodel(md,'data',md.vel,'axis','tight')
viewSame as standard view MATLAB option: >> plotmodel(md,'data',md.vel,'view',2)
xlim, ylim, zlimSame as standard xlim MATLAB option: >> plotmodel(md,'data',md.vel,'xlim',[10^5 2*10^5])
caxisSame as standard caxis MATLAB option (control the extreme values of the colorbar): >> plotmodel(md,'data',md.vel,'caxis',[0 1000])
colorbarThis option is used to control the colorbar display ( >> plotmodel(md,'data',md.vel,'colorbar','off')
colormapSame as standard colormap MATLAB option (control the extreme values of the colorbar): >> plotmodel(md,'data',md.vel,'colormap','hsv')
logTo get a logarithmic colorbar, use the >> plotmodel(md,'data',md.vel,'log',10)
contourlevelsContours of equi-value can be added to the plot by using the >> plotmodel(md,'data',md.vel,'contourlevels',3)
>> plotmodel(md,'data',md.vel,'contourlevels',{100,200,500,1000,2000,2500})
contourticksIf the user does not want to display the contour levels ticks, use the >> plotmodel(md,'data',md.vel,'contourlevels',{100,200,500,1000,2000,2500},'contourticks','off')
contouronlyIf the user wants to display the contours only, use the >> plotmodel(md,'data','vel','contourlevels',{100,200,500,1000,2000,2500},'contouronly','on')
streamlinesStreamlines can be displayed by using the >> plotmodel(md,'data',md.initialization.vel,'streamlines',50)
>> plotmodel(md,'data',md.initialization.vel,'streamlines',{10^6*[-1.45 -0.27],10^6*[-1.6 0]})
NOTE: Streamlines use the velocities that are in edgecolorThe mesh can be superimposed onto the plot by using the >> plotmodel(md,'data',md.initialization.vel,'edgecolor','w')
expdispAny ARGUS file can be displayed with the >> plotmodel(md,'data',md.initialization.vel,'expdisp','Iceshelves.exp')
expstyleThe style of the ARGUS profile can be controlled with the >> plotmodel(md,'data',md.initialization.vel,'expdisp','Iceshelves.exp','expstyle','--y')
maskIf one does not want to display the value of the field on a mask only, use the >> plotmodel(md,'data',md.initialization.vel,'mask',md.mask.ocean_levelset<0)
northarrowAn arrow pointing North can be added with the >> plotmodel(md,'data',md.initialization.vel,'northarrow','on')
scalerulerA scale ruler can be added. As for the North arrow, the default display is done by >> plotmodel(md,'data',md.initialization.vel,'scaleruler','on')
titleSame as standard title MATLAB option: >> plotmodel(md,'data',md.vel,'title','Ice velocity [m/yr]')
fontsizeSame as standard fontsize MATLAB option: >> plotmodel(md,'data',md.vel,'title','Ice velocity [m/yr]','fontsize',8)
fontweightSame as standard fontweight MATLAB option: >> plotmodel(md,'data',md.vel,'title','Ice velocity [m/yr]','fontweight','b')
xlabel, ylabelSame as standard xlabel MATLAB option: >> plotmodel(md,'data',md.vel,'xlabel','x axis [m]')
Special plotsbasaldragThe special plot Basal drag relies on the velocity provided in >> plotmodel(md,'data','basal_drag')
>> plotmodel(md,'data','basal_dragx')
BCThe special plot >> plotmodel(md,'data','BC')
driving_stressThe special plot >> plotmodel(md,'data','driving_stress')
elementnumberingIn the debugging process, it is often very useful to display all the elements next to their numbers. This is what the special plot >> plotmodel(md,'data','elementnumbering')
A given list of elements can be highlighted with the >> plotmodel(md,'data','elementnumbering','highlight',[3 4 5 6 7])
elements_typeThe special plot >> plotmodel(md,'data','elements_type')
vertexnumberingIn the debugging process, it is often very useful to display all the vertices next to their numbers. This is what the special plot >> plotmodel(md,'data','vertexnumbering')
A given list of vertices can be highlighted with the >> plotmodel(md,'data','vertexnumbering','highlight',[2 5 7 12])
highlightelementsThe special plot >> plotmodel(md,'data','highlightelements','highlight',5)
>> plotmodel(md,'data','highlightelements','highlight',[5 12])
highlightgridsThe special plot >> plotmodel(md,'data','highlightgrids','highlight',[12 20])
>> plotmodel(md,'data','highlightgrids','highlight',[12 16 26])
icefrontThe special plot >> plotmodel(md,'data','icefront')
meshThe special plot >> plotmodel(md,'data','mesh')
Quiver plotFor 2D or 3D fields, a generic color plot cannot be used (except component by component). The >> plotmodel(md,'data',[md.vx md.vy])
ColorLevelsThe number of colors can be chosen by using the >> plotmodel(md,'data',[md.vx md.vy],'colorlevels',3)
>> plotmodel(md,'data',[md.vx md.vy],'colorlevels',100)
>> plotmodel(md,'data',[md.vx md.vy],'colorlevels',{100,200,500,1000,2000,2500})
ScalingThe arrows length can be modified with the >> plotmodel(md,'data',[md.vx md.vy],'scaling',1)
>> plotmodel(md,'data',[md.vx md.vy],'scaling',0.1)
AutoscaleIf the user wants all the arrows to have the same length, use the option >> plotmodel(md,'data',[md.vx md.vy],'autoscale','off')
DensityThe number of arrows can be reduced with the option >> plotmodel(md,'data',[md.vx md.vy],'density',3)
Cross sectionThe section plot can be used to display the value of a field on a given track. The option >> plotmodel(md,'data',md.vel,'expdisp','track.exp')
>> plotmodel(md,'data',md.vel,'sectionvalue','track.exp')
ResolutionThe horizontal and vertical (in 3D) resolution can be specified by the >> plotmodel(md,'data',md.vel,'sectionvalue','track.exp','resolution',[2*10^4 0])
>> plotmodel(md,'data',md.vel,'sectionvalue','track.exp','resolution',[10^3 0])
Show sectionThe profile used to create the section plot can be also plotted with the >> plotmodel(md,'data',md.vel,'showsection','on')
|