【发布时间】:2016-12-30 04:08:49
【问题描述】:
我正在绘制以下图表:
使用以下代码:
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()
我还想旋转次要刻度:我该怎么做?
辅助问题有没有办法用一个命令同时旋转主要和次要刻度?
【问题讨论】:
标签: python matplotlib