{ //=========Macro generated from canvas: c1/c1 //========= (Fri Aug 9 15:58:54 2002) by ROOT version3.03/07 TCanvas *c1 = new TCanvas("c1", "c1",58,9,700,500); c1->Range(0,0,1,1); c1->SetBorderSize(2); c1->SetFrameFillColor(0); // ------------>Primitives in pad: c1_1 TPad *c1_1 = new TPad("c1_1", "c1_1",0.01,0.01,0.49,0.99); c1_1->Draw(); c1_1->cd(); c1_1->Range(-0.25,0.25,4.25,7.75); c1_1->SetBorderSize(2); c1_1->SetFrameFillColor(0); TGraphErrors *gre = new TGraphErrors(3); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetPoint(0,1,2); gre->SetPointError(0,0.5,0.5); gre->SetPoint(1,2,2); gre->SetPointError(1,0.5,0.5); gre->SetPoint(2,3,6); gre->SetPointError(2,0.5,0.5); gre->Draw("alp"); TPaveText *pt = new TPaveText(0.01,0.945,0.167692,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(2); pt->SetFillColor(19); TText *text = pt->AddText("Graph"); pt->Draw(); c1_1->Modified(); c1->cd(); // ------------>Primitives in pad: c1_2 c1_2 = new TPad("c1_2", "c1_2",0.51,0.01,0.99,0.99); c1_2->Draw(); c1_2->cd(); c1_2->Range(0.5,1,3.5,7); c1_2->SetBorderSize(2); c1_2->SetFrameFillColor(0); TGraph *graph = new TGraph(3); graph->SetName("Graph"); graph->SetTitle("Graph"); graph->SetFillColor(1); graph->SetPoint(0,1,2); graph->SetPoint(1,2,2); graph->SetPoint(2,3,6); TH1 *Graph1 = new TH1F("Graph1","Graph",100,0.8,3.2); Graph1->SetMinimum(1.6); Graph1->SetMaximum(6.4); Graph1->SetDirectory(0); Graph1->SetStats(0); Graph1->GetXaxis()->SetTitle("time"); Graph1->GetYaxis()->SetTitle("aggrivation"); graph->SetHistogram(Graph1); graph->Draw("alp"); pt = new TPaveText(0.01,0.945,0.167692,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(2); pt->SetFillColor(19); text = pt->AddText("Graph"); pt->Draw(); c1_2->Modified(); c1->cd(); c1->Modified(); c1->cd(); }