📅  最后修改于: 2022-03-11 14:45:58.875000             🧑  作者: Mango
import plotly.graph_objects as go
fig = go.Figure()
# Add traces
fig.add_trace(go.Scatter(x=df['col_x'], y=df['col_y'],
mode='markers',
name='markers'))
fig.add_trace(go.Scatter(x=df2['col_x'], y=df2['col_y'],
mode='lines+markers',
name='lines+markers'))
fig.show()