How to create live animation graphs in python using matplotlib

(Photo,GIF by Author) https://github.com/oleksandr-g-rock/create_animation_graphs_in_python/blob/main/0_s47Ja_tCRYz4_FY-.gif

For this we need modules:

So before using this guide please install these modules to your environment.
If you already install these modules, let's start.

At first please download this repo:

And run the next python script:

You should see an animation graph from an old data

You can add new data to your DATA file: data_for_show.txt and you can see animation graphs with new data — in live time.
So open a new terminal and run this command — this command just add a new line to the end file.

Result:

You can see live animation like on this GIF

(Photo,GIF by Author) https://github.com/oleksandr-g-rock/create_animation_graphs_in_python/blob/main/0_s47Ja_tCRYz4_FY-.gif

Just for your information:
Full code & examples & notebook in my repository here.

ML DevOps engineer. 🙂 I am always open to new opportunities and offers. 🖖 I trying to help the world 🌏 with machine learning.