0

How do I resize a matplotlib figure, after I have created/initialized it?

fig, ax = plt.subplots(figsize=(4, 3))
pd.Series([1, 2, 3]).plot(ax=ax)    
# which command to use to? below obviously does not work
fig.set_figsize((6, 6))
PvK
  • 340
  • 2
  • 15

1 Answers1

0

The command to use is set_size_inches:

fig.set_size_inches((6, 6))

To answer my own question (it did not show up in my searches, hopefully this thread will).

PvK
  • 340
  • 2
  • 15