January 2018
Beginner to intermediate
548 pages
12h 11m
English
Recent versions of Matplotlib have significantly improved the default style of its figures. Today, Matplotlib comes with a set of high-quality predefined styles along with a styling system that lets one customize all aspects of these styles.
>>> import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
%matplotlib inline>>> sorted(mpl.style.available) ['bmh', 'classic', 'dark_background', 'fivethirtyeight', 'ggplot', 'grayscale', 'mycustomstyle', 'seaborn', ... 'seaborn-whitegrid']
>>> def doplot(): fig, ax = plt.subplots(1, 1, figsize=(5, 5)) t = np.linspace(-2 * np.pi, 2 * np.pi, 1000) x = np.linspace(0, ...
Read now
Unlock full access