不要なため、x 軸のラベルから秒を削除したいと思います。
また、目盛りの左側に配置するのではなく、目盛りラベルを中央に揃えたいと思います。
これを行う方法に関する提案はありますか?
これが役立つ場合に使用したコードの一部を次に示します
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)