I would like to remove seconds from my labels on the x axis, since they are not needed.
I also want to center the labels of the labels in the center, rather than placing them to the left of the labels.
Any suggestions on how to do this?
Here are some of the code I used if this helps
fig=plt.figure() ax=fig.add_subplot(111) line1 = plot(table.index,table[data],color=colors[0]) fig.autofmt_xdate(rotation=0) tickFormat = matplotlib.ticker.LinearLocator(numticks=5) ax.xaxis.set_major_locator(tickFormat)

source share