Drawing multiple Histograms in one canvas using Dividing method

Here in this code I have a problem in constructing a method for Drawing a different graphs between direction of particles in X, Y and Z with Energy in 3 Histograms in one Canvas, I want all of them in one canvas using divided method

The Code is working correctly except the last part of “Draw Direction histogram”

DrawHistograms.cpp (4.5 KB) Out_run_0.root (122.4 KB)

Thanks in Advance


Documentation:
https://root.cern/doc/master/classTPad.html#a064b8ae1d12a9be393c0e22c5958cc7c
1 Like