Rotate minor ticks in matplotlib

后端 未结 3 917
遇见更好的自我
遇见更好的自我 2020-12-11 02:52

I am plotting the following chart :

with the following code:

fig, ax = plt.subplots(figsize=(20, 3))
mpf.candlestick_ohlc(ax,quotes, width=0         


        
3条回答
  •  臣服心动
    2020-12-11 03:46

    You may rotate by code of one line plt.setp(ax.xaxis.get_minorticklabels(), rotation=90).

提交回复
热议问题