GetAxis in TPad/TCanvas


is there any way to get access/modify the axis, which determines the scale for the current TPad/TCanvas?

Let’s assume that I have a TCanvas, which is created in my code, then some histograms, graphs etc are drawn in it. Only one of them draws the axes, the others are superimposed. So if I want to modify the parameters of this axis, how do I get the name of the object (histogram, graph), whose axis should be modified?

it depends how you do that, but if you have histograms plotted with option same on top of each other. it is enough to access the first histogram, the one you plotted without the option same.