# Error merging histograms with "similar" x range

**URL:** <https://root-forum.cern.ch/t/error-merging-histograms-with-similar-x-range/50780>\
**Category:** ROOT\
**Created:** [July 13, 2022, 10:09am UTC](https://root-forum.cern.ch/t/error-merging-histograms-with-similar-x-range/50780 "2022-07-13T10:09:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 13, 2022, 10:48am UTC](https://root-forum.cern.ch/t/error-merging-histograms-with-similar-x-range/50780/4 "2022-07-13T10:48:25Z")

</div>

The trick I’ve shown redefines “xmin” and “xmax”, leaving the number of bins unchanged, so it [“scales” the x-axis of the histogram](https://root-forum.cern.ch/t/can-we-shift-histogram-for-several-channels/12050/2).

If you now want to say that x=1000 in the second histogram directly corresponds to x=100 in the first one, then you can use this trick.

---

_[View the full topic](https://root-forum.cern.ch/t/error-merging-histograms-with-similar-x-range/50780)._
