# How to stop drawing lines on histo bins with zero content

**URL:** <https://root-forum.cern.ch/t/how-to-stop-drawing-lines-on-histo-bins-with-zero-content/4160>\
**Category:** ROOT\
**Created:** [December 3, 2006, 5:46am UTC](https://root-forum.cern.ch/t/how-to-stop-drawing-lines-on-histo-bins-with-zero-content/4160 "2006-12-03T05:46:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [December 4, 2006, 4:12pm UTC](https://root-forum.cern.ch/t/how-to-stop-drawing-lines-on-histo-bins-with-zero-content/4160/4 "2006-12-04T16:12:05Z")

</div>

You got this line because your data are stored in an histogram. Therefore with option line L, C etc … all the bins are drawn, even the empty ones. To draw only a line through the few points you have, the simplest would be to use a TGraph and draw it on top of the histogram using option L. Do you know how to put these few points in a TGraph ?  
Also, an other simple solution could be to set the histogram minimum to 0.

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-stop-drawing-lines-on-histo-bins-with-zero-content/4160)._
