python使用plotly绘制没有日期间隙的时间序列

con*_*001 6 python plotly

我正在使用python3.我有1分钟频率的报价系列.报价仅在交易时间内提供.我尝试使用plotly绘制它,但在非交易时间和周末有差距.我怎样才能使这个情节连续?

我的代码就像

ifBasisPlot=go.Scatter( x=ifBasis.date, y=ifBasis.basis, line=go.Line(width=1,color='blue'), name='basis' )

data = go.Data([ifBasisPlot])

ifBasisPlot_url = py.plot(data, filename='ifBasisPlot', auto_open=False,)
Run Code Online (Sandbox Code Playgroud)

情节和数据在这里:https://plot.ly/~shuaihou96/14/if/

Pau*_*ong 1

我相信这个阴谋项目有一个公开的公关。关联

正如 PR 中提到的,我们可以使用tickformatx 轴属性;@etpinard 制作了概念证明图表,但如果涉及缩放,则可能不起作用。