void multigraph() { gStyle->SetOptFit(); auto c1 = new TCanvas("c1","multigraph",700,500); c1->SetGrid(); auto *mg = new TMultiGraph(); const Int_t n = 11; Double_t x[] = {0,1997,3219,3901,3297,2800,2233,1656,1121,802,762}; Double_t x1[] = {9700,8426,7435,6009,3799,3047,2348,1698,1134,805,765}; Double_t y[] = {3,3.5,4,5,8,10,13,18,28,38,40}; auto g2 = new TGraph(n, x1, y); g2->SetPoint(n,x1[n-1],y[0]); mg->Add(g2); g2->SetFillColor(kGreen-2); auto g1 = new TGraph(n, x, y); //g1->SetFillColor(kRed-2); g1->SetPoint(n,x[0],y[n-1]); mg->Add(g1); mg->SetTitle("; m^{2}_{12};tan#beta"); mg->GetXaxis()->CenterTitle(true); mg->GetYaxis()->CenterTitle(true); mg->Draw("ACF"); c1->RedrawAxis("G"); c1->SaveAs("multigraph.pdf"); }