In [4]:
%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 [13]:
plt.scatter(np.random.randn(100), np.random.randn(100), marker="x", color="m", linestyle="-", alpha=0.6)
plt.xlabel("x label")
plt.ylabel("y label")
Out[13]:
Learn how to use Matplotlib's plt.hist function to make a 1d histogram.
np.random.randn.
In [20]:
plt.hist(np.random.randn(100), bins=20, cumulative=True, histtype="step", log=True, color='r')
plt.xlabel = ("Widgets")
plt.ylabel = ("Gadgets")
In [ ]: