从Plotly Express区域图中删除系列边界线
px.area
在每个区域系列上显示一条线。如何删除它?
文档仅显示如何显示如何显示要从GO.Scatter
呼叫中删除行(带有mode ='none''
)。
这是一个示例(
import plotly.express as px
px.area(y=[[1, 2, 3], [0, 0, 1]])
px.area
shows a line atop each area series. How can I remove it?
The documentation only shows how to remove lines from go.Scatter
calls (with mode='none'
).
Here's an example (notebook), where I'd like to remove the dark blue and red lines atop the light blue and red areas, respectively (to avoid the perception that the red series is nonzero where it stacks atop the blue series):
import plotly.express as px
px.area(y=[[1, 2, 3], [0, 0, 1]])
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iiuc这是您要寻找的:
如果您想要
lines
与traces
相同的颜色:/I.SSTATIC.NET/1TT3S.png“ rel =“ noreferrer 您想要
traces
与lines
相同的颜色:IIUC this is what you're looking for:
Before:
If you want
lines
same color astraces
:If you want
traces
same color aslines
: