To plot surface isolines in 3D
Parameters
Th : a mesh structure
U : array of doubles of size Th.nq
Optional parameters (of type addParameter)
'niso'
(integer) number of isolines. Default is 10
'colormap'
(string) To set colormap value to ’jet’, ’hsv’, ’gray’, ’colorcube’,’cool’,’spring’,’summer’, ... Default value is ’jet’.
'colorbar'
(bool) To set colorbar visible or not. Default is fals
'labels'
(array of integers). To plot isolines only on specific boundaries. Default value is the empty array.
'PlotOptions'
(cell) Plotting options. Default value is an empty cell.
'isorange'
array of integers which defines the range of isoline values. Default value is an empty array and niso isoline values are set in proportion in the range of minimum and maximum values.
Optional outputs varargout{1} is the array of RGB colors used by the plot, varargout{2} is the array of isoline values.
Example
Plot3DSurfIsolines(Th, U)
;
See also: Plot3DSurfVal.
The following code
Th=GetMeshOpt('cylinderkey-10.msh',3, 'format','gmsh'); f=@(x,y,z) x.^2+y.^2+cos((z-1).^2); U=f(Th.q(1,:),Th.q(2,:),Th.q(3,:)); Plot3DSurfIsolines(Th,U,'labels', [10,11,31,2000,2020,2021],'niso', 15,'PlotOptions', {'LineWidth',1}) view(3);
Produces the following figure
Figure 1 |
---|
![]() |
Package: ovisumesh