Matplotlib subplots vs figure

Viewed 32

I read through Difference between plt.subplots() and plt.figure(), and I'm curious if there's any different in the functionality between

1)

fig, ax = plt.subplots()

and

2.

fig = plt.figure()
ax = plt.gca()

I think the answer is no; however, I came across a code-segment that used both styles, so I'm lead to believe that there's a difference. Thanks.

1 Answers
Related