# How to fill the area under the TF1 fitted curve?

**URL:** <https://root-forum.cern.ch/t/how-to-fill-the-area-under-the-tf1-fitted-curve/57179>\
**Category:** ROOT\
**Tags:** roofit\
**Created:** [November 20, 2023, 7:59pm UTC](https://root-forum.cern.ch/t/how-to-fill-the-area-under-the-tf1-fitted-curve/57179 "2023-11-20T19:59:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divyang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/7ea924/32.png) [@Divyang](https://root-forum.cern.ch/u/Divyang)\
**Post date:** [November 20, 2023, 7:59pm UTC](https://root-forum.cern.ch/t/how-to-fill-the-area-under-the-tf1-fitted-curve/57179/1 "2023-11-20T19:59:56Z")

</div>

Hello everyone,

I want to highlight certain region under the TF1 fitted curve.

The image below summarizes my question. The green area is from the first Gaussian-like fitted curve. The brown area is from the second Gaussian fit. So, how to fill color only in the region of interest?

 ![area](https://root-forum.cern.ch/uploads/default/original/3X/b/e/bef96325c824c4f5a0f456e23a672baf7e0253dc.jpeg)

_ROOT Version:_ 6.24/08

Best,  
Divyang.

---

<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:** [November 21, 2023, 6:46am UTC](https://root-forum.cern.ch/t/how-to-fill-the-area-under-the-tf1-fitted-curve/57179/2 "2023-11-21T06:46:46Z")

</div>

> [@Divyang](#):
>
> how to fill color only in the region of interest?

Which is what ?

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 5, 2023, 6:46am UTC](https://root-forum.cern.ch/t/how-to-fill-the-area-under-the-tf1-fitted-curve/57179/3 "2023-12-05T06:46:55Z")

</div>

Closed on December 5, 2023, 6:46am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
