# Displaying the best fit parameters on a plot

**URL:** <https://root-forum.cern.ch/t/displaying-the-best-fit-parameters-on-a-plot/33412>\
**Category:** Newbie\
**Created:** [April 2, 2019, 9:41am UTC](https://root-forum.cern.ch/t/displaying-the-best-fit-parameters-on-a-plot/33412 "2019-04-02T09:41:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thabo\_Lepota](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Post date:** [April 2, 2019, 9:41am UTC](https://root-forum.cern.ch/t/displaying-the-best-fit-parameters-on-a-plot/33412/1 "2019-04-02T09:41:39Z")

</div>

Hi everyone

I’d like to display the best fit parameters on the plots, how do it do that  
i have attached the marco i have been working on  
thanks advance  
[basichist.c](https://root-forum.cern.ch/uploads/default/original/3X/8/b/8b11d1f2d7674409b481e6c975a2451a9f693580.c) (5.7 KB)

---

<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:** [April 2, 2019, 10:05am UTC](https://root-forum.cern.ch/t/displaying-the-best-fit-parameters-on-a-plot/33412/2 "2019-04-02T10:05:17Z")

</div>

[`gStyle->SetOptFit();`](https://root.cern.ch/doc/master/classTStyle.html#aedeb1d117d9f16af9f8ad430bf956d64)

---

<div class="post-metadata">

**Author:** ![Thabo\_Lepota](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Post date:** [April 2, 2019, 10:23am UTC](https://root-forum.cern.ch/t/displaying-the-best-fit-parameters-on-a-plot/33412/3 "2019-04-02T10:23:13Z")

</div>

Thank you, I used getStyle-\>SetOptFit(1011) ;

---

<div class="post-metadata">

**Author:** ![Thabo\_Lepota](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Post date:** [April 8, 2019, 8:53am UTC](https://root-forum.cern.ch/t/displaying-the-best-fit-parameters-on-a-plot/33412/4 "2019-04-08T08:53:42Z")

</div>

I was wondering if it is possible to use a low pass filter in one of my plots, if so how would i go about doing so?
