About Setting pad uneditable

Hello! I meet a problem when I want to set some pad uneditable.
Here I try to draw 40 similar histograms in one canvas, and I want to use just one TH1F to carry it out instead of using the method described in “$ROOTSYS/tutorials/tree/bill.c”. So I want to reuse the only TH1F by means of “TPad::SetEditable(kFALSE)”.
I wrote “c_1->SetEditable(kFALSE);” after filling and drawing the Histogram. However, it didn’t work, all the graphs are the same.
So I am wandering where the problem is? Is this way practicable?
Thank you!

Use DrawClone() instead of Draw()

Thank you for your suggestion. It works very well!:slight_smile: