#include #include #include void DrawTest(){ TCanvas *canv=new TCanvas("canv","canv"); canv->Divide(2,1); TH1D *histo=new TH1D("h","h",100,-1.,1.); histo->SetDirectory(0); histo->FillRandom("gaus"); canv->cd(1); histo->Draw(); TGraph *graph=new TGraph(histo); canv->cd(2); graph->Draw(); return; }