【发布时间】:2015-11-30 09:47:59
【问题描述】:
我正在研究Seaborn包,遇到了奇怪的问题。
原始图形的 y 刻度标签中有 (-) 号。原图来自seaborn网页。
sns.violinplot(x="day", y="total_bill", hue="sex", data=tips, split=True);
https://stanford.edu/~mwaskom/software/seaborn/_images/categorical_23_0.png
但是,当我使用相同的代码绘制此图时,y 刻度标签中的 (-) 符号没有 (-)。
sns.violinplot(x="day", y="total_bill", hue="sex", data=tips, split=True);
我该如何解决这个问题?
【问题讨论】:
-
你指的是“负号”吗?您能给我们展示一个完整的示例(代码和/或图像)吗?
-
是的,负号。我添加了链接!
-
您使用的是什么版本的 python、Seaborn 和 matplotlib?当我使用您列出的代码时,正确显示负号 (-)。
-
我正在使用-python:3.4.3,seaborn:0.6.0,matplotlib:1.4.3。
-
你能把matplotlib更新到1.5吗?
标签: matplotlib seaborn