Home > Software engineering >  How to customize the text ticklabels for each subplot of a seaborn catplot
How to customize the text ticklabels for each subplot of a seaborn catplot

Time:11-04

Let us consider the following example (from Seaborn enter image description here

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 enter image description here

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:

  • Similar to the answers for enter image description here

  • Related