How do I display real-time graphs in a simple UI for a python program?,plt.show()