# How to distinguish 0 from empty histogram bins

**URL:** <https://root-forum.cern.ch/t/how-to-distinguish-0-from-empty-histogram-bins/33516>\
**Category:** ROOT\
**Created:** [April 9, 2019, 5:00pm UTC](https://root-forum.cern.ch/t/how-to-distinguish-0-from-empty-histogram-bins/33516 "2019-04-09T17:00:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 10, 2019, 7:30am UTC](https://root-forum.cern.ch/t/how-to-distinguish-0-from-empty-histogram-bins/33516/4 "2019-04-10T07:30:12Z")

</div>

> [@Set palette of histogram](https://root-forum.cern.ch/t/set-palette-of-histogram/32152/5):
>
> Actually, you could have a signature for “non-empty” bins with “zero contents” … histo1D-\>Fill(x, 1.e-6); histo1D-\>Fill(x, -1.e-6); Note: [Empty bins are these that have the content equal to zero AND error equal to zero.](https://root.cern.ch/doc/master/classTH1.html#a7e7d34c91d5ebab4fc9bba3ca47dabdd)

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-distinguish-0-from-empty-histogram-bins/33516)._
