I’m trying to put some text on a plot with few histograms, near each line, and it seems the only way so far is to manually position it. I’m wondering, if there is a possibility to determine coordinates within the pad/canvas of a certain point from a histogram (or a graph), so I can then anchor my text label to it? I couldn’t find any way to do that. Thanks.
I’m afraid you misunderstood me. I can draw text in whatever coordinate system ROOT has, but I need to know the coordinates of the point where the histogram marker is placed, in whatever coordinate system there is. And there seem to be no way to find these coordinates, which is surprising.
Dear experts,
I came to this thread because it sounds similar to what I need.
I would like to draw TPaveText whose “x2” coordinates match the “up edge” of a certain bin. Is it possible to achieve this in ROOT?
It looks like I need to get the NDC of a given bin or something similar.