有人试图使用plotly在python上绘制蜡烛吗?我在尝试,但你基本上得到了所有的烛台上的时间绘制在彼此的基础上的日期。是否有一种方法来绘制输入日期和时间的小时数,以停止任何重叠?代码我从下面开始
fivedaydata.tail()
import plotly.graph_objects as go
#create 1 week graph 5 days = 120hrs
fig = go.Figure(data=[go.Candlestick(x=fivedaydata.Time,
open=fivedaydata['Open'],
high=fivedaydata['High'],
low=fivedaydata['Low'],
close=fivedaydata['Close'])])
fig.show()
相关问题 更多 >
编程相关推荐