Stair plot from KS test

Hello. I would like to make a stair plot to represent the cumulative distribution function from a Kolmogorov-Smirnov test, something like this:
There, the length of each step is different. Is that also possible using a TH1 plot? Thanks in advance!

Hi Dario,

Please don’t post to old topics but open a new one. I have now moved your post into a new topic.

The step sizes are defined by the bin widths, which you can define by providing the bin borders; see the TH1 constructor taking a const double* argument. Another option could be to use a TGraph.

Cheers, Axel.

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