I would like to use matplotlib and Axes.pcolormesh to create the plot. My problem is that I want to have dates along the x axis:
import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) qmesh = ax.pcolormesh(times,mlt,data.T) fig.colorbar(qmesh,ax=ax)
in this code, times is a numpy array (1D) created using matplotlib.dates.date2num . This creates a perfectly reasonable plot, except that the x-axis marks values โโof the order of 1e5 instead of dates / times in the format '%H:%M' . We appreciate any suggestions. Thanks.
source share