How to draw multiple histograms similar to VIOLINY

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?

Many thanks,
Yeung

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

Cheers,
J.

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.