I am writing a simple python script for plotting real-time with canvas.draw() as show below. When executed it only prints the first point (1,1) and then freezes. My IDE is P