void original() { //=========Macro generated from canvas: c1/c1 //========= (Fri Sep 11 08:35:49 2020) by ROOT version 6.18/04 TCanvas *c1 = new TCanvas("c1", "c1",11,32,700,520); gStyle->SetOptFit(1); c1->ToggleEventStatus(); c1->Range(1.32439,-0.3807893,6.007317,2.792455); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(0); c1->SetLogy(); c1->SetGridy(); c1->SetLeftMargin(0.14); c1->SetRightMargin(0.04); c1->SetTopMargin(0.06); c1->SetBottomMargin(0.12); c1->SetFrameFillStyle(0); c1->SetFrameBorderMode(0); c1->SetFrameBorderSize(0); c1->SetFrameFillStyle(0); c1->SetFrameBorderMode(0); c1->SetFrameBorderSize(0); Double_t _fx1[9] = { 2.3, 2.5, 3, 3.5, 4, 4.3, 4.5, 5, 5.5}; Double_t _fy1[9] = { 3.397131, 8.881006, 29.12997, 52.64245, 80.01443, 99.7382, 115.1408, 153.4503, 189.7485}; TGraph *graph = new TGraph(9,_fx1,_fy1); graph->SetName(""); graph->SetTitle(""); graph->SetFillStyle(1000); graph->SetLineColor(2); graph->SetMarkerColor(2); graph->SetMarkerStyle(21); TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","",100,1.98,5.82); Graph_Graph1->SetMinimum(1); Graph_Graph1->SetMaximum(400); 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()->SetTitle("x"); Graph_Graph1->GetXaxis()->SetLabelFont(42); Graph_Graph1->GetXaxis()->SetLabelOffset(0.01); Graph_Graph1->GetXaxis()->SetLabelSize(0.045); Graph_Graph1->GetXaxis()->SetTitleSize(0.045); Graph_Graph1->GetXaxis()->SetTickLength(0.02); Graph_Graph1->GetXaxis()->SetTitleOffset(1.2); Graph_Graph1->GetXaxis()->SetTitleFont(42); Graph_Graph1->GetYaxis()->SetTitle("y"); Graph_Graph1->GetYaxis()->SetLabelFont(42); Graph_Graph1->GetYaxis()->SetLabelOffset(0.01); Graph_Graph1->GetYaxis()->SetLabelSize(0.045); Graph_Graph1->GetYaxis()->SetTitleSize(0.045); Graph_Graph1->GetYaxis()->SetTickLength(0.015); Graph_Graph1->GetYaxis()->SetTitleOffset(1.3); Graph_Graph1->GetYaxis()->SetTitleFont(42); Graph_Graph1->GetZaxis()->SetLabelFont(42); Graph_Graph1->GetZaxis()->SetLabelOffset(0.01); Graph_Graph1->GetZaxis()->SetLabelSize(0.035); Graph_Graph1->GetZaxis()->SetTitleSize(0.035); Graph_Graph1->GetZaxis()->SetTitleOffset(1); Graph_Graph1->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph1); graph->Draw("alp"); Double_t _fx2[9] = { 2.3, 2.5, 3, 3.5, 4, 4.3, 4.5, 5, 5.5}; Double_t _fy2[9] = { 1.371568, 1.505461, 1.597761, 1.665406, 1.689315, 1.741511, 1.774227, 1.81751, 1.890545}; graph = new TGraph(9,_fx2,_fy2); graph->SetName(""); graph->SetTitle(""); graph->SetFillStyle(1000); graph->SetLineColor(4); graph->SetMarkerColor(4); graph->SetMarkerStyle(20); TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","",100,1.98,5.82); Graph_Graph2->SetMinimum(1.31967); Graph_Graph2->SetMaximum(1.942443); Graph_Graph2->SetDirectory(0); Graph_Graph2->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph2->SetLineColor(ci); Graph_Graph2->GetXaxis()->SetLabelFont(42); Graph_Graph2->GetXaxis()->SetLabelOffset(0.01); Graph_Graph2->GetXaxis()->SetLabelSize(0.045); Graph_Graph2->GetXaxis()->SetTitleSize(0.045); Graph_Graph2->GetXaxis()->SetTickLength(0.02); Graph_Graph2->GetXaxis()->SetTitleOffset(1.2); Graph_Graph2->GetXaxis()->SetTitleFont(42); Graph_Graph2->GetYaxis()->SetLabelFont(42); Graph_Graph2->GetYaxis()->SetLabelOffset(0.01); Graph_Graph2->GetYaxis()->SetLabelSize(0.045); Graph_Graph2->GetYaxis()->SetTitleSize(0.045); Graph_Graph2->GetYaxis()->SetTickLength(0.015); Graph_Graph2->GetYaxis()->SetTitleOffset(1.3); Graph_Graph2->GetYaxis()->SetTitleFont(42); Graph_Graph2->GetZaxis()->SetLabelFont(42); Graph_Graph2->GetZaxis()->SetLabelOffset(0.01); Graph_Graph2->GetZaxis()->SetLabelSize(0.035); Graph_Graph2->GetZaxis()->SetTitleSize(0.035); Graph_Graph2->GetZaxis()->SetTitleOffset(1); Graph_Graph2->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph2); graph->Draw("lp "); TLegend *leg = new TLegend(0.2,0.75,0.45,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("","entry 1","PL"); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("","entry 2","PL"); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }