Refreshing graph based on user GUI input

Hello,

I’m currently working on a project where a user generates a graph based on a tkinter GUI. The user specifies values on the GUI, then clicks a “Generate” button to generate a graph. I’m using simple threading on generation to keep the GUI from freezing up since the graph has hoverable elements.

One problem I’m running into is that if the user wishes to re-generate the graph and alter the values, the original graph is still displayed. My estimation is that this has to do with the threading, is there any way to resolve this so the graph can be “reloaded” with new specifications while keeping the GUI intact?

Thank you,
Claire


Figured out a fix, changed over from using app.start to fig.show.