How to i plot 3d in real time

I have to do plot 3D graph in real time.

i want to plot 3D graph of pixel data from opencv recored in real time.

but i get data by use while loop.

in my case, i saw a lot of browser.

I want to see the 3D graph changed everytime in one browser in real time.

i have to use offline plot.