neuniversity / ALY6140

1 stars 3 forks source link

Problem about Constructing xlabel in Boxplot #21

Open hansu101 opened 5 years ago

hansu101 commented 5 years ago

Hi all, I am struggling with constructing the xlabel in the third question. I set plt.xlable('Sun','Sat','Fri') plt.ylabel('Dollars') It does not work. How can we set the xlabel correctly?

Thanks!!

siuol456 commented 5 years ago

So I think label is for the big title. Instead you should use this plt.gca().set_xticklabels() ,then you can create some sub labels.

ghost commented 5 years ago

Do you solve this problem? I think if you already set up the value of x, y, the plot would directly show the label.

2018-12-04 3 07 19
hansu101 commented 5 years ago

Oh, thank you so much, guys! I have already resolved this problem. Thanks