Help with Real Time Queue for Time Series Graph

I am trying to display machine data in realtime as a time series graph. I am not very familiar with advanced perspective functions and need some help figuring out what the best way to do this will be. Currently I am investigating using a deque in python but unsure how to get that deque from the script into a table/graph every second.

I'd appreciate any help possible.

Thanks!