作者fetobow (手掌上的痣)
看板Python
标题plotly 单一html显示多图
时间Sun Nov 15 15:02:11 2020
大家好
请问一下 plotly要如何实现单一html显示多图?
subplot的add trace无法达成我想要的结果
比如说 一个html里面有两个line chart
但是这两个line chart都各自有八条线在其中
若使用subplot的add trace则会变成一条线一个图
不知道各位先进是否有好的解法?
感谢
----
Sent from
BePTT on my Google Pixel 4 XL
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 64.9.255.4 (美国)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1605423733.A.BAF.html
1F:→ bluecadence: 使用 subplot 没问题。 add_trace 里面有 row, col 11/15 19:24
2F:→ bluecadence: 两个参数让你指定 trace 要放进哪个 subplot 11/15 19:24
3F:→ fetobow: 感谢帮忙 晚点来试看看 :) 11/16 05:10