{
TMultiGraph* mg = new TMultiGraph;
TGraph* g = new TGraph;
for (int i = 0; i < 100; i++) g->SetPoint(i, 1289420808+i, i+2);
mg->Add(g, "P");
mg->Draw("AP");
mg->GetXaxis()->SetTimeDisplay(1);
mg->GetYaxis()->UnZoom();
gPad->Modified();
gPad->Update();
}
{
TCanvas *tmp = new TCanvas();
TH2F *h1 = new TH2F("h1","h1",40,0.,10.,40,1.e-2,1.e2);
h1->Fill(5,10);
h1->Draw("COLZ");
tmp->SetLogz();
h1->GetZaxis()->SetNdivisions(110,kFALSE);
}
{
TCanvas * canvas = new TCanvas("glC","C",800,800);
TH3D *h = new TH3D("h3","h3",150,0,20,150,-5,5,150,-5,5);
ntuple->Draw("px:py+1:pz+4.7>>h3","","Q");
}
void testGraphPrec() {
double offset=55.0;
TCanvas* myC = new TCanvas("myC","myC",600,400);
TGraph* gr=new TGraph();
for (int i=0; i < 1000; i++) {
double point_x = 3.0+((double) i)*1e-7;
double point_y = offset+((double) i)*1e-8;
gr->SetPoint(i,point_x,point_y);
}
gr->Draw("AP");
myC->Print("tmp.C");
}