void axeX_range_not_changing() { //=========Macro generated from canvas: c1/ //========= (Tue Oct 20 14:10:08 2015) by ROOT version6.05/02 TCanvas *c1 = new TCanvas("c1", "",0,45,1280,751); c1->Range(-2.479613e-09,-1.75e-08,7.630661e-09,1.575e-07); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName("mgr"); multigraph->SetTitle(""); Double_t Graph_fx1[124] = { 2e-12, 6e-12, 1.4e-11, 2e-11, 2.2e-11, 2.47113e-11, 3.0134e-11, 4.09793e-11, 5e-11, 5.2e-11, 5.6e-11, 6.4e-11, 8e-11, 1.12e-10, 1.76e-10, 3.04e-10, 5.6e-10, 7.8e-10, 1e-09, 1.002e-09, 1.006e-09, 1.014e-09, 1.03e-09, 1.062e-09, 1.126e-09, 1.254e-09, 1.51e-09, 2.022e-09, 3.046e-09, 4e-09, 4.002e-09, 4.006e-09, 4.014e-09, 4.03e-09, 4.062e-09, 4.126e-09, 4.254e-09, 4.51e-09, 5.022e-09, 6.046e-09, 8.094e-09, 1.219e-08, 2.01279e-08, 2.5e-08, 2.55e-08, 2.65e-08, 2.85e-08, 3.25e-08, 4.05e-08, 5.65e-08, 8.85e-08, 1.525e-07, 1.845e-07, 1.925e-07, 2.005e-07, 2.07809e-07, 2.1257e-07, 2.13792e-07, 2.14303e-07, 2.15326e-07, 2.1737e-07, 2.2146e-07, 2.24961e-07, 2.27452e-07, 2.29942e-07, 2.32433e-07, 2.34924e-07, 2.37415e-07, 2.39463e-07, 2.4151e-07, 2.43558e-07, 2.45605e-07, 2.47653e-07, 2.48986e-07, 2.50319e-07, 2.51653e-07, 2.52986e-07, 2.54319e-07, 2.55653e-07, 2.56986e-07, 2.58319e-07, 2.59652e-07, 2.60986e-07, 2.62319e-07, 2.63652e-07, 2.64986e-07, 2.66319e-07, 2.67652e-07, 2.68855e-07, 2.70057e-07, 2.7126e-07, 2.72463e-07, 2.73665e-07, 2.74868e-07, 2.7607e-07, 2.77273e-07, 2.78476e-07, 2.79678e-07, 2.82084e-07, 2.82701e-07, 2.83935e-07, 2.86405e-07, 2.87268e-07, 2.88996e-07, 2.90724e-07, 2.92452e-07, 2.94179e-07, 2.95907e-07, 2.97635e-07, 3.0109e-07, 3.04246e-07, 3.07401e-07, 3.10557e-07, 3.13712e-07, 3.16868e-07, 3.23179e-07, 3.358e-07, 3.51137e-07, 3.64198e-07, 3.90318e-07, 4.4256e-07, 5.47044e-07, 7.5601e-07, 1e-06}; Double_t Graph_fy1[124] = { 3.61335e-13, 3.55676e-13, 3.58727e-13, 3.57495e-13, 6.47467e-08, 5.44089e-08, 4.60599e-08, 3.53018e-08, 2.94616e-08, 2.83943e-08, 2.64459e-08, 2.315e-08, 1.82461e-08, 1.22404e-08, 6.6432e-09, 2.92067e-09, 1.20686e-09, 8.89624e-10, 7.38153e-10, 7.37235e-10, 7.3544e-10, 7.3187e-10, 7.24869e-10, 7.11542e-10, 6.87494e-10, 6.47772e-10, 5.89705e-10, 5.13707e-10, 4.19841e-10, 3.65968e-10, 3.6586e-10, 3.65682e-10, 3.65317e-10, 3.64574e-10, 3.63089e-10, 3.60147e-10, 3.54407e-10, 3.43439e-10, 3.23186e-10, 2.88089e-10, 2.33262e-10, 1.5946e-10, 9.06881e-11, 9.4535e-11, 9.61156e-11, 1.00638e-10, 1.15243e-10, 1.67122e-10, 3.64094e-10, 1.10778e-09, 4.1723e-09, 1.95986e-08, 3.35737e-08, 3.76347e-08, 4.18157e-08, 4.55625e-08, 4.78826e-08, 4.84531e-08, 4.86881e-08, 4.9151e-08, 5.00437e-08, 5.16561e-08, 5.27808e-08, 5.338e-08, 5.37522e-08, 5.38256e-08, 5.35083e-08, 5.2688e-08, 5.15505e-08, 4.99197e-08, 4.7739e-08, 4.49801e-08, 4.16641e-08, 3.92446e-08, 3.66724e-08, 3.40133e-08, 3.13496e-08, 2.87728e-08, 2.63694e-08, 2.42014e-08, 2.22897e-08, 2.06111e-08, 1.91153e-08, 1.77513e-08, 1.64859e-08, 1.5303e-08, 1.41963e-08, 1.31616e-08, 1.22874e-08, 1.14664e-08, 1.06962e-08, 9.97424e-09, 9.29796e-09, 8.66495e-09, 8.0728e-09, 7.51922e-09, 7.00196e-09, 6.51887e-09, 5.64663e-09, 5.4418e-09, 5.05339e-09, 4.3553e-09, 4.13416e-09, 3.72412e-09, 3.35393e-09, 3.01988e-09, 2.71854e-09, 2.44681e-09, 2.20187e-09, 1.78177e-09, 1.46799e-09, 1.20902e-09, 9.95444e-10, 8.19401e-10, 6.74366e-10, 4.55735e-10, 2.04584e-10, 7.62807e-11, 3.33874e-11, 5.39201e-12, -8.73916e-14, 4.52301e-13, 3.45315e-13, 3.65591e-13}; TGraph *graph = new TGraph(124,Graph_fx1,Graph_fy1); graph->SetName("Graph"); graph->SetTitle("plus20.txt"); graph->SetFillColor(1); TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","plus20.txt",124,0,1.1e-06); Graph_Graph1->SetMinimum(-6.474766e-09); Graph_Graph1->SetMaximum(7.122138e-08); Graph_Graph1->SetDirectory(0); Graph_Graph1->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); Graph_Graph1->SetLineColor(ci); Graph_Graph1->GetXaxis()->SetLabelFont(42); Graph_Graph1->GetXaxis()->SetLabelSize(0.035); Graph_Graph1->GetXaxis()->SetTitleSize(0.035); Graph_Graph1->GetXaxis()->SetTitleFont(42); Graph_Graph1->GetYaxis()->SetLabelFont(42); Graph_Graph1->GetYaxis()->SetLabelSize(0.035); Graph_Graph1->GetYaxis()->SetTitleSize(0.035); Graph_Graph1->GetYaxis()->SetTitleFont(42); Graph_Graph1->GetZaxis()->SetLabelFont(42); Graph_Graph1->GetZaxis()->SetLabelSize(0.035); Graph_Graph1->GetZaxis()->SetTitleSize(0.035); Graph_Graph1->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph1); multigraph->Add(graph,""); Double_t Graph_fx2[136] = { 2e-12, 6e-12, 1.4e-11, 2e-11, 2.2e-11, 2.47029e-11, 3.01086e-11, 4.092e-11, 5e-11, 5.2e-11, 5.6e-11, 6.4e-11, 8e-11, 1.12e-10, 1.76e-10, 3.04e-10, 5.6e-10, 7.8e-10, 1e-09, 1.002e-09, 1.006e-09, 1.014e-09, 1.03e-09, 1.062e-09, 1.126e-09, 1.254e-09, 1.51e-09, 2.022e-09, 3.046e-09, 4e-09, 4.002e-09, 4.006e-09, 4.014e-09, 4.03e-09, 4.062e-09, 4.126e-09, 4.254e-09, 4.51e-09, 5.022e-09, 6.046e-09, 8.094e-09, 1.219e-08, 1.77746e-08, 2.5e-08, 2.55e-08, 2.65e-08, 2.85e-08, 3.25e-08, 4.05e-08, 5.65e-08, 8.85e-08, 1.205e-07, 1.365e-07, 1.42596e-07, 1.43831e-07, 1.44911e-07, 1.4599e-07, 1.4707e-07, 1.4815e-07, 1.50309e-07, 1.52782e-07, 1.55487e-07, 1.5786e-07, 1.5944e-07, 1.61021e-07, 1.62601e-07, 1.64181e-07, 1.65761e-07, 1.67226e-07, 1.6809e-07, 1.68954e-07, 1.69818e-07, 1.70682e-07, 1.71546e-07, 1.72392e-07, 1.73238e-07, 1.74083e-07, 1.74929e-07, 1.75775e-07, 1.76448e-07, 1.77121e-07, 1.77793e-07, 1.78466e-07, 1.79139e-07, 1.79812e-07, 1.80485e-07, 1.81157e-07, 1.8183e-07, 1.82503e-07, 1.8304e-07, 1.83577e-07, 1.84114e-07, 1.8465e-07, 1.85187e-07, 1.85769e-07, 1.8639e-07, 1.8696e-07, 1.8758e-07, 1.88819e-07, 1.89144e-07, 1.89793e-07, 1.91091e-07, 1.91462e-07, 1.92202e-07, 1.92943e-07, 1.93683e-07, 1.94424e-07, 1.95164e-07, 1.95905e-07, 1.97386e-07, 1.98265e-07, 2.00023e-07, 2.00576e-07, 2.01681e-07, 2.02787e-07, 2.03892e-07, 2.04998e-07, 2.06103e-07, 2.07208e-07, 2.09419e-07, 2.10901e-07, 2.13865e-07, 2.14561e-07, 2.15955e-07, 2.18741e-07, 2.22634e-07, 2.24474e-07, 2.28155e-07, 2.35516e-07, 2.45194e-07, 2.64551e-07, 3.02852e-07, 3.79455e-07, 5.32661e-07, 8.39074e-07, 1e-06}; Double_t Graph_fy2[136] = { 1.33817e-07, 4.22591e-10, -1.83182e-12, -3.22614e-14, 7.93133e-08, 6.54006e-08, 5.29654e-08, 3.76967e-08, 3.00087e-08, 2.86679e-08, 2.62614e-08, 2.23182e-08, 1.67705e-08, 1.05569e-08, 5.42578e-09, 2.41236e-09, 1.09571e-09, 8.4521e-10, 7.28702e-10, 7.28007e-10, 7.26646e-10, 7.23907e-10, 7.18483e-10, 7.08046e-10, 6.88939e-10, 6.56426e-10, 6.05642e-10, 5.31373e-10, 4.31318e-10, 3.72922e-10, 3.72808e-10, 3.72616e-10, 3.72213e-10, 3.71397e-10, 3.69755e-10, 3.6649e-10, 3.60083e-10, 3.47695e-10, 3.2446e-10, 2.83815e-10, 2.20554e-10, 1.40683e-10, 1.15102e-10, 2.50101e-10, 2.68253e-10, 3.07068e-10, 3.96459e-10, 6.20999e-10, 1.25334e-09, 3.41255e-09, 1.32416e-08, 3.65436e-08, 5.63304e-08, 6.52727e-08, 6.71547e-08, 6.8816e-08, 7.04866e-08, 7.21621e-08, 7.38385e-08, 7.71753e-08, 8.09142e-08, 8.47782e-08, 8.78057e-08, 8.95138e-08, 9.08543e-08, 9.168e-08, 9.18013e-08, 9.0992e-08, 8.92025e-08, 8.76082e-08, 8.55754e-08, 8.30871e-08, 8.01408e-08, 7.67529e-08, 7.30466e-08, 6.90208e-08, 6.47701e-08, 6.0418e-08, 5.61109e-08, 5.2818e-08, 4.9722e-08, 4.68762e-08, 4.43057e-08, 4.20022e-08, 3.99273e-08, 3.80277e-08, 3.62528e-08, 3.45672e-08, 3.2952e-08, 3.17081e-08, 3.05026e-08, 2.93347e-08, 2.82037e-08, 2.71092e-08, 2.59648e-08, 2.4786e-08, 2.37469e-08, 2.26593e-08, 2.06135e-08, 2.01056e-08, 1.91226e-08, 1.7285e-08, 1.67914e-08, 1.58421e-08, 1.49425e-08, 1.40902e-08, 1.32833e-08, 1.25197e-08, 1.17975e-08, 1.04691e-08, 9.74957e-09, 8.44921e-09, 8.07633e-09, 7.37737e-09, 6.73722e-09, 6.1512e-09, 5.61501e-09, 5.12461e-09, 4.67627e-09, 3.89145e-09, 3.43995e-09, 2.68536e-09, 2.53369e-09, 2.25514e-09, 1.78539e-09, 1.28675e-09, 1.10262e-09, 8.08729e-10, 4.3148e-10, 1.86824e-10, 2.80902e-11, -2.45563e-12, 4.95772e-13, -9.00182e-14, 1.62049e-14, 1.42836e-15}; graph = new TGraph(136,Graph_fx2,Graph_fy2); graph->SetName("Graph"); graph->SetTitle("minus20.txt"); graph->SetFillColor(1); graph->SetLineColor(2); TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","minus20.txt",136,0,1.1e-06); Graph_Graph2->SetMinimum(-1.33844e-08); Graph_Graph2->SetMaximum(1.471989e-07); Graph_Graph2->SetDirectory(0); Graph_Graph2->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph2->SetLineColor(ci); Graph_Graph2->GetXaxis()->SetLabelFont(42); Graph_Graph2->GetXaxis()->SetLabelSize(0.035); Graph_Graph2->GetXaxis()->SetTitleSize(0.035); Graph_Graph2->GetXaxis()->SetTitleFont(42); Graph_Graph2->GetYaxis()->SetLabelFont(42); Graph_Graph2->GetYaxis()->SetLabelSize(0.035); Graph_Graph2->GetYaxis()->SetTitleSize(0.035); Graph_Graph2->GetYaxis()->SetTitleFont(42); Graph_Graph2->GetZaxis()->SetLabelFont(42); Graph_Graph2->GetZaxis()->SetLabelSize(0.035); Graph_Graph2->GetZaxis()->SetTitleSize(0.035); Graph_Graph2->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph2); multigraph->Add(graph,""); multigraph->Draw("AL"); multigraph->GetXaxis()->SetRange(7,7); multigraph->GetXaxis()->SetLabelFont(42); multigraph->GetXaxis()->SetLabelSize(0.035); multigraph->GetXaxis()->SetTitleSize(0.035); multigraph->GetXaxis()->SetTitleFont(42); multigraph->GetYaxis()->SetLabelFont(42); multigraph->GetYaxis()->SetLabelSize(0.035); multigraph->GetYaxis()->SetTitleSize(0.035); multigraph->GetYaxis()->SetTitleFont(42); c1->Modified(); c1->cd(); c1->SetSelected(c1); }