THStack drawing outside SetRangeUser definition

Hello! I hope you are doing well in your corner of the world!

I’m having some issues with drawing a THStack with option BAR. When I change the x-axis range using SetRangeUser, the THStack continues to draw the bins outside of the range. I have included a plot showing the issue. I also attached some sample code and ROOT file if you want to try and reproduce the issue.

I’ve poured over the THStack-related forum posts, but I haven’t found a solution. Any suggestions would be greatly appreciated! Thanks in advance!

plot_for_ROOT_forum.c (2.2 KB)

graphs_pinched_0_noOsc_argon_ar40kt.root (73.7 KB)



It worked. Thanks so much for your response!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.