作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Seaborn 因子图很棒,但我如何影响线条样式(例如虚线等以提高黑白可读性)。以及如何应用“x_jitter”以使不同的置信区间不会相互遮挡?谢谢!
这是一个没有应用这些更改的示例。
>>> import seaborn as sns
>>> sns.set(style="ticks")
>>> exercise = sns.load_dataset("exercise")
>>> g = sns.factorplot(x="time", y="pulse", hue="kind", data=exercise)
最佳答案
确保包含完整解决方案的简短说明,而不仅仅是链接。
sns.factorplot
将附加参数转发给底层绘图函数。在您的示例中,sns.pointplot
用于绘制数据,您可以将参数 linewidths
和 dodge
传递给此函数:
sns.factorplot(x="time", y="pulse", hue="kind", data=exercise, dodge=0.2, linestyles='dashed')
关于python - seaborn 因子图的线型和 x_jitter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31684645/
我是 ggplot 的新手,所以请耐心等待。我正在绘制 35 个小区域地理的增长预测,即使使用了很棒的 directlabels 对于一个地块来说,这是一个不健康的数量。图书馆。但是我需要所有系列进行
在我下面的图表中,我希望图例反射(reflect)实际的线型,即“距离”的蓝线也应该在图例中用虚线表示。我如何实现这一目标? 在我的代码下面。谢谢! data <- structure(list(Ye
我有一个使用 step-before 插值的折线图(尽管如果使用 step-after,同样的问题也适用)。我希望垂直线段的颜色比水平线段的颜色浅。我怎样才能做到这一点? 最佳答案 单一路径必须是单一
我正在使用 React 和 Google Charts,我刚刚发现一个我找不到解决方案的问题。 我有这个组件 这里是数据和选项的值: const data = [ ["Year",
我是一名优秀的程序员,十分优秀!