So are you trying to draw a real-time plot? Is this right?
yes. Also I gives some information about x-value which selected by user. In each selection, I called replot().
I have a similar problem: I'm trying to replot the graph when a mouse move event is generated... but also in my case the system freezes...