I do not completly understand what you would like to achieve. Can you send a small running example showing what you are doing, and what you think is going wrong ?
Do you mean to send the input data file and the definition of the source cuts? But in words, I wanted the faint source to sit on top of the background and be coloured differently. Of course this works great in the manual for 1-d plots.
The only missing code is the opening of the file and the definition of the source and background cuts. 175 events survive the source cut. But notice that the lego plot looks weird - that is exactly how it appeared in the canvas - no stretching effects etc in display.
I do not understand how you can get this plot with the few lines you sent. You draw many times “hs” … there is some red involved … I see no red … so that’s why I ask for a small running example which reproduces your problem … I do not want all your data … just a small running example
Nowhere you set the colors for your histograms.
Could you send teh THstack object in a ROOT file and post it
TFile f(“stack.root”,“recreate”);
hs->Write();