July 2019
Beginner to intermediate
740 pages
16h 52m
English
A few of our visualizations looked a little squished. To remedy this, we can pass the figsize argument to plt.figure() or plt.subplots() with a tuple in the form of (width, height) in inches:
>>> fig = plt.figure(figsize=(10, 4))<Figure size 720x288 with 0 Axes>>>> fig, axes = plt.subplots(1, 2, figsize=(10, 4))
This results in the following subplots:

It's not so bad specifying the figsize parameter for our plots one-by-one. However, if we find that we are resizing everything to the same size, there's a better alternative. ...
Read now
Unlock full access