This post has NOT been accepted by the mailing list yet.
My first attempt at a GUI, using wxpython and matplotlib. I have the GUI working fine, when a part number is entered and a button is pressed, the function generates a grid and a coinciding line plot. Now if the user enters a different part number and presses the button again, without closing the plot, the GUI freezes and eventually crashes. Ideally i would like to automatically close the plot ,if it is open, when the button is pressed, but I would also settle for just opening a new figure. I cant seem to figure out how to do that, any help would be great!! Function for plotting is below