Normally, one defines a canvas and immediately adds everything relevant to it. You don’t need to access a canvas after you’ve moved on to other canvases.
However, I’m writing a program that takes an array of data files, and iterates through them, adding their contents to the graphs. So I need to be able to add to previous canvases.
I’m looking for something like, gROOT->GetCanvas(c1);, so that if I do graph1->Draw("same"); then graph1 ends up on the canvas c1.
ROOT Version: 6.10/04 Platform: Ubuntu 18.04 on Windows Compiler: Cling