# Histogram plot

**URL:** <https://root-forum.cern.ch/t/histogram-plot/56903>\
**Category:** Newbie\
**Tags:** hist, root\
**Created:** [October 28, 2023, 5:42am UTC](https://root-forum.cern.ch/t/histogram-plot/56903 "2023-10-28T05:42:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manisha\_Rana](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/manisha_rana/32/34574_2.png) [@Manisha\_Rana](https://root-forum.cern.ch/u/Manisha_Rana)\
**Post date:** [October 28, 2023, 5:42am UTC](https://root-forum.cern.ch/t/histogram-plot/56903/1 "2023-10-28T05:42:09Z")

</div>

Hi everyone !  
How We can Draw a gaussion for diffrent values of (mean x) in the same Histogram ?

* * *

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [October 28, 2023, 7:12am UTC](https://root-forum.cern.ch/t/histogram-plot/56903/2 "2023-10-28T07:12:32Z")

</div>

Hello,

You can always draw functions on the same canvas with the `"same"` option.

```cpp
auto g0 = TF1("gaus0","gaus",-10,10);
g0.SetParameters(2,2,2);
auto g1 = TF1("gaus0","gaus",-10,10);
g1.SetParameters(1,1,1);

g0.Draw()
g1.Draw("Same")

```

I hope this helps.

Best,  
D
