Example of macro illustrating how to superimpose two histograms with different scales in the "same" pad.
Inspired by work of Rene Brun.
import ROOT
import numpy as np
c1 =
ROOT.TCanvas(
"c1",
"hists with different scales",600,400)
hint1 =
ROOT.TH1F(
"hint1",
"h1 bins integral",100,-3,3)
sum = 0
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 hist010_TH1_two_scales.py.