Graphics |
Specifying the Color and Size of Lines
You can control a number of line style characteristics by specifying values for line properties:
LineWidth
-- Width of the line in units of points
MarkerEdgeColor
-- Color of the marker or the edge color for filled markers (circle, square, diamond, pentagram, hexagram, and the four triangles)
MarkerFaceColor
-- Color of the face of filled markers
MarkerSize
-- 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 |
© 1994-2005 The MathWorks, Inc.