Can you make a line graph (monitor screen) that works with python, tkinter, and canvas?

Asked 2 years ago, Updated 2 years ago, 99 views

I write GUI programs using python and tkinter.
I have displayed a still line graph within the canvas.
I would like to create a monitor screen where the line graph moves with information from the sensor, but would it be impossible to do it only with canvas instead of matlibplot?

python tkinter

2022-09-30 19:21

1 Answers

I think it is possible to apply this article.
Live Plot in Python GUI

The script in the answer article seemed to be Python 2.x-based, but as the comment in the answer says, the first import Tkinterastk was changed to import tkinterastk and Tkinter to work with Python 3.x-based.
The input data in the answer seems to be simulated with random numbers.

The verification environment is Windows 10 64-bit Python 3.9.1.


2022-09-30 19:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.