# Combining root canvases

**URL:** <https://root-forum.cern.ch/t/combining-root-canvases/20849>\
**Category:** ROOT\
**Created:** [March 22, 2016, 10:18pm UTC](https://root-forum.cern.ch/t/combining-root-canvases/20849 "2016-03-22T22:18:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [March 22, 2016, 10:54pm UTC](https://root-forum.cern.ch/t/combining-root-canvases/20849/2 "2016-03-22T22:54:24Z")

</div>

> [@Opening a histogram from a file](https://root-forum.cern.ch/t/opening-a-histogram-from-a-file/18101/2):
>
> Execute the following and post the output here: TFile \*f = TFile::Open(“first\_file.root”); f-\>ls(); c1-\>Draw(); c1-\>GetListOfPrimitives()-\>Print(); See also, for example:

> [@How to get the content of a TPad/TCanvas](https://root-forum.cern.ch/t/how-to-get-the-content-of-a-tpad-tcanvas/18526/2):
>
> gROOT-\>GetListOfCanvases()-\>ls() gROOT-\>GetListOfCanvases()-\>At(0)-\>ls() ((TCanvas\*)(gROOT-\>GetListOfCanvases()-\>At(0)))-\>ls() ((TCanvas\*)(gROOT-\>GetListOfCanvases()-\>At(0)))-\>GetListOfPrimitives()-\>ls() ((TCanvas\*)(gROOT-\>GetListOfCanvases()-\>At(0)))-\>GetListOfPrimitives()-\>At(0)-\>ls() ((TPad\*)(((TCanvas\*)(gROOT-\>GetListOfCanvases()-\>At(0)))-\>GetListOfPrimitives()-\>At(0)))-\>ls() ((TPad\*)(((TCanvas\*)(gROOT-\>GetListOfCanvases()-\>At(0)))-\>GetListOfPrimitives()-\>At(0)))-\>GetListOfPrimitives()-\>ls()…

---

_[View the full topic](https://root-forum.cern.ch/t/combining-root-canvases/20849)._
