I’m using roofit and I’d like to plot the projection as in a stack histogram: one over the previous one. To do that in ::plotOn() I have used the command AddTo(“base”) but it seems to not work. The shell doen’t show any error message or warning.
I have attached a smal piece of code with a dummy test: it produces to canvases, the 1st without trying ti pile up the curves, the 2nd with the AddTo() command.
stack_test.C (1.84 KB)