I can change the line style in Matplotlib, but the style resets immediately to the default upon closing the dialog box.