Plot multiple histograms with a loop for

Thank you for your reply. I tried your code and it works, I have two canvases each containing the two histograms superimposed. I don’t understand why it doesn’t work for me.

Send me an example I can run and I will help you further.

I can’t send a root file due to the confidentiality of my internship.

Can you make an example reproducing your problem using fake data ? I am afraid that without some running example showing the problem I won’t be able to help you further.