@@ -16,7 +16,7 @@ You can plot several fields at the same time but you have to add the argument `'
1616>> plotmodel(md, 'data', md.geometry.thickness, 'data', 'mesh', 'data', [1:md.mesh.numberofelements])
1717```
1818
19- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/plot.png " alt =" Figure 1: plot " ></div >This can work for any field of length `md.mesh.numberofelements` or `md.mesh.numberofvertices`.
19+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/plot.png " alt =" Figure 1: plot " ></div >This can work for any field of length `md.mesh.numberofelements` or `md.mesh.numberofvertices`.
2020### Options
2121Options in ` plotmodel ` come as pairs: the option name must be followed by its value. For example, if one wants to remove the color bar, the option name is ` 'colorbar' ` and the value ` 0 ` :
2222``` m
@@ -51,7 +51,7 @@ Same as standard <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/
5151>> plotmodel(md, 'data', md.vel, 'caxis', [0 1000])
5252```
5353
54- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/caxis.png " alt =" Figure 2: caxis " ></div >
54+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/caxis.png " alt =" Figure 2: caxis " ></div >
5555#### colorbar
5656This option is used to control the colorbar display (` 'on' ` or ` 'off' ` ):
5757``` m
@@ -64,32 +64,32 @@ Same as standard <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/
6464>> plotmodel(md, 'data', md.vel, 'colormap', 'hsv')
6565```
6666
67- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/colormap.png " alt =" Figure 3: colormap " ></div >
67+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/colormap.png " alt =" Figure 3: colormap " ></div >
6868#### log
6969To get a logarithmic colorbar, use the ` 'log' ` option followed by ` 10 ` for a decimal logarithm:
7070``` m
7171>> plotmodel(md, 'data', md.vel, 'log', 10)
7272```
7373
74- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/log.png " alt =" Figure 4: log " ></div >
74+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/log.png " alt =" Figure 4: log " ></div >
7575#### contourlevels
7676Contours of equi-value can be added to the plot by using the ` 'contourlevels' ` option. The number of contours can be chosen by using the ` 'contourlevels' ` options. The user can specify a number of levels or a cell containing the values of color changes. For example:
7777``` m
7878>> plotmodel(md, 'data', md.vel, 'contourlevels', 3)
7979```
8080
81- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/contour3.png " alt =" Figure 5: contour3 " ></div >```m
81+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/contour3.png " alt =" Figure 5: contour3 " ></div >```m
8282>> plotmodel(md, 'data', md.vel, 'contourlevels', {100, 200, 500, 1000, 2000, 2500})
8383```
8484
85- <div style="display:flow-root"><img style="float:left;width:100.00% " src="/ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/contourcell.png" alt="Figure 6: contourcell"></div>
85+ <div style="display:flow-root"><img style="float:left;" src="/ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/contourcell.png" alt="Figure 6: contourcell"></div>
8686#### contourticks
8787If the user does not want to display the contour levels ticks, use the `'contourticks'` set as `'off'`:
8888```m
8989>> plotmodel(md, 'data', md.vel, 'contourlevels', {100, 200, 500, 1000, 2000, 2500}, 'contourticks', 'off')
9090```
9191
92- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/contourticks.png " alt =" Figure 7: contourticks " ></div >
92+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/contourticks.png " alt =" Figure 7: contourticks " ></div >
9393#### contouronly
9494If the user wants to display the contours only, use the ` 'contouronly' ` set as ` 'on' ` :
9595``` m
@@ -114,7 +114,7 @@ The mesh can be superimposed onto the plot by using the `'edgecolor'` option fol
114114>> plotmodel(md, 'data', md.initialization.vel, 'edgecolor', 'w')
115115```
116116
117- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/edgecolor.png " alt =" Figure 9: edgecolor " ></div >
117+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/edgecolor.png " alt =" Figure 9: edgecolor " ></div >
118118#### expdisp
119119Any ARGUS file can be displayed with the ` 'expdisp' ` option followed by the name of the ARGUS file:
120120``` m
@@ -133,7 +133,7 @@ If one does not want to display the value of the field on a mask only, use the `
133133>> plotmodel(md, 'data', md.initialization.vel, 'mask', md.mask.ocean_levelset < 0)
134134```
135135
136- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/mask.png " alt =" Figure 10: mask " ></div >
136+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/mask.png " alt =" Figure 10: mask " ></div >
137137#### northarrow
138138An arrow pointing North can be added with the ` 'northarrow' ` option followed by ` 'on' ` . The shape and position of the arrow can be controlled by using ` [x0 y0 length [ratio [width]]] `
139139instead of ` 'on' ` :
@@ -191,7 +191,7 @@ The special plot `'BC'` displays all boundary conditions (Newmann and Dirichlet)
191191>> plotmodel(md, 'data', 'BC')
192192```
193193
194- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/BC.png " alt =" Figure 12: BC " ></div >#### driving\_stress
194+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/BC.png " alt =" Figure 12: BC " ></div >#### driving\_stress
195195The special plot ` 'driving_stress' ` displays the basal drag friction in kPa following formula:
196196
197197<div align =" center " ><img src="https://latex.codecogs.com/svg.latex?
@@ -200,36 +200,36 @@ The special plot `'driving_stress'` displays the basal drag friction in kPa foll
200200>> plotmodel(md, 'data', 'driving_stress')
201201```
202202
203- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/driving_stress.png " alt =" Figure 13: driving_stress " ></div >#### elementnumbering
203+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/driving_stress.png " alt =" Figure 13: driving_stress " ></div >#### elementnumbering
204204In the debugging process, it is often very useful to display all the elements next to their numbers. This is what the special plot ` 'elementnumbering' ` does:
205205``` m
206206>> plotmodel(md, 'data', 'elementnumbering')
207207```
208208
209- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/elementnumbering.png " alt =" Figure 14: elementnumbering " ></div >A given list of elements can be highlighted with the `'highlight'` option:
209+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/elementnumbering.png " alt =" Figure 14: elementnumbering " ></div >A given list of elements can be highlighted with the `'highlight'` option:
210210``` m
211211>> plotmodel(md, 'data', 'elementnumbering', 'highlight', [3 4 5 6 7])
212212```
213213
214- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/elementnumbering_highlight.png " alt =" Figure 15: elementnumbering_highlight " ></div >#### elements\_type
214+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/elementnumbering_highlight.png " alt =" Figure 15: elementnumbering_highlight " ></div >#### elements\_type
215215The special plot ` 'elements_type' ` displays the elements with a specific color for each formulation:
216216``` m
217217>> plotmodel(md, 'data', 'elements_type')
218218```
219219
220- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/elements_type.png " alt =" Figure 16: elements_type " ></div >#### vertexnumbering
220+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/elements_type.png " alt =" Figure 16: elements_type " ></div >#### vertexnumbering
221221In the debugging process, it is often very useful to display all the vertices next to their numbers. This is what the special plot ` 'vertexnumbering' ` does:
222222``` m
223223>> plotmodel(md, 'data', 'vertexnumbering')
224224```
225225
226- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/gridnumbering.png " alt =" Figure 17: gridnumbering " ></div >
226+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/gridnumbering.png " alt =" Figure 17: gridnumbering " ></div >
227227A given list of vertices can be highlighted with the ` 'highlight' ` option:
228228``` m
229229>> plotmodel(md, 'data', 'vertexnumbering', 'highlight', [2 5 7 12])
230230```
231231
232- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/gridnumbering_highlight.png " alt =" Figure 18: gridnumbering_highlight " ></div >#### highlightelements
232+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/gridnumbering_highlight.png " alt =" Figure 18: gridnumbering_highlight " ></div >#### highlightelements
233233The special plot ` 'highlightelements' ` is very similar to the plot ` 'elementnumbering' ` . It is another possibility to highlight one or several grids, but without indicating the number of all the elements. It is a lot faster for large models:
234234``` m
235235>> plotmodel(md, 'data', 'highlightelements', 'highlight', 5)
@@ -269,7 +269,7 @@ For 2D or 3D fields, a generic color plot cannot be used (except component by co
269269>> plotmodel(md, 'data', [md.vx md.vy])
270270```
271271
272- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/plotquiver.png " alt =" Figure 23: plotquiver " ></div >
272+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/plotquiver.png " alt =" Figure 23: plotquiver " ></div >
273273#### ColorLevels
274274The number of colors can be chosen by using the ` 'colorlevels' ` options. The user can specify a number of levels or a cell containing the values of color changes. For example:
275275``` m
@@ -284,7 +284,7 @@ The number of colors can be chosen by using the `'colorlevels'` options. The use
284284>> plotmodel(md, 'data', [md.vx md.vy], 'colorlevels', {100, 200, 500, 1000, 2000, 2500})
285285```
286286
287- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/colorcell.png " alt =" Figure 25: colorcell " ></div >
287+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/colorcell.png " alt =" Figure 25: colorcell " ></div >
288288
289289#### Scaling
290290The arrows length can be modified with the ` 'scaling' ` options. The default value is 0.4. A higher scaling value will result in longer arrows:
@@ -302,21 +302,21 @@ If the user wants all the arrows to have the same length, use the option `'autos
302302>> plotmodel(md, 'data', [md.vx md.vy], 'autoscale', 'off')
303303```
304304
305- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/autoscale.png " alt =" Figure 27: autoscale " ></div >
305+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/autoscale.png " alt =" Figure 27: autoscale " ></div >
306306#### Density
307307The number of arrows can be reduced with the option ` 'density' ` . If the density is set as 3, only one arrow out of 3 will be displayed. This option is very useful when the mesh is very refined:
308308``` m
309309>> plotmodel(md, 'data', [md.vx md.vy], 'density', 3)
310310```
311311
312- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/density3.png " alt =" Figure 28: density3 " ></div >
312+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/density3.png " alt =" Figure 28: density3 " ></div >
313313### Cross section
314314The section plot can be used to display the value of a field on a given track. The option ` 'sectionvalue' ` must be followed by the name of an ARGUS file which contained the coordinates of the points describing the profile (this file can be generated by ` exptool.m ` ). The resulting plot will be a curve in 2D and a colored surface in 3D. For example:
315315``` m
316316>> plotmodel(md, 'data', md.vel, 'expdisp', 'track.exp')
317317```
318318
319- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/track.png " alt =" Figure 29: track " ></div >
319+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/track.png " alt =" Figure 29: track " ></div >
320320``` m
321321>> plotmodel(md, 'data', md.vel, 'sectionvalue', 'track.exp')
322322```
@@ -337,4 +337,4 @@ The profile used to create the section plot can be also plotted with the `'shows
337337>> plotmodel(md, 'data', md.vel, 'showsection', 'on')
338338```
339339
340- <div style =" display :flow-root " ><img style =" float :left ;width : 100.00 % " src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/show.png " alt =" Figure 31: show " ></div >
340+ <div style =" display :flow-root " ><img style =" float :left ;" src =" /ISSM-Documentation/assets/img/docs/getting-started/plotting/matlab/show.png " alt =" Figure 31: show " ></div >
0 commit comments