In [2]:
%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 [21]:
f=plt.figure(figsize=(9,6))
x=np.random.randn(500)
y=np.random.randn(500)
plt.scatter(x,y)
plt.box(False)
plt.xlabel('X-Axis')
plt.ylabel('Y-Axis')
plt.title('Random Scatter');
Learn how to use Matplotlib's plt.hist function to make a 1d histogram.
np.random.randn.
In [28]:
f=plt.figure(figsize=(9,6))
x=np.random.randn(500)
plt.hist(x, bins=100);
plt.title('Random Histogram')
plt.xlabel('X-Axis')
plt.ylabel('Y-Axis');
plt.box(False)
In [ ]: