Matplotlib Scatter Plots

Matplotlib scatter plots are another way to look at your data. The scatter plot creates a point on your graph for each datapoint intersection.

To build a scatter plot with matplotlib, first make sure you import matplotlib into your program using:

  • import matplotlib.pyplot as plt

Then you will need two lists of data points, one for the x axis and one for the y axis. Create your chart with plt.scatter(x,y) and show it with

This chart demonstrates correlations (or lack of correlation) in your data is related to each other.