简体   繁体   中英

Python- Bar chart real time

How can I create a bar/column chart in python using animation in real time ? I have made static bar graphs. Currently I have a program that feeds value from a machine to an excel file and my program should read that file in real time and plot a bar graph. I just want to look at patterns. It should update after every 100 points. Thanks in advance !For more clarification I would like to add that it should look like the bar graph in the video provided in the link https://www.pond5.com/stock-footage/58163733/animated-line-bar-charts-business-plan-presentation-showing.html but should not be a image and should update real time data. I am okay if I can do this in Javascript as well. Thanks.

It looks like matplotlib.animation might meet your needs.

Docs: http://matplotlib.org/examples/animation/

Tutorial: https://pythonprogramming.net/python-matplotlib-live-updating-graphs/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM