# Convert canvas into histogram in root

**URL:** <https://root-forum.cern.ch/t/convert-canvas-into-histogram-in-root/16322>\
**Category:** Roofit and RooStats\
**Created:** [July 3, 2013, 9:27am UTC](https://root-forum.cern.ch/t/convert-canvas-into-histogram-in-root/16322 "2013-07-03T09:27:42Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![mendoza](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mendoza/32/26128_2.png) [@mendoza](https://root-forum.cern.ch/u/mendoza)\
**Post date:** [November 25, 2020, 10:00am UTC](https://root-forum.cern.ch/t/convert-canvas-into-histogram-in-root/16322/19 "2020-11-25T10:00:08Z")

</div>

Dear experts,

I am sorry to bother you. I am trying to implement your code in my program, but using pyroot. I can make it work and I don’t know what more to do.

Thanks for your time and I apologize again.

Diego

> [@Convert canvas into histogram in pyroot](https://root-forum.cern.ch/t/convert-canvas-into-histogram-in-pyroot/42425):
>
> Dear Users, I use PYROOT and I have a TFile with a canvas inside. I need to convert it into an histogram because I will work with it after. I have used some of the topics very related to that but it does not work, maybe because I am using PYROOT.

---

_[View the full topic](https://root-forum.cern.ch/t/convert-canvas-into-histogram-in-root/16322)._
