情节 - 填充三行之间的区域 - 如何删除此深色阴影
fig = go.Figure(layout_yaxis_range=[0,10])
fig.add_traces(go.Scatter(
x=df['date'],
y=df['25 Percentile'],
name = '25th Percentile',
mode='text',
line=dict(color='blue'),
fill='tonext',
fillcolor='grey',
connectgaps=False
))
fig.add_traces(go.Scatter(
x=df['date'],
y=df['Median'],
name = 'Median',
mode='lines',
line=dict(color='green'),
fill='tonexty',
fillcolor='#eaecee',
connectgaps=False
))
fig.add_traces(go.Scatter(
x=df['date'],
y=df['75 Percentile'],
name = '75th Percentile',
mode='text',
line=dict(color='blue'),
fill='tonexty',
fillcolor='#eaecee',
connectgaps=False
))
fig.update_layout(template='plotly_white')
fig.show()
我试图填补三行之间的区域,但无法摆脱这种黑暗的阴影。 我试图通过将其更改为所有可用值来确保填充=''参数是正确的,但不确定哪个参数可以工作。
如何删除这个黑暗的阴影?
fig = go.Figure(layout_yaxis_range=[0,10])
fig.add_traces(go.Scatter(
x=df['date'],
y=df['25 Percentile'],
name = '25th Percentile',
mode='text',
line=dict(color='blue'),
fill='tonext',
fillcolor='grey',
connectgaps=False
))
fig.add_traces(go.Scatter(
x=df['date'],
y=df['Median'],
name = 'Median',
mode='lines',
line=dict(color='green'),
fill='tonexty',
fillcolor='#eaecee',
connectgaps=False
))
fig.add_traces(go.Scatter(
x=df['date'],
y=df['75 Percentile'],
name = '75th Percentile',
mode='text',
line=dict(color='blue'),
fill='tonexty',
fillcolor='#eaecee',
connectgaps=False
))
fig.update_layout(template='plotly_white')
fig.show()
I'm trying to fill area between three lines But can't get rid of this dark shadows.
I have tried to make sure fill='' parameter is right by changing it to all available values but not sure which one will work.
How do i remove this dark shadows?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
mode =“ text”
已更改为mode =“ lines”
fill =“ tonexty”
百分位轨迹a href =“ https://i.sstatic.net/hvy3e.png” rel =“ nofollow noreferrer”>
mode="text"
have changed tomode="lines"
fill="tonexty"
on percentile traces