Seaborn Catplot映射yticklabels完成7点Likert s

2024-06-01 04:20:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在catplot中显示likert比例测量的结果。在

因此,我使用如下列表将值映射到它们的字符串表示形式:

likert_li = ['',
             'Strongly Disagree', 
             'Disagree',
             'More or less disagree',
             'Undecided',
             'More or less agree',
             'Agree',
             'Strongly agree']

情节如下:

^{pr2}$

使用g.set_yticklabels(likert_li)可以转换为:enter image description here

到这个地方:

enter image description here

如您所见,最后一个条目“强烈同意”未显示。在

问题:如何分别显示传递给set_yticklabels()的整个Likert刻度?在

谢谢你的帮助!在


Tags: or字符串列表moreli比例lessset