Visualize discrete data using plots such as bar graphs or stem plots. For example, you can create a vertical or horizontal bar graph where the bar lengths are proportional to the values that they represent.
Bar 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.
This example shows how to modify properties of the baseline of a bar graph.
This example shows how to overlay two bar graphs and specify the bar colors and widths.
Create a bar chart with error bars using both the bar
and errorbar
functions.
This example shows how to modify a 3-D bar plot by coloring each bar according to its height.
This example shows how to combine a line plot and two stem plots.
Overlay Stairstep Plot and Line Plot
This example shows how to overlay a line plot on a stairstep plot.
Interpolating scattered data using scatteredInterpolant
.