Documentation Center

  • Trial Software
  • Product Updates


Solid, dashed or dotted lines?

Value Summary

InheritedDashed, Dotted, or Solid

Graphics Primitives

ObjectsLineStyle Default Values
plot::Arc2d, plot::Arc3d, plot::Arrow2d, plot::Arrow3d, plot::Bars2d, plot::Bars3d, plot::Box, plot::Boxplot, plot::Circle2d, plot::Circle3d, plot::Cone, plot::Conformal, plot::Curve2d, plot::Curve3d, plot::Cylinder, plot::Cylindrical, plot::Density, plot::Dodecahedron, plot::Ellipse2d, plot::Ellipse3d, plot::Function2d, plot::Function3d, plot::Hexahedron, plot::Histogram2d, plot::Icosahedron, plot::Implicit2d, plot::Implicit3d, plot::Inequality, plot::Integral, plot::Iteration, plot::Line2d, plot::Line3d, plot::Listplot, plot::Lsys, plot::Matrixplot, plot::Octahedron, plot::Ode2d, plot::Ode3d, plot::Parallelogram2d, plot::Parallelogram3d, plot::Piechart2d, plot::Piechart3d, plot::Polar, plot::Polygon2d, plot::Polygon3d, plot::Prism, plot::Pyramid, plot::QQplot, plot::Raster, plot::Rectangle, plot::Rootlocus, plot::Scatterplot, plot::Sequence, plot::Spherical, plot::Streamlines2d, plot::Sum, plot::Surface, plot::SurfaceSet, plot::SurfaceSTL, plot::Sweep, plot::Tetrahedron, plot::Turtle, plot::Waterman, plot::XRotate, plot::ZRotateSolid


LineStyle controls whether lines are drawn as solid, dashed or dotted lines.

LineStyle sets the style of line objects such as 2D function graphs, curves in 2D and 3D, arrows, parameter lines on surfaces etc.

The available line styles are Solid, Dashed, or Dotted.

This attribute may be useful to distinguish different curves.

LineStyle does not have an effect on the line style of axes and coordinate grid lines. Axes are always displayed as solid lines. The style of the coordinate grid can be set by the attribute GridLineStyle.


Example 1

We draw a dashed parabola:

plot(plot::Function2d(x^2, x = -2..5, LineStyle = Dashed))

We draw a paraboloid with dashed coordinate lines:

plot(plot::Function3d(x^2 + y^2, x = -2..5, y = -2..5, 
                      Mesh = [8, 8], Submesh = [3, 3],
                      LineStyle = Dashed))

See Also

MuPAD Functions

Was this topic helpful?