# Drawing histograms to the same canvas without overlaps

**URL:** <https://root-forum.cern.ch/t/drawing-histograms-to-the-same-canvas-without-overlaps/26162>\
**Category:** ROOT\
**Created:** [September 8, 2017, 7:37pm UTC](https://root-forum.cern.ch/t/drawing-histograms-to-the-same-canvas-without-overlaps/26162 "2017-09-08T19:37:08Z")\
**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:** [September 11, 2017, 8:43am UTC](https://root-forum.cern.ch/t/drawing-histograms-to-the-same-canvas-without-overlaps/26162/4 "2017-09-11T08:43:13Z")

</div>

> [@Can we shift histogram for several channels?](https://root-forum.cern.ch/t/can-we-shift-histogram-for-several-channels/12050/2):
>
> I’m not sure if this is fully kosher, but suit yourself : #include "TAxis.h" #include "TH1.h" #include "TArrayD.h" Double\_t ScaleX(Double\_t x) { Double\_t v; v = 10 \* x + 100; // "linear scaling" function example return v; } Double\_t ScaleY(Double\_t y) { Double\_t v; v = 20 \* y + 200; // "linear scaling" function example return v; } Double\_t ScaleZ(Double\_t z) { Double\_t v; v = 30 \* z + 300; // "linear scaling" function example return v; } void ScaleAxis(TAxis \*a, Double\_t (…

[https://root.cern.ch/root/roottalk/roottalk03/2763.html](https://root.cern.ch/root/roottalk/roottalk03/2763.html)

---

_[View the full topic](https://root-forum.cern.ch/t/drawing-histograms-to-the-same-canvas-without-overlaps/26162)._
