// create a TGraph object TGraph graph(n, x, y); // access the X-axis and set its range graph.GetXaxis()->SetRangeUser(xmin, xmax);
// create a TGraph object TGraph graph(n, x, y); // access the X-axis and set its label graph.GetXaxis()->SetTitle("Time (s)");In this example, the `SetTitle` method is used to set the label of the X-axis to "Time (s)". Both examples use the ROOT package's TGraph class.