Python Plotly-带图案、边界和值的Rangebreaks一起不起作用
我尝试使用下面的代码,它有基于每小时模式的rangebreaks+基于周末的bound rangebreaks+基于日期的rangebreaks值 下面的代码可以很好地工作,如果我有基于模式和基于周末的边界rangebreaks(两者同时进行),或者只是基于日期的值rangebreaks,当我添加所有3个值时,它不会显示绘图Python Plotly-带图案、边界和值的Rangebreaks一起不起作用,python,plotly,plotly-python,Python,Plotly,Plotly Python,我尝试使用下面的代码,它有基于每小时模式的rangebreaks+基于周末的bound rangebreaks+基于日期的rangebreaks值 下面的代码可以很好地工作,如果我有基于模式和基于周末的边界rangebreaks(两者同时进行),或者只是基于日期的值rangebreaks,当我添加所有3个值时,它不会显示绘图 fig1.update_xaxes( rangebreaks=[ dict(pattern="hour", bounds=[15
fig1.update_xaxes(
rangebreaks=[
dict(pattern="hour", bounds=[15.6, 9.25]),
dict(bounds=["sat", "mon"]),
dict(values=["2020-11-16"]),
]
)
我试着像下面那样将其分离出来,但我发现基于日期/值的rangebreaks没有应用到最终的绘图中:
fig1.update_xaxes(
rangebreaks=[
dict(pattern="hour", bounds=[15.6, 9.25]),
dict(bounds=["sat", "mon"]),
]
)
fig1.update_xaxes(
rangebreaks=[dict(values=["2020-11-16"]),]
)
有人能帮我一下吗?我怎样才能把这三个功能结合起来,让它们发挥作用