from solar import * import matplotlib.pyplot as plt import matplotlib.dates as mdates from datetime import * cdf = openCDF("NTCD5036") epoch = cdf["Epoch"] temp = cdf["NTCD5036_eng"] fmt = mdates.DateFormatter ("%H:%M") fig, ax = plt.subplots() xmin = datetime (2020,11,26,0,0,0) xmax = xmin + timedelta (days = 2) ax.plot (epoch, temp) ax.set_autoscale_on (True) # ax.xaxis.set_major_formatter (fmt) # ax.set (xlim = (xmin, xmax)) fig.autofmt_xdate() plt.show()