ValueError: Image size of XX is too large. It must be less than XX in each direction

Screen Link:

My Code:

plt.figure(figsize=(12, 6))
ax1 = plt.subplot(2,3,1)
ax2 = plt.subplot(2,3,2)
ax3 = plt.subplot(2,3,3)
ax4 = plt.subplot(2,1,2)
axes = [ax1, ax2, ax3, ax4]
bush = euro_to_dollar[(euro_to_dollar['Time'] >= "2001-01-20") & (euro_to_dollar['Time'] < "2009-01-20")]
obama = euro_to_dollar[(euro_to_dollar['Time'] >= "2009-01-20") & (euro_to_dollar['Time'] < "2017-01-20")]
trump = euro_to_dollar[(euro_to_dollar['Time'] >= "2017-01-20") & (euro_to_dollar['Time'] < "2021-01-20")]

ax1.plot(bush['Time'], bush["rolling_mean"])
ax1.text(2, 1, 'BUSH', fontsize=18, weight='bold',color='#BF5FFF')
ax2.plot(obama['Time'], obama["rolling_mean"])
ax3.plot(trump['Time'], trump["rolling_mean"])
ax4.plot(euro_to_dollar['Time'], euro_to_dollar["rolling_mean"])
plt.show()

What I expected to happen:
i expected to see my graph

What actually happened:

ValueError                                Traceback (most recent call last)
/dataquest/system/env/python3/lib/python3.8/site-packages/IPython/core/formatters.py in __call__(self, obj)
    339                 pass
    340             else:
--> 341                 return printer(obj)
    342             # Finally look for special method names
    343             method = get_real_method(obj, self.print_method)

/dataquest/system/env/python3/lib/python3.8/site-packages/IPython/core/pylabtools.py in <lambda>(fig)
    246 
    247     if 'png' in formats:
--> 248         png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))
    249     if 'retina' in formats or 'png2x' in formats:
    250         png_formatter.for_type(Figure, lambda fig: retina_figure(fig, **kwargs))

/dataquest/system/env/python3/lib/python3.8/site-packages/IPython/core/pylabtools.py in print_figure(fig, fmt, bbox_inches, **kwargs)
    130         FigureCanvasBase(fig)
    131 
--> 132     fig.canvas.print_figure(bytes_io, **kw)
    133     data = bytes_io.getvalue()
    134     if fmt == 'svg':

/dataquest/system/env/python3/lib/python3.8/site-packages/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, bbox_inches, **kwargs)
   2117 
   2118             try:
-> 2119                 result = print_method(
   2120                     filename,
   2121                     dpi=dpi,

/dataquest/system/env/python3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py in print_png(self, filename_or_obj, metadata, pil_kwargs, *args, **kwargs)
    512         }
    513 
--> 514         FigureCanvasAgg.draw(self)
    515         if pil_kwargs is not None:
    516             from PIL import Image

/dataquest/system/env/python3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py in draw(self)
    386         Draw the figure using the renderer.
    387         """
--> 388         self.renderer = self.get_renderer(cleared=True)
    389         # Acquire a lock on the shared font cache.
    390         with RendererAgg.lock, \

/dataquest/system/env/python3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py in get_renderer(self, cleared)
    402                           and getattr(self, "_lastKey", None) == key)
    403         if not reuse_renderer:
--> 404             self.renderer = RendererAgg(w, h, self.figure.dpi)
    405             self._lastKey = key
    406         elif cleared:

/dataquest/system/env/python3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py in __init__(self, width, height, dpi)
     90         self.width = width
     91         self.height = height
---> 92         self._renderer = _RendererAgg(int(width), int(height), dpi)
     93         self._filter_renderers = []
     94 

ValueError: Image size of 138794x728 pixels is too large. It must be less than 2^16 in each direction.

<Figure size 1200x600 with 4 Axes>