human
change default gui closing behavior.
assistant
Here is a Python function to change default gui closing behavior

import matplotlib.pyplot as plt

def change_default_gui_closing():
    """
    Change default gui closing behavior
    """
    plt.show()

# Enter the data
x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
y = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((change_default_gui_closing()))

#Example Output
# None

#Remember to inspect code for bugs.