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 [31]:
x=np.random.randn(22)
y=np.random.randn(22)
plt.xlabel('x')
plt.ylabel('y')
plt.title('Scatter')
plt.scatter(x,y,s=22.0,c='g',marker='x',alpha=.7,linewidths=2.2)
#plt.xlim(0,1)
#plt.ylim()
Out[31]:
Learn how to use Matplotlib's plt.hist
function to make a 1d histogram.
np.random.randn
.
In [34]:
data=np.random.randn(22)
plt.hist(data)
Out[34]: