Thanks Nathan. But I was trying to update my plot in real time with an alternative method, other than through while loop or timer.
I have actually built the code instead with a timer and works perfectly, but I found that
"Note: The timer object is subject to the limitations of your hardware, operating system, and software. It is not intended to be used for real-time applications.".
I was trying to figure out which could be the most correct solution to implement in real time scenarios.