Plotly: How to set line color?

前端 未结 3 1435
时光取名叫无心
时光取名叫无心 2021-02-20 00:30

How can I set the color of a line in plotly?

import plotly.graph_objects as go
from plotly.subplots import make_subplots


fig = make_subplots(rows=         


        
3条回答
  •  春和景丽
    2021-02-20 01:34

    You can add line=dict(color="#ffe476") inside your go.Scatter(...) call. Documentation here: https://plot.ly/python/reference/#scatter-line-color

提交回复
热议问题