Displaying Lists

ListPlot is one way to display, or visualize, a list of numbers. There are lots of others. Different ones tend to emphasize different features of a list.

ListLinePlot[{1,3,5,4,1,2,1,4}]

ListPlot[{1,3,5,4,1,2,1,4}]

BarChart[{1,3,5,4,1,2,1,4}]

PieChart[{1,3,5,4}]

NumberLinePlot[{1,7,11,25}]

Column[{100,350,502,400}]

Lists can contain anything, including graphics. So you can combine plots by putting them in lists.

{PieChart[Range[3]],PieChart[Range[5]]}

{BarChart[{1,1,4,2}],BarChart[{5,1,1,0}],BarChart[{1,3,2,4}]}

Make a bar chart of {1,1,2,3,5}. »

Make a pie chart of numbers from 1 to 10. »

Make a bar chart of numbers counting down from 20 to 1. »

Display numbers from 1 to 5 in a column. »

Make a number line plot of the squares {1,4,9,16,25}. »

Make a pie chart with 10 identical segments, each of size 1. »

Make a column of pie charts with 1, 2 and 3 identical segments. »

Make a list of pie charts with 1, 2 and 3 identical segments. »

Make a bar chart of the sequence 1, 2, 3, ..., 9, 10, 9, 8, 7, ..., 1. »

Make a list of a pie chart, bar chart and line plot of the numbers from 1 to 10. »

Make a list of a pie chart and a bar chart of {1,1,2,3,5,8,13,21,34,55}. »

Make a column of two number line plots of {1,2,3,4,5}. »

Make a number line of fractions 1/2, 1/3, ... through 1/9. »

How do pie charts work in the Wolfram Language?

As in any pie chart, the wedges have relative sizes determined by the relative sizes of numbers in the list. In the Wolfram Language, the wedge for the first number starts at the 9 o’clock position, and then subsequent wedges read clockwise. The colors of the wedges are chosen in a definite sequence.

How is the vertical scale determined on plots?

It’s set up to automatically include all points except distant outliers. Later on (Section 20), we’ll talk about the PlotRange option, which lets you specify the exact range of the plot.

Tech Note