# Opening two .root file in the same canvas

**URL:** <https://root-forum.cern.ch/t/opening-two-root-file-in-the-same-canvas/12562>\
**Category:** ROOT\
**Created:** [June 9, 2011, 8:52am UTC](https://root-forum.cern.ch/t/opening-two-root-file-in-the-same-canvas/12562 "2011-06-09T08:52:56Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [June 10, 2011, 9:16am UTC](https://root-forum.cern.ch/t/opening-two-root-file-in-the-same-canvas/12562/16 "2011-06-10T09:16:43Z")

</div>

These file contains Canvases not histrograms … You are mixing up many diferents things…

```auto
root [0] TFile f("essai1_2.root")
root [1] f.ls()
TFile** essai1_2.root	
 TFile* essai1_2.root	
  KEY: TCanvas	Canvas 1;1	Canvas 1
root [2] TCanvas *c = f.Get("Canvas 1");
root [3] c.Draw()
```

---

_[View the full topic](https://root-forum.cern.ch/t/opening-two-root-file-in-the-same-canvas/12562)._
