Edit of original Post below: With DrawClonePad() on the original canvas I can get the wanted behavior. Unless somebody has a better idea, the thread can already be closed.
I have the following problem:
I have a macro which takes a large number (> 10 k) of histograms from separate input files and plots them into TCanvases (i.e. for 2 input files each canvas contains 2 histograms).
Having done this, I would like to do the following: Take any two (or more) canvases and combine them into a single canvas which is split in two (or more) subpads, where one subpad is identical to one of the initial canvases.
I made some simple-minded things like getting the Pad from the canvas and tried to simply draw this into the final canvas, but this did not work at least the way I did it.
Any suggestions are welcome.