0

I am trying to plot a subplot using two columns and the plot size is not getting increased with increase in figsize value.

plt.figure(figsize=(20, 10))
fig, (ax1, ax2) = plt.subplots(1, 2)
fig.suptitle('A Vs B')
ax1.plot(df['X'], df['A'])
ax2.plot(df['X'], df['B'])

FIG1

JohanC
  • 71,591
  • 8
  • 33
  • 66
Vishnu
  • 17
  • 4
  • You need to set the figsize inside `plt.subplots(1, 2, figsize=....)` because it creates a new figure. The figure created with `plt.figure` will stay empty, so you better remove that call. – JohanC Apr 11 '21 at 22:25
  • 1
    Remove plt.figure and Pass figsize to subplots. You don’t need two of them. The later overrides the former. – Quang Hoang Apr 11 '21 at 22:25

0 Answers0