Graphics Previous page   Next Page

Comparing Data Sets with Area Graphs

Area graphs are useful for comparing different datasets. For example, given a vector containing sales figures,

for the five-year period

and a vector containing profits figures for the same five-year period,

display both as two separate area graphs within the same axes. Set the color of the area interior (FaceColor), its edges (EdgeColor), and the width of the edge lines (LineWidth). See patch for a complete list of properties.

To annotate the graph, use the statements

Previous page  Area Graphs Pie Charts Next page

© 1994-2005 The MathWorks, Inc.