Draw THStack as horizontally shifted histograms

is it possible to draw a THStack by drawing the histograms on the same axes but slightly shifted horizontally relative to each other so the bars do not overlap, like this:


Thanks!

THistPainter: The bar chart option
THistPainter: The “BAR” and “HBAR” options
TH1::SetBarWidth
TH1::SetBarOffset

Ah, great, thanks a lot!
Didn’t realize that the options listed in the User’s Guide are only a subset of the ones in the Reference.

Yes, the User’s Guide gives an overview of what exists. But once you know what to use you should go to the Reference Guide for details. The reference guide is maintained in the code itself and (should) reflects all that a class can do.

[quote=“couet”][quote]
Didn’t realize that the options listed in the User’s Guide are only a subset of the ones in the Reference.
[/quote]
Yes, the User’s Guide gives an overview of what exists.[/quote]

Problem is, the User’s Guide looks in places very much like a reference. It gives long catalogs of options, with no indication that the catalog is partial. It should definitely insert pointers saying, “for the full list of options see these places in the reference”.

Thanks for help!