def m2hm(self, x, i):
        t = matplotlib.dates.num2date(x)
        h = t.hour
        m = t.minute
        return '%(h)02d:%(m)02d' % {'h':h,'m':m} if h % 2 == 1 else ''  # only for odd hours
Small function to format the time on horizontal axis - minor ticks
dataset/ETHPy150Open ericgibert/supersid/supersid/supersid_plot.py/SUPERSID_PLOT.m2hm