Axis labels overlapped while using TPad

When drawing two pads, one pad overlaps the axis label of the other. Is there any way to avoid this?

Can you provide an example showing this overlap ?