WillKoehrsen / Data-Analysis

Data Science Using Python

Home Page:https://medium.com/@williamkoehrsen/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError" occurred with the message "rotation must be 'vertical', 'horizontal' or a number, not 45"

JessicaAI opened this issue · comments

When executing the code "increase, decrease = tsmc.predict_future(days = 100)", a "ValueError" occurred with the message "rotation must be 'vertical', 'horizontal' or a number, not 45".

The code has been updated as follows:

plt.legend(loc = 2, prop={'size': 10});
plt.xticks(rotation='vertical')
plt.ylabel('Predicted Stock Price (US $)');
plt.xlabel('Date'); plt.title('Predictions for %s' % self.symbol);
plt.show()

However, the same issue persists. Please debug.
stock_2330.zip