https://learnwithpanda.com/2020/05/19/how-to-make-a-real-time-plot-or-figure-in-python/
How to Make a Real time Plot or Figure in Python