import matplotlib.pyplot as plt
plt.figure()
<Figure size 432x288 with 0 Axes>
plt.plot([1,2],[3,4])
[<matplotlib.lines.Line2D at 0x206a7258d08>]
# Create Figure (empty canvas) fig = plt.figure() # Add set of axes to figure axes = fig.add_axes([0, 0, 1, 1])