{
//
// To see the output of this macro, click begin_html here. end_html
//
gROOT->Reset();
c1 = new TCanvas("c1","A Simple Graph Example",200,10,700,500);
TH1F *h = new TH1F("h","test",10,0,0);
const Int_t n = 20;
Double_t x[n], y[n];
for (Int_t i=0;iFill(y[i]);
}
gr = new TGraph(n,x,y);
gr->SetLineWidth(4);
gr->SetMarkerColor(4);
gr->SetMarkerStyle(21);
gr->Draw("ACP");
//draw histogram in a small pad
TPad *pad = new TPad("small","corner pad",.55,.6,.88,.89,33);
pad->Draw();
pad->cd();
h->SetFillColor(46);
h->Draw();
c1->cd();
}