# Simple Histogram Cosmetic Question

**URL:** <https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272>\
**Category:** ROOT\
**Created:** [June 24, 2013, 2:14am UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272 "2013-06-24T02:14:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidC](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/a183cd/32.png) [@DavidC](https://root-forum.cern.ch/u/DavidC)\
**Post date:** [June 24, 2013, 2:14am UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272/1 "2013-06-24T02:14:22Z")

</div>

Hello,  
I am wondering how to create a histogram that displays markers (or data points) instead of bins. Is there an easy way I can do this?  
Thanks,  
David

---

<div class="post-metadata">

**Author:** ![honk](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/honk/32/11273_2.png) [@honk](https://root-forum.cern.ch/u/honk)\
**Post date:** [June 24, 2013, 7:20am UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272/2 "2013-06-24T07:20:58Z")

</div>

Did you try to draw with e.g. the “P” option? You can change the marker style with TH1::SetMarkerStyle or in the right-click menu. Also read [root.cern.ch/root/html/THistPainter.html#HP01b](http://root.cern.ch/root/html/THistPainter.html#HP01b)

---

<div class="post-metadata">

**Author:** ![DavidC](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/a183cd/32.png) [@DavidC](https://root-forum.cern.ch/u/DavidC)\
**Post date:** [June 24, 2013, 1:14pm UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272/3 "2013-06-24T13:14:18Z")

</div>

Perfect! I didn’t see that in the user guide.  
Thanks a bunch.

---

<div class="post-metadata">

**Author:** ![Roy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/roy/32/30362_2.png) [@Roy](https://root-forum.cern.ch/u/Roy)\
**Post date:** [March 24, 2022, 1:46am UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272/4 "2022-03-24T01:46:49Z")

</div>

I wanted to insert the vertical line for uncertainty in my histogram points,  
How can I do that?

Thank You in advance.

---

<div class="post-metadata">

**Author:** ![yus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/9fc348/32.png) [@yus](https://root-forum.cern.ch/u/yus)\
**Post date:** [March 24, 2022, 10:21am UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272/5 "2022-03-24T10:21:03Z")

</div>

Hi Roy,

try the “PE” option.

---

<div class="post-metadata">

**Author:** ![Roy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/roy/32/30362_2.png) [@Roy](https://root-forum.cern.ch/u/Roy)\
**Post date:** [March 24, 2022, 8:41pm UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272/6 "2022-03-24T20:41:12Z")

</div>

Hi yus,  
I tried using PE but it didn’t gave the expected result,  
I am looking to add binomial uncertainty to my plot but I tried using different control but didn’t worked.

Thank You.

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [March 28, 2022, 7:50am UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272/7 "2022-03-28T07:50:54Z")

</div>

> [@Roy](#):
>
> I wanted to insert the vertical line for uncertainty in my histogram points,  
> How can I do that?

Maybe @couet can help you with this.

Cheers,  
J.

---

<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:** [March 28, 2022, 7:52am UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272/8 "2022-03-28T07:52:16Z")

</div>

> [@Roy](#):
>
> I wanted to insert the vertical line for uncertainty in my histogram points,  
> How can I do that?

I would suggest you simply draw a TLine ?

---

<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:** [March 28, 2022, 7:53am UTC](https://root-forum.cern.ch/t/simple-histogram-cosmetic-question/16272/9 "2022-03-28T07:53:08Z")

</div>

> [@Binomial Distribution](https://root-forum.cern.ch/t/binomial-distribution/49353):
>
> I wanted to know if there is anyway to include the vertical bar of binomial uncertainty itself in the plot in histogram.
