Hello every one, I would like to know if it’s possible to plot two graphs (TGraph) root and their ratio on one canvas and two pad (like the example which displaying two histograms and their ratio : tut/hist/ratioplot.C) .

TRatioplot is used to draw ratio plots. But it takes histogram. I guess you will have to start from the example you mentioned and adapt it for graph.

Thank you so much for your help. Obviously I tried to start from the example that plot the

ratio for two histograms, but I can not solve the problem with TGraph. I attach my file with two graphs that I want to plot their ratio. Thank you for guiding me to solve this problem. graph4.C (5.2 KB)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.