# How to draw multiple histograms similar to VIOLINY

**URL:** <https://root-forum.cern.ch/t/how-to-draw-multiple-histograms-similar-to-violiny/48350>\
**Category:** Newbie\
**Tags:** hist, root\
**Created:** [January 12, 2022, 8:59am UTC](https://root-forum.cern.ch/t/how-to-draw-multiple-histograms-similar-to-violiny/48350 "2022-01-12T08:59:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeung](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/yeung/32/15884_2.png) [@Yeung](https://root-forum.cern.ch/u/Yeung)\
**Post date:** [January 12, 2022, 8:59am UTC](https://root-forum.cern.ch/t/how-to-draw-multiple-histograms-similar-to-violiny/48350/1 "2022-01-12T08:59:37Z")

</div>

Dear experts,

I have several normalized TH1 stored in a root file with identical binning (1000 bins). Is it possible to draw these TH1 vertically offset in one pad, similar to the “violiny” option used in this [tutorial figure](https://root.cern.ch/doc/master/pict1_THistPainter_026.png)?

Many thanks,  
Yeung

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [January 12, 2022, 12:58pm UTC](https://root-forum.cern.ch/t/how-to-draw-multiple-histograms-similar-to-violiny/48350/2 "2022-01-12T12:58:02Z")

</div>

Hi @Yeung; I am sure @couet can help you with this.

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 12, 2022, 1:46pm UTC](https://root-forum.cern.ch/t/how-to-draw-multiple-histograms-similar-to-violiny/48350/3 "2022-01-12T13:46:35Z")

</div>

Not really possible with normal 1D histograms. You can divide the canvas vertically using Divide() with a nul margin between each pad and plot the histograms you want in each pad. But you will not have a common Y scale.
