相关疑难解决方法(0)

编辑seaborn传奇

在Python中使用数据框和此代码,我能够创建一个图:

g = sns.lmplot('credibility', 'percentWatched', data=data, hue = 'millennial', markers = ["+", "."], x_jitter = True, y_jitter = True, size=5)
g.set(xlabel = 'Credibility Ranking\n ? Low       High  ?', ylabel = 'Percent of Video Watched [%]')
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

但是有传说说"+ 0"和".1"对读者来说并不是很有帮助.如何编辑图例的标签?理想情况下,它不是说"千禧一代",而是说"一代"和"+千禧一代"."老一代"

python matplotlib legend seaborn

35
推荐指数
2
解决办法
5万
查看次数

标签 统计

legend ×1

matplotlib ×1

python ×1

seaborn ×1