WillKoehrsen / Data-Analysis

Data Science Using Python
https://medium.com/@williamkoehrsen/
MIT License
5.12k stars 3.63k forks source link

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

Open JessicaAI opened 1 year ago

JessicaAI commented 1 year ago

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