# Set first axis number to draw

**URL:** <https://root-forum.cern.ch/t/set-first-axis-number-to-draw/50912>\
**Category:** ROOT\
**Created:** [July 22, 2022, 10:54am UTC](https://root-forum.cern.ch/t/set-first-axis-number-to-draw/50912 "2022-07-22T10:54:49Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [July 22, 2022, 12:58pm UTC](https://root-forum.cern.ch/t/set-first-axis-number-to-draw/50912/6 "2022-07-22T12:58:12Z")

</div>

Try:

```cpp
mg_comp_Stz_Q2->Draw("ALP");
gPad->Modified(); gPad->Update();
mg_comp_Stz_Q2->GetHistogram()->GetXaxis()->SetLimits(0.5, 69.5); /* or maybe (1., 70.) */
gPad->Modified(); gPad->Update();

```

---

_[View the full topic](https://root-forum.cern.ch/t/set-first-axis-number-to-draw/50912)._
