Bar Chart
noun
say it: “BAR CHART” /ˈbɑr ˈtʃɑrt/
A chart that shows amounts as bars, longer for bigger amounts, so groups can be compared at a glance.
What is a bar chart?
A bar chart draws each amount as a bar whose height is the amount, so groups can be compared at a glance, such as
cups sold at each store. In Python, matplotlib draws one with bar().
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.bar(["Main", "Elm", "Oak"], [620, 410, 380])
fig.savefig("cups_by_store.png")
In a sentence
- “The bar chart made it plain that Main Street sells the most.”
- “She chose a bar chart to compare the three stores.”
Level: Novice · More Python terms at this level
Updated