Draw the same Th1 on divided canvas with different formatting

Hi, as suggested in the topic, I want to have different formatting (not only the ranges as demonstrated in the following code). but what i got is that the 2nd formatting is used. how to get them different ?

c = r.TCanvas("cc","c",1200,600)
c.Divide(2,1)
c.cd(1)
hist1.GetXaxis().SetRangeUser(30,35)
hist1.Draw("p e")


c.cd(2)
hist1.GetXaxis().SetRangeUser(30,350)
hist1.Draw("p e")

c.Draw()
```___
_ROOT Version:_ 6.26.00 (conda-forge)
_Platform:_ ubuntu 20.04 (wsl)
_Compiler:_ gcc9
___

hist1.DrawCopy("p e", "")

Note: histograms have a dedicated TH1::DrawCopy method.

Oh, I see.
This remind me that there is a similar DrawClone(). Any difference ?

In the present case that will be similar.

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