they plotted the full spectrum that is the sum of S1+S2+S3+ S4+S5+S6 (small plots). To plot the full spectrum they rebinned in 28 days (as it is written in the caption).
I tried to rebin in this way:
int bindays=28;
int nbins = static_cast((x2 - x1) / bindays);
…
mg->GetXaxis()->SetNdivisions(nbins);
But I don’t see a decreasing in the number of points as in the figure of the article
a TGraph (or TMultiGraph in your case) has no concept of “bins”. Only histograms do. A TAttAxis::SetNdivisions() has nothing to do with bins, it’s really about ticks. I suggest you either rework your text files or try using TGraph::GetHistogram() and rebin that.
Sorry, the TGraph::GetHistogram() won’t work here. It is always empty as explained at TGraph GetHistogram() - #2 by couet. You should try to create a histogram from your multigraph yourself.