| Graphics | ![]() |
Specifying the Color and Size of Lines
You can control a number of line style characteristics by specifying values for line properties:
LineWidth - specifies the width of the line in units of points.
MarkerEdgeColor - specifies the color of the marker or the edge color for filled markers (circle, square, diamond, pentagram, hexagram, and the four triangles).
MarkerFaceColor - specifies the color of the face of filled markers.
MarkerSize - specifies the size of the marker in units of points.
For example, these statements,
x = -pi:pi/10:pi; y = tan(sin(x)) - sin(tan(x)); plot(x,y,'--rs','LineWidth',2,... 'MarkerEdgeColor','k',... 'MarkerFaceColor','g',... 'MarkerSize',10)
| Specifying Line Style | Adding Plots to an Existing Graph | ![]() |