How to draw a histogram with markers like the picture below?
I added the markers using code " h1->SetMarkerStyle(21); h1->SetMarkerColor(color[k]); "
When I draw the histogram using “h1->DrawNormalized(“hist”);”, the markers didn’t show. I tried “h1->DrawNormalized(“histP”);”, the makers appeared while the histogram line didn’t show.
How can I make the style look like this picture below?
Thanks for your attention.
I know this method. I also wanna draw the histogram lines like the pictures I shown.
I don’t know if it’s a bug or just a missing feature, but you can try drawing the histo twice, first with “hist” and then with “same,hist,P”.
thanks. It works.
Thanks for your help.
I got it now. It needs to draw twice.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.