void TMultiGraph_Logx() { Double_t x0[7] = {74.4374, 219.995, 356.343, 483.158, 750.839, 1170.03, 1608.97}; Double_t x1[9] = {2102.23, 6084.37, 9506.36, 13414.2, 17174, 24693.5, 35972.8, 43492.3, 43492.3}; Double_t x2[12] = {23406.2, 69175.5, 112049, 151925, 194010, 236095, 280032, 323970, 367907, 413914, 459921, 505928}; Double_t x3[12] = {209325, 618646, 1.00207e+06, 1.35869e+06, 1.73506e+06, 2.11143e+06, 2.50437e+06, 2.8973e+06, 3.29024e+06, 3.70169e+06, 4.11313e+06, 4.52458e+06}; Double_t ex0[7] = {0.628572, 1.0806, 1.37529, 1.60142, 1.99633, 2.49206, 2.92236}; Double_t ex1[9] = {3.34041, 5.68287, 7.10341, 76.0334, 76.0334, 76.0334, 76.0334, 76.0334, 76.0334}; Double_t ex2[12] = {249.633, 564.397, 848.442, 1110.47, 1263.91, 1661.24, 1824.31, 2110.55, 2521.63, 2696.51, 2996.22, 3421.64}; Double_t ex3[12] = {32281.7, 95311.8, 154354, 209268, 267176, 325181, 385640, 446147, 506702, 570011, 633368, 696774}; Double_t y0[7] = {1.07559, 1.04245, 1.0191, 1.03065, 1.00412, 0.985409, 0.975601}; Double_t y1[9] = {0.891472, 0.89111, 0.899732, 0.858208, 0.845982, 0.833829, 0.830329, 0.812277, 0.812277}; Double_t y2[12] = {1.01714, 1.01734, 1.08956, 1.09668, 1.07645, 1.061, 1.0361, 1.01086, 0.982074, 0.956209, 0.929272, 0.907183}; Double_t y3[12] = {0.72283, 0.658335, 0.624315, 0.568298, 0.519525, 0.47998, 0.444817, 0.416219, 0.391837, 0.370015, 0.349768, 0.332563}; Double_t ey0[7] = {0.238954, 0.130402, 0.103307, 0.0881114, 0.0681706, 0.0560317, 0.0478886}; Double_t ey1[9] = {0.0419806, 0.0214058, 0.0175105, 0.0162505, 0.0137193, 0.0116527, 0.0093501, 0.0119084, 0.0119084}; Double_t ey2[12] = {0.0146814, 0.0113385, 0.0166259, 0.0134019, 0.0130468, 0.0113079, 0.00981063, 0.00842169, 0.00735935, 0.00666139, 0.00723757, 0.00634237}; Double_t ey3[12] = {0.111515, 0.101439, 0.0961721, 0.0875334, 0.0800011, 0.073924, 0.0685004, 0.0640977, 0.0603485, 0.0569812, 0.0538623, 0.0512159}; TGraphErrors* gr[4]; gr[0] = new TGraphErrors(7, x0, y0, ex0, ey0); gr[1] = new TGraphErrors(9, x1, y1, ex1, ey1); gr[2] = new TGraphErrors(12, x2, y2, ex2, ey2); gr[3] = new TGraphErrors(12, x3, y3, ex3, ey3); TMultiGraph* mg = new TMultiGraph(); for(Int_t i=0; i<4; i++) { gr[i]->SetLineColor(i+1); mg->Add(gr[i]); } TCanvas* c0 = new TCanvas("c0", "c0", 800, 500); c0->Draw(); mg->Draw("AP"); mg->GetXaxis()->SetLimits(0, 6e6); //c0->SetLogx(); c0->Modified(); return; }