Plotting a TH1D over the time

Hi,

I am writing a piece of code that reads a tree and fill a TH1D histogram…With this histogram I am extracting the Mean and the RMS values…

I would like to plot this Histogram over the time (TGraph). Is there a way? I am pretty sure that it should be easy, however I can’t figure out how to do it.

Right now I am reading the tree and filling a histogram and a python array… and plotting the array…

If you want time axis see:
root.cern.ch/root/HowtoTimeAxis.html