TLatex latex; latex.SetNDC(); latex.SetTextAlign(22); latex.DrawLatexNDC(0.5, 0.5, "f(x) = e^{-x^{2}}");
TLatex latex; latex.SetNDC(); latex.SetTextAlign(22); latex.DrawLatexNDC(0.1, 0.9, "#sigma");In this example, we again create a TLatex object and set the coordinates to NDC. We also center the text and pass the x and y positions (0.1, 0.9) to DrawLatexNDC() to place the sigma symbol at the top-left corner of the canvas. These examples were demonstrated using the ROOT package library, which is commonly used in high-energy physics for data analysis and visualization.