# Set palette of histogram

**URL:** <https://root-forum.cern.ch/t/set-palette-of-histogram/32152>\
**Category:** ROOT\
**Created:** [January 2, 2019, 4:25pm UTC](https://root-forum.cern.ch/t/set-palette-of-histogram/32152 "2019-01-02T16:25:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [January 7, 2019, 1:43pm UTC](https://root-forum.cern.ch/t/set-palette-of-histogram/32152/5 "2019-01-07T13:43:16Z")

</div>

Actually, you could have a signature for “non-empty” bins with “zero contents” …

```auto
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/set-palette-of-histogram/32152)._
