zdemo.C: This macro is an example of graphs in log scales with annotations. | TGraph, TGraphErrors, etc |
void zones() { // example of script showing how to divide a canvas // into adjacent subpads + axis labels on the top and right side // of the pads. //Author; Rene Brun TCanvas *c1 = new TCanvas("c1","multipads",900,700); gStyle->SetOptStat(0); c1->Divide(2,2,0,0); TH2F *h1 = new TH2F("h1","test1",10,0,1,20,0,20); TH2F *h2 = new TH2F("h2","test2",10,0,1,20,0,100); TH2F *h3 = new TH2F("h3","test3",10,0,1,20,-1,1); TH2F *h4 = new TH2F("h4","test4",10,0,1,20,0,1000); c1->cd(1); gPad->SetTickx(2); h1->Draw(); c1->cd(2); gPad->SetTickx(2); gPad->SetTicky(2); h2->GetYaxis()->SetLabelOffset(0.01); h2->Draw(); c1->cd(3); h3->Draw(); c1->cd(4); gPad->SetTicky(2); h4->Draw(); } zones.C:1 zones.C:2 zones.C:3 zones.C:4 zones.C:5 zones.C:6 zones.C:7 zones.C:8 zones.C:9 zones.C:10 zones.C:11 zones.C:12 zones.C:13 zones.C:14 zones.C:15 zones.C:16 zones.C:17 zones.C:18 zones.C:19 zones.C:20 zones.C:21 zones.C:22 zones.C:23 zones.C:24 zones.C:25 zones.C:26 zones.C:27 zones.C:28 zones.C:29 zones.C:30 zones.C:31 zones.C:32 |
|