I would like to draw two canvases into a new canvas (one in the top pad and the other in the bottom), and move the palette of the bottom pad to the middle of the new canvas. By dragging the palette axis with the mouse, it can be moved only inside the bottom pad.
Besides, an error occurs when I run the macro: Error in <TCanvas::SetRealAspectRatio>: Resizing failed.
macro and root file
void Draw() {
auto f = TFile::Open("test.root"));
auto c0 = f->Get<TCanvas>("c0_91000");
auto c1 = f->Get<TCanvas>("cXYPad_91000");
// c1->GetListOfPrimitives()->ls();
auto c = new TCanvas("c", "", 600, 1000);
c->Divide(1,2);
c->cd(1);
c0->DrawClonePad();
c->cd(2);
c1->SetRealAspectRatio();
c1->DrawClonePad();
}