python - 无法在 Seaborn 中获得虚线
问题描述
我正在尝试在 Databricks 中的同一图中绘制两个线图,我想将其中一条线设为虚线。
我试过了
#plot total fed and total programmed
sns.lineplot(data = data, x = "timestamp", y="total_programmed", linestyle='dashed', ax=axes[0], label="A")
sns.lineplot(data = data, x = "timestamp", y="total_fed", color = "darkgreen", ax=axes[0], label="B")
两条线都保持实线。我也尝试了“--”及其变体,但结果保持不变。还有哪些其他选择?
解决方案
推荐阅读
- c - C定义就地异或问题解释
- php - 连接到 Google LDAP 服务器的 SNI 问题
- gis - 将 GeoTIFF 转换为 MBTiles 时如何避免压缩?
- python - for 循环中的列表如何在 Python 中工作?
- powershell - 删除 OnPremise 共享邮箱
- angular - 更新到 Angular 11 时 BaseHref 在 scss 文件中不起作用
- python - 将选择性图像从一个文件夹移动到另一个文件夹
- botframework - 将 Bot Framework SDK 定位到 .NET 5 是否安全?
- rust - Rust 函数语法问题,示例出现在 nom
- libc++ - 如何在 Ubuntu 上为 libc++ 安装调试符号?