How to fix the content of sub canvas of TCanvas?

Hi all,
I am drawing a series of histograms which corresponding to different cuts.
A same histogram are filled with different contents when every TCanvas::cd(1,2,3…) command is executed.
But every divided canvas have same content because the histogram are updated like:

How can I fix the content of each sub canvas?

The problem is kind of vague without showing the code you are using, so it’s better if you also show that. In any case, maybe you can use h->DrawCopy() on each pad, instead of h->Draw().

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