Graphics Previous page   Next Page

Bar and Area Graphs

Bar and area graphs display vector or matrix data. These types of graphs are useful for viewing results over a period of time, comparing results from different data sets, and showing how individual elements contribute to an aggregate amount. Bar graphs are suitable for displaying discrete data, whereas area graphs are more suitable for displaying continuous data.

Function
Description

bar

Displays columns of m-by-n matrix as m groups of n vertical bars

barh

Displays columns of m-by-n matrix as m groups of n horizontal bars

bar3

Displays columns of m-by-n matrix as m groups of n vertical 3-D bars

bar3h

Displays columns of m-by-n matrix as m groups of n horizontal 3-D bars

area

Displays vector data as stacked area plots


Previous page  Creating Specialized Plots Types of Bar Graphs Next page

© 1994-2005 The MathWorks, Inc.