1. 首页
  2. Pandas

plotly绘画多度量折线图

效果图

ee7e75bb0f163c56b944531362278b25

代码

import plotly.express as px 
import pandas as pd 

# Get some data
fig = px.line(df_v2, x='ds', y=['打赏用户数', 'm3','m7'])
fig.show()

参考

[How to plot multiple lines on the same y-axis using plotly express? – 📊 Plotly Python – Plotly Community Forum](https://community.plotly.com/t/how-to-plot-multiple-lines-on-the-same-y-axis-using-plotly-express/29219/9 )

 

发表评论

登录后才能评论