
where “PropertyName” relates with an element of the plot and
“PropertyValue” is defined by the user. Some useful properties concern the
following:
• “LineWidth” - specifies the width (in points) of the line.
• “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.
View the following examples to conceptualize this issue:
Matlab’s command:
>> plot(x,y,'bd-.', 'LineWidth', 2, 'MarkerSize', 11, ...
'MarkerFaceColor', 'r', 'MarkerEdgeColor', 'g')
Matlab’s response:
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
-15
-10
-5
0
5
10
15
20
Comments:
An example of a plot that uses some of the
p
p
l
l
o
o
t
t
properties.
Besides these 2D visualization facilities, Matlab can be used to create bar
charts, pie charts, histograms, stems plot, stairstep plots, errorbars etc. Use
the online help and the help browser to see how you can use these
visualizations facilities and learn more about the
p
p
l
l
o
o
t
t properties.
Commentaires sur ces manuels