To borrow some default code with default libraries (extra helpful that you have to load the data explicitly, instead of having it polluting globals like in R...):
sns.set(style="whitegrid") tips = sns.load_dataset("tips") ax = sns.violinplot(y="day", x="total_bill", data=tips) This produces the following image:
I want to rotate the day of the week labels 90 degrees such that the baseline for those labels matches the word day, also on the Y axis.
I've looked at the answers already here, but they seem primarily to deal with (1) the X axis and (2) the first-order Y-axis label (here, the day label) rather than the Y-axis sub-labels (here, the days of the week).


ax.set_yticklabels(rotation=90)yields an error. Answer below, accepted, also notes and corrects for that.