# Problem when rescaling Y axis

**URL:** <https://root-forum.cern.ch/t/problem-when-rescaling-y-axis/38650>\
**Category:** ROOT\
**Tags:** tree, hist, root\
**Created:** [April 1, 2020, 10:21am UTC](https://root-forum.cern.ch/t/problem-when-rescaling-y-axis/38650 "2020-04-01T10:21:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 1, 2020, 10:30am UTC](https://root-forum.cern.ch/t/problem-when-rescaling-y-axis/38650/2 "2020-04-01T10:30:04Z")

</div>

[With this code](https://root-forum.cern.ch/t/can-we-shift-histogram-for-several-channels/12050/2), “scaling” of the Y-axis works only for TH2 and TH3 histograms.  
For a TH1 histogram, only the X-axis can be “scaled” [this way](https://root-forum.cern.ch/t/can-we-shift-histogram-for-several-channels/12050/2) (i.e. you cannot change the “contents” of the histogram).

---

_[View the full topic](https://root-forum.cern.ch/t/problem-when-rescaling-y-axis/38650)._
