In this example we will show how to draw a scatter plot diagram of random data using the scatter() method in Python.
Source Code
import matplotlib.pyplot as plt
import numpy as np
x = np.random.normal(5, 1, 1000)
y = np.random.normal(20, 2, 1000)
plt.scatter(x, y)
plt.show()
Output:
