Plotly绘制时间序列图实战:简单时序图、时间范围限制的时序图
# 简单时间序列图;
import plotly as pyimport plotly.graph_objs as gofrom datetime import datetime# ----------pre defpyplt = py.offline.plot# ----------codex_datetime = [datetime(year=, month=10, day=4),datetime(year=, month=11, day=5),datetime(year=, month=12, day=6)]x_string = [-10-04, -11-05, -12-06]trace_datetime = go.Scatter(x=x_datetime, y=[1, 3, 6],name= race_datetime)trace_string = go.Scatter(x=x_string, y=[2, 4, 7],name= race_string)data = [trace_datetime, trace_string]pyplt(data, filename= ime_series.html)
如果觉得《Plotly绘制时间序列图实战:简单时序图 时间范围限制的时序图》对你有帮助,请点赞、收藏,并留下你的观点哦!