I'm new in matplotlib
.
I want to update a data in an endless while loop in a different thread
in addition to updating the plot in the pyplot.show method.
I tried using the threading import but it isn't working
well together with pyplot.show
method.
I know I can use pyplot.ion
and it works fine with the threads.
The problem with pyplot.ion
is that it is not efficient.
Is there any way that i could use pyplot.show
instead?
To make myself clear, I don't want the solution:
pyplot.ion()
....
while True:
....
pyplot.show()