# TProfile from a file: drawing and fitting it?

**URL:** <https://root-forum.cern.ch/t/tprofile-from-a-file-drawing-and-fitting-it/15526>\
**Category:** ROOT\
**Created:** [January 22, 2013, 5:54pm UTC](https://root-forum.cern.ch/t/tprofile-from-a-file-drawing-and-fitting-it/15526 "2013-01-22T17:54:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcoLeoncino](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/50afbb/32.png) [@MarcoLeoncino](https://root-forum.cern.ch/u/MarcoLeoncino)\
**Post date:** [January 22, 2013, 5:54pm UTC](https://root-forum.cern.ch/t/tprofile-from-a-file-drawing-and-fitting-it/15526/1 "2013-01-22T17:54:32Z")

</div>

Hello everybody,  
I’ve got a root file containing TProfile objects.  
Now I would open each of this TProfile, draw them in a TCanvas and fitting each of these profiles with a pol1 function. Is it possible?  
Thank you in advance

---

<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:** [January 22, 2013, 8:03pm UTC](https://root-forum.cern.ch/t/tprofile-from-a-file-drawing-and-fitting-it/15526/2 "2013-01-22T20:03:22Z")

</div>

[url][Aux;1 aux;2 aux3;](https://root-forum.cern.ch/t/aux-1-aux-2-aux3/13345/1)
