Python Matplotlib Show Not Working Chart Windows Opens For 1second And Closes Automatically

Python Matplotlib Show Not Working Chart Windows Opens For 1second And Closes Automatically