Placing a custom label on a TGraph

Pls how can I label a specific point on my graph.

Lets say I have x = 5, y = 0.9… and I want to place a TString label at this location on a TGraph.

TText
TLatex
TMathText
Search for “text” in “ROOT Reference Guide” -> “Graphics” -> “2D Graphics” -> “Basic graphics”.

In case you want the label really “attached” to the point i.e.: the label moves when you move the point, you can have a look at this example.

thanks… i saw this previously

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