Line Chart
noun
say it: “LYNE CHART” /ˈlaɪn ˈtʃɑrt/
A chart that connects points with a line to show how something changed over time.
What is a line chart?
A line chart joins measurements taken in order, usually over time, with a line, so the reader sees how a value rose
and fell. The dates go along the bottom. In matplotlib, ax.plot() draws one, and marker="o" shows each
measurement.
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.plot(["Apr", "May", "Jun", "Jul"], [2100, 3400, 5200, 6100], marker="o")
ax.set_title("Cones sold rose every month to July")
fig.savefig("cones-by-month.png")
In a sentence
- “Put the months along the bottom of a line chart and the sales up the side.”
- “The line chart showed cone sales climbing all summer.”
Level: Novice · More Python terms at this level
Updated