2. Changing the Y axis range of a TGraphErrors object:c++
3. Adjusting the Y axis tick marks and labels of a histogram:c++ TH1F* myHisto = new TH1F("myHisto", "Histogram Title", 100, 0, 100); myHisto->FillRandom("gaus", 10000); TAxis* yAxis = myHisto->GetYaxis(); yAxis->SetNdivisions(505); // set Y axis to have 5 major tick marks and 5 sub-tick marks yAxis->SetTitle("Counts"); // change Y axis label myHisto->Draw(); // draw the histogram with the modified Y axis ``` In all these examples, the GetYaxis function allowed us to retrieve or modify the properties of the Y axis of a TGraphErrors or TH1F object. The function belongs to the ROOT package library, which provides many tools for scientific data analysis and visualization in C++.