how do i display real-time graphs in a simple ui for a python program?,plt.show()