gpt4 book ai didi

Python:如何更改多线图表上线条的颜色?

转载 作者:行者123 更新时间:2023-12-05 03:33:40 24 4
gpt4 key购买 nike

<分区>

如何更改下方图表中线条的颜色?谢谢

import plotly.express as px

# forecast_eval is a dataframe with an actual number, a forecast
# number, and upper and lower forecast bounds

# Draw a line chart using 4 columns forecast_eval.columns[2:6]
eval_line = px.line(forecast_eval, x='ds', y=forecast_eval.columns[2:6],
title='Forecast')

eval_line

Line chart

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com