I am trying to visualise graph using tkinter. The code is working fine, but the issue is the difference between the graphs generated when I execute the code in Spyder and in