# Redraw TH1 and omit the empty histos

**URL:** <https://root-forum.cern.ch/t/redraw-th1-and-omit-the-empty-histos/15858>\
**Category:** ROOT\
**Created:** [March 29, 2013, 1:19am UTC](https://root-forum.cern.ch/t/redraw-th1-and-omit-the-empty-histos/15858 "2013-03-29T01:19:30Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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 29, 2013, 12:49pm UTC](https://root-forum.cern.ch/t/redraw-th1-and-omit-the-empty-histos/15858/8 "2013-03-29T12:49:55Z")

</div>

See: [url][SetAxisRange(0.0,1.0,"Y"); is ineffective](https://root-forum.cern.ch/t/setaxisrange-0-0-1-0-y-is-ineffective/14040/1)

Note: you MUST draw the THStack BEFORE you can retrieve its x-axis. You might also make sure that it is really drawn by calling “gPad-\>Modified(); gPad-\>Update();”.

---

_[View the full topic](https://root-forum.cern.ch/t/redraw-th1-and-omit-the-empty-histos/15858)._
