3
我绘制如下图:matplotlib - 旋转次刻度
用下面的代码:
fig, ax = plt.subplots(figsize=(20, 3))
mpf.candlestick_ohlc(ax,quotes, width=0.01)
ax.xaxis_date()
ax.xaxis.set_minor_locator(mpl.dates.HourLocator(interval=4))
ax.xaxis.set_minor_formatter(mpl.dates.DateFormatter('%H:%M'))
plt.xticks(rotation = 90)
plt.grid(True)
plt.show()
我想也旋转次刻度:我会怎么做那?
子公司的问题是有没有办法转动通过一个命令主要和次要刻度?
哦!这是非常容易和清晰。 – Lucas