Logo ROOT  
Reference Guide
hist010_TH1_two_scales Namespace Reference

Variables

 axis
 c1 = ROOT.TCanvas("c1","hists with different scales",600,400)
 h1 = ROOT.TH1F("h1","my histogram",100,-3,3)
 hint1 = ROOT.TH1F("hint1","h1 bins integral",100,-3,3)
float rightmax = 1.1*hint1.GetMaximum()
float scale = ROOT.gPad.GetUymax()/rightmax
int sum = 0

Variable Documentation

◆ axis

hist010_TH1_two_scales.axis
Initial value:
1= ROOT.TGaxis(ROOT.gPad.GetUxmax(),ROOT.gPad.GetUymin(),
2 ROOT.gPad.GetUxmax(), ROOT.gPad.GetUymax(),0,rightmax,510,"+L")

Definition at line 40 of file hist010_TH1_two_scales.py.

◆ c1

hist010_TH1_two_scales.c1 = ROOT.TCanvas("c1","hists with different scales",600,400)

Definition at line 16 of file hist010_TH1_two_scales.py.

◆ h1

hist010_TH1_two_scales.h1 = ROOT.TH1F("h1","my histogram",100,-3,3)

Definition at line 20 of file hist010_TH1_two_scales.py.

◆ hint1

hist010_TH1_two_scales.hint1 = ROOT.TH1F("hint1","h1 bins integral",100,-3,3)

Definition at line 27 of file hist010_TH1_two_scales.py.

◆ rightmax

float hist010_TH1_two_scales.rightmax = 1.1*hint1.GetMaximum()

Definition at line 34 of file hist010_TH1_two_scales.py.

◆ scale

float hist010_TH1_two_scales.scale = ROOT.gPad.GetUymax()/rightmax

Definition at line 35 of file hist010_TH1_two_scales.py.

◆ sum

int hist010_TH1_two_scales.sum = 0

Definition at line 29 of file hist010_TH1_two_scales.py.