Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Visualization and Graphics > Graphics Options & Styling > Plotting Options >

MeshStyle

MeshStyle
is an option for Plot3D, DensityPlot and other plotting functions that specifies the style in which to draw a mesh.
  • MeshStyle->g specifies that a graphics directive g should be used to draw all mesh elements in a plot.
  • MeshStyle->{g1, g2, ...} specifies that successive directives gi should be used cyclically to draw elements associated with successive mesh functions.
  • MeshStyle can give any applicable graphics directive, including colors and Opacity.
  • Directives can be combined using Directive[g1, g2, ...].
Use gray mesh lines on a surface:
Use transparent mesh lines:
Use medium-sized red points for mesh divisions on a curve:
Use different mesh styles for different sets of mesh lines:
Use gray mesh lines on a surface:
In[1]:=
Click for copyable input
Out[1]=
 
Use transparent mesh lines:
In[1]:=
Click for copyable input
Out[1]=
 
Use medium-sized red points for mesh divisions on a curve:
In[1]:=
Click for copyable input
Out[1]=
 
Use different mesh styles for different sets of mesh lines:
In[1]:=
Click for copyable input
Out[1]=
New in 2 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team