Extra axes/grid in Matplotlib Plot after using the toggle button

Hi guys! I’m currently using Matplotlib to generate plots using my data. When my plot is generated, shown in the screenshot below:

I was trying out the toggle button located at the top of the Matplotlib plot, as shown in the screenshot below:
image

But somehow after using the toggle button annotated with a red circle shown in the screenshot above to drag the graphs in the plot to see what happens, it seems that there is an extra grid/axes in the plot, annotated with green circles as shown in the screenshot below:

I might have pressed something that I shouldn’t have but I’m not sure what exactly is.

How do I reset the plot in such a way that it looks the same as the first screenshot? Thank you!

We really can’t say without seeing any code.