Dear root,
I have 2 TCanvas objects in a file and would like to draw both in two different pads of a third TCanvas, how can I do that?
I’m using root 5.13 under OS 10.4
Thanks,
Nicolas
Dear root,
I have 2 TCanvas objects in a file and would like to draw both in two different pads of a third TCanvas, how can I do that?
I’m using root 5.13 under OS 10.4
Thanks,
Nicolas
see example below:
[code]Root [0] TFile f(“c1.root”);
Root [1] TCanvas c1 = (TCanvas)f.Get(“c1”);
Root [2] TCanvas *c2 = new TCanvas(“c2”);
Root [3] c2->Divide(2,2);
Root [4] c2->cd(3);
Root [5] c1->DrawClonePad();
Root [6] c2->cd(4);
Root [7] c1->DrawClonePad();
[/code]Rene
Note that TCanvas::DrawClonePad is available from the canvas context menu.