code: def nsamples_to_hourminsec(x, pos):
      '''Convert axes labels to experiment duration in hours/minutes/seconds
  
      Notes
      -----
      Matplotlib FuncFormatter function
      https://matplotlib.org/examples/pylab_examples/custom_ticker1.html
      '''
  
      h, m, s = hourminsec(x/16.0)
      return '{:.0f}h {:2.0f}′ {:2.1f}″'.format(h, m, sf nsamples_to_hourminsec(x, pos):
      '''Convert axes labels to experiment duration in hours/minutes/seconds
  
      Notes
      -----
      Matplotlib FuncFormatter function
      https://matplotlib.org/examples/pylab_examples/custom_ticker1.html
      '''
  
      h, m, s = hourminsec(x/16.0)
      return '{:.0f}h {:2.0f}′ {:2.1f}″'.format(h, m, s)
docs: Convert axes labels to experiment duration in hours/minutes/seconds
  
      Notes
      -----
      Matplotlib FuncFormatter function
      https://matplotlib.org/examples/pylab_examples/custom_ticker1.html