Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

LineStyle

Solid, dashed or dotted lines?

Value Summary

InheritedDashed, Dotted, or Solid

Description

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.

Examples

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))

Was this topic helpful?