This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Mesh

Mesh
is an option for Plot3D, DensityPlot, and other plotting functions that specifies what mesh should be drawn.
  • The following settings can be given for Mesh:
Noneno mesh drawn
nn equally spaced mesh divisions
Allmesh divisions between all elements
Fullmesh divisions between regular data points
{spec1,spec2,...}separate specifications for each mesh function
  • For surfaces, as generated for example by Plot3D, mesh divisions are lines. The same is true for regions, as generated for example by ContourPlot or RegionPlot.
  • For curves, as generated for example by Plot, mesh divisions are points.
  • There can be several families of mesh divisions in a single plot. Each family is associated with a mesh function in the list given as the setting for MeshFunctions.
  • For Plot3D and ListPlot3D, the default mesh functions are the x and y coordinates.
  • For ParametricPlot3D, the default mesh functions for surfaces are the u and v parameter values.
  • In 2D, and for curves in 3D, the default is not to draw meshes.
  • Mesh divisions are by default taken to be equally spaced between the minimum and maximum values achieved by a particular mesh function.
  • Mesh divisions are by default taken to be drawn with the style specified by MeshStyle.
  • The following explicit specifications can be associated with each mesh function:
nn equally spaced divisions
{a1,a2,...}divisions at values
{{a1,g1},...}divisions drawn with graphics directive
  • Mesh->All draws mesh divisions between every line or polygon generated by a plotting function.
Use no mesh:
Use 5 mesh lines in each direction:
Show all mesh elements used in the sampling:
Show underlying data points:
Include a mesh in an array plot:
Specify specific mesh lines:
Use no mesh:
In[1]:=
Click for copyable input
Out[1]=
 
Use 5 mesh lines in each direction:
In[1]:=
Click for copyable input
Out[1]=
 
Show all mesh elements used in the sampling:
In[1]:=
Click for copyable input
Out[1]=
 
Show underlying data points:
In[1]:=
Click for copyable input
Out[1]=
 
Include a mesh in an array plot:
In[1]:=
Click for copyable input
Out[1]=
 
Specify specific mesh lines:
In[1]:=
Click for copyable input
Out[1]=
New in 1 | Last modified in 6