21 FILE *
f = fopen(
Form(
"%sSWAN2017.dat", dir.
Data()),
"r");
25 g->SetTitle(
"SWAN Users during July 2017;Time;Number of Sessions");
33 while (fgets(
line, 80,
f)) {
34 sscanf(&
line[20],
"%f", &
v);
35 strncpy(dt,
line, 18);
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();
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)