I want to dynamically update the scatter plot based on the y-axis data received from a socket connection. I used python matplot lib in interactive mode to do this, but during dy
This page contains a couple of examples of dynamic plots with matplotlib and wxPython. And here is a version with PyQt.
For this to work, you need to have a main loop for event handling, and your own event handler to redraw the plot when the window is resized or refreshed.
You'll find many examples for this on the web, or in the tutorials.
I think this is best handled by using a UI toolkit (e.g. wxPython), not using matplotlib interactive mode. I had a similar question in the past and got some good answers.