Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
zones.py File Reference

Detailed Description

View in nbviewer Open in SWAN
Example of script showing how to divide a canvas into adjacent subpads + axis labels on the top and right side of the pads.

Original tutorial by Rene Brun.

import ROOT
c1 = ROOT.TCanvas("c1","multipads",900,700)
c1.Divide(2,2,0,0)
h1 = ROOT.TH2F("h1","test1",10,0,1,20,0,20)
h2 = ROOT.TH2F("h2","test2",10,0,1,20,0,100)
h3 = ROOT.TH2F("h3","test3",10,0,1,20,-1,1)
h4 = ROOT.TH2F("h4","test4",10,0,1,20,0,1000)
h2.GetYaxis().SetLabelOffset(0.01)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Author
Alberto Ferro

Definition in file zones.py.