Python Forum
How to read csv file update matplotlib column chart regularly - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to read csv file update matplotlib column chart regularly (/thread-39246.html)



How to read csv file update matplotlib column chart regularly - SamLiu - Jan-20-2023

Hi all,

I want to read csv date and update column charts by matplotlib automatically.
As snapshots first time write log and update column chart by every failed item and then write second time fail log and update column chart by every failed item again(if failed item same add quantity of the failed item)and third time, fourth time......both updated chart.

The key is how to distinguish every failed item, quantity and updated charts.


RE: How to read csv file update matplotlib column chart regularly - Larz60+ - Jan-20-2023

you can use 'sched' the python event scheduler: https://docs.python.org/3/library/sched.html


RE: How to read csv file update matplotlib column chart regularly - SamLiu - Jan-21-2023

(Jan-20-2023, 11:50 PM)Larz60+ Wrote: you can use 'sched' the python event scheduler: https://docs.python.org/3/library/sched.html

Thank you for your prompt reply, maybe that is not what I want.
I just want to sort out log file failed item name and quantity(log file continued write)update charts by matplotlib(only keep last chart, in log.xlsx is just a demo).
I am confusing how to distinguish failed item name and quantity dynamically.