B
B
Bruceee2017-07-26 02:38:39
Django
Bruceee, 2017-07-26 02:38:39

How to output a plotted graph to a Django or Flask display?

There is a cycle, the values ​​of the array change in the cycle. I want to display a chart on the web page after each iteration in the loop. With each iteration, the data will change, i.e. the result is a small animation of changing values ​​in the array. After each step of the loop, there is a slight delay to make the animation smoother.
Can you please tell me how to display a graph built with matplotlib on a Django or Flask display?
How else can you implement the visualization of a graph with a high frequency of changes in the data on which this graph is built?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThemeZV, 2017-07-26
@Bruceee

Do you want to open the page and see the changes or refresh the page to see the changes?
If the former, then ajax or websockets is needed.

D
Dmitry, 2017-07-26
@LazyTalent

Can you please tell me how to display a graph built with matplotlib on a Django or Flask display?
save image --> upload image to frontend.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question