show() (Matplotlib)

plt.show() displays all open Matplotlib figures in a window. In a script it opens an interactive viewer and blocks until you close it; it is the final…