Exercise: Create Simple Scatter Plot
Create a scatter plot with the provided data. Make sure it matches the expected characteristics shown in the image.
Expected:
Output:
import matplotlib.pyplot as plt
import numpy as np
np.random.seed(11)
x = np.round(np.random.rand(50) * 5, 2)
y = np.round(x + np.random.randn(50) * 2, 2)
############## add code here ###############
############################################
plt.show()
Python
Setting up Python environment...
Output