In [1]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
Learn how to use Matplotlib's plt.scatter function to make a 2d scatter plot.
np.random.randn.
In [10]:
x = np.random.randn(100)
y = np.random.randn(100)
plt.scatter(x, y, marker='*', color='red');
Learn how to use Matplotlib's plt.hist function to make a 1d histogram.
np.random.randn.
In [13]:
x = np.random.randn(100)
plt.hist(x, bins=5);
In [ ]: