12void gr108_timeSeriesFromCSV()
18 dir.
Append(
"/visualisation/graphs/");
25 g->SetTitle(
"SWAN Users during July 2017;Time;Number of Sessions");
43 auto c =
new TCanvas(
"c",
"c", 950, 500);
44 c->SetLeftMargin(0.07);
45 c->SetRightMargin(0.04);
50 g->GetYaxis()->CenterTitle();
53 auto xaxis =
g->GetXaxis();
54 xaxis->SetTimeDisplay(1);
56 xaxis->SetTimeFormat(
"%a %d");
57 xaxis->SetTimeOffset(0);
58 xaxis->SetNdivisions(-219);
59 xaxis->SetLimits(
TDatime(2017, 7, 3, 0, 0, 0).Convert(),
TDatime(2017, 7, 22, 0, 0, 0).Convert());
60 xaxis->SetLabelSize(0.025);
61 xaxis->CenterLabels();
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
A TGraph is an object made of two arrays X and Y with npoints each.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
TString & Append(const char *cs)