Let us consider the following example (from Seaborn
I want to change the tick labels on the y axis, for example by prepending a number in parenthesis: (1) Southampton, (2) Cherbourg, (3) Queenstown. I have seen this
It looks like x
is the same as pos
in the lambda
. I was expecting x
to be the value of the tick label (i.e. Southampton, Cherbourg, Queenstown). What am I doing wrong?
Software versions:
matplotlib 3.4.3
seaborn 0.11.2
CodePudding user response: