Scatter Plot

noun

say it: “SKAT-er plot” /ˈskætər ˌplɑt/

A chart that puts one dot for each item at the place set by two of its numbers, to show whether they move together.

What is a scatter plot?

A scatter plot draws one dot for each row of a table, placed by two of its numbers: one across and one up. If the dots climb from left to right, the two numbers rise together; if they make a shapeless cloud, they don't. In matplotlib, ax.scatter() draws one.

import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.scatter(daily["high_temp_f"], daily["cones_sold"], alpha=0.4)   # one dot per day
ax.set_xlabel("High temperature (°F)")
ax.set_ylabel("Cones sold")

In a sentence

  • “Each dot on the scatter plot was one apartment: its size across and its heating bill up.”
  • “The scatter plot showed hotter days selling more cones.”

Level: Apprentice · More Python terms at this level

Updated