This macro illustrates the use of the time axis on a TGraph with data read from a text file containing the SWAN usage statistics during July 2017.
import ROOT
dirName += "/visualisation/graphs/"
inputFileName = "%s/SWAN2017.dat" %dirName
g.SetTitle(
"SWAN Users during July 2017;Time;Number of Sessions")
xaxis.SetLimits(
ROOT.TDatime(2017, 7, 3, 0, 0, 0).Convert(),
ROOT.TDatime(2017, 7, 22, 0, 0, 0).Convert())
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
- Authors
- Danilo Piparo, Olivier Couet
Definition in file gr108_timeSeriesFromCSV.py.