I am plotting the following chart :
with the following code:
fig, ax = plt.subplots(figsize=(20, 3)) mpf.candlestick_ohlc(ax,quotes, width=0
You may rotate by code of one line plt.setp(ax.xaxis.get_minorticklabels(), rotation=90).
plt.setp(ax.xaxis.get_minorticklabels(), rotation=90)