Beginners Python Cheat Sheet PCC Matplotlib PDF
Beginners Python Cheat Sheet PCC Matplotlib PDF
Beginners Python Cheat Sheet PCC Matplotlib PDF
Cheat Sheet –
You can plot as much data as you want on one plot. Here we re-
Using built-in styles plot the first and last points larger to emphasize them.
Matplotlib comes with a number of built-in styles, which you can
import matplotlib.pyplot as plt
Matplotlib
use with one additional line. The style must be specified before you
create the figure.
x_values = list(range(1000))
import matplotlib.pyplot as plt squares = [x**2 for x in x_values]