I want to dynamically update a scatter plot based on y axis data received from a socket connection. I used python matplot lib in interactive mode for this, but during dynamic updating, if I moved the window to another location or hide the window, the plot update will abruptly stop. How to do it?
I applied the dynamic update code example here, and the same problem also appears here.
import matplotlib.pyplot as plt import random import time items = [25.5,26.7,23.4,22.5,20,13.4,15.6,-12,-16,20] x = [1,2,3,4,5,6,7,8,9,10] plt.ion()
python matplotlib
Sharath
source share