A good starting point could be the “${ROOTSYS}/tutorials/hist/ratioplotOld.C” tutorial (it does not use the TRatioPlot class). You will just need to replace the two histograms there with your graph and your function.
A good starting point could be the “${ROOTSYS}/tutorials/hist/ratioplotOld.C” tutorial (it does not use the TRatioPlot class). You will just need to replace the two histograms there with your graph and your function.