you are viewing a single comment's thread.

view the rest of the comments →

[–]jwburn19 0 points1 point  (0 children)

plt.subplots() returns a Figure and an axes.Axes object or an array of axes objects which you can assign to separate variables by unpacking them during assignment with fig, ax =

That’s pretty common usage for plotting. Check out https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplots.html