code: def tick_length_pixels(pad, xaxis, yaxis, xlength, ylength=None):
      
      if ylength is None:
          ylength = xlength
      xaxis.SetTickLength(xlength / float(pad.height_pixels))
      yaxis.SetTickLength(ylength / float(pad.width_pixels))
docs: Set the axes tick lengths in pixels