# Problem with accessing histogram from canvas

**URL:** <https://root-forum.cern.ch/t/problem-with-accessing-histogram-from-canvas/11307>\
**Category:** ROOT\
**Created:** [November 7, 2010, 3:22pm UTC](https://root-forum.cern.ch/t/problem-with-accessing-histogram-from-canvas/11307 "2010-11-07T15:22:53Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [October 18, 2012, 4:41pm UTC](https://root-forum.cern.ch/t/problem-with-accessing-histogram-from-canvas/11307/14 "2012-10-18T16:41:05Z")

</div>

If your histogram resides in any sub-pad, it will NOT be found by “canvas-\>GetPrimitive(…)”.  
For some solutions see here (the “MCA” resides in the “pad1”): [url][Error fitting Histo from a Canvas](https://root-forum.cern.ch/t/error-fitting-histo-from-a-canvas/15097/4)

---

_[View the full topic](https://root-forum.cern.ch/t/problem-with-accessing-histogram-from-canvas/11307)._
