[英]Python Plotly explress line - how to change the color under the line
我相信您正在尋找 Plotly 的Filled Area Plots 。 如果向下滾動一點,您會找到基本疊加面積圖的示例代碼:
import plotly.graph_objects as go
fig = go.Figure()
fig.add_trace(go.Scatter(x=[1, 2, 3, 4], y=[0, 2, 3, 5], fill='tozeroy')) # fill down to xaxis
fig.show()
我刪除了第二條跟蹤的代碼,因為看起來您只想 plot 一行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.