IPython console in Spyder IDE by default opens Matplotlib plots in the same inline “notebook”.
Make separate Matplotlib figure windows pop up
Tools > Preferences > Ipython Console > Graphics > Graphics Backend > Backend: “automatic”
These popout figures are much more useful in general since you can probe the data and zoom, unlike the static PNGs in the inline notebook.
Interactive Matplotlib Jupyter Notebook