is an option for Plot3D , DensityPlot , and other plotting functions that specifies the style in which to draw a mesh.
MeshStyle
is an option for Plot3D , DensityPlot , and other plotting functions that specifies the style in which to draw a mesh.
Details
- 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,…].
- MeshStyle gives the style for mesh lines in functions like Plot3D and DensityPlot , and for mesh points in functions like Plot and ListLinePlot .
Examples
Basic Examples (4)
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:
Tech Notes
Related Guides
History
Introduced in 1991 (2.0) | Updated in 2007 (6.0)
Text
Wolfram Research (1991), MeshStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshStyle.html (updated 2007).
CMS
Wolfram Language. 1991. "MeshStyle." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/MeshStyle.html.
APA
Wolfram Language. (1991). MeshStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MeshStyle.html
BibTeX
@misc{reference.wolfram_2025_meshstyle, author="Wolfram Research", title="{MeshStyle}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/MeshStyle.html}", note=[Accessed: 23-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_meshstyle, organization={Wolfram Research}, title={MeshStyle}, year={2007}, url={https://reference.wolfram.com/language/ref/MeshStyle.html}, note=[Accessed: 23-November-2025]}