matplotlib logo matplotlib: plot types

1 2 3 4 5 6 7 8 9
Notes

The you want to make a scatter chart you can run;

import numpy as np
import matplotlib.pylab as plt

x = np.linspace(0, 1, 20)
y = x ** 2
plt.scatter(x, y);

The you want to make a histogram you can run;

import numpy as np
import matplotlib.pylab as plt

x = np.linspace(0, 1, 100)
y = x ** 2
plt.hist(y, bins=30);

Note the semi-colon at the end here.