How do you show multiple plots in threads concurrently?
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 30/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- rust
研究方向
該 issue 提到了 Plot、plot.show()、Traces 和 plot_configs,但沒有指出檔案或測試。首先定位這些入口點,並使用所描述的執行緒 workaround 重現並行建立和顯示 plot;完整的解決方案需要一種已確定且可測試的方式,以處理跨執行緒和多種設定的 plot。
由索引模型根據 Issue 內容生成。
描述
TLDR: Ultimately, my question is, would it be possible to adapt the Plot type to be Send so we could more easily show multiple plots at once? (or is there another way to achieve that? should we serialize the plot?)
I love Plotly and use it a lot, one thing I noticed is plot.show() is blocking, and the natural way to show multiple plots at once would be to send them to threads, but something about the Traces prevents us from being able to show multiple plots at the same time:
This is workaroundable if we create threads to both create the plot and show it, like this:
but then we can't return the plots made in those threads to our main thread:
also, this approach might trip up if we want to create and show multiple different kinds of plots from multiple different kinds of plot_configs, although i guess we could use an enum like this:
just curious how y'all handle this, right now I'm doing the workaround but thought it would be cool if we could just make a bunch of plots and send em around without issues
- 主要語言
- Rust
- 星號
- 1.5k
- 分支
- 130
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/plotly.rs 的其他 Issue
-
Surface::surface_color has the wrong type: it should be a 2D numeric array, not Vec<Box<dyn Color>>未關閉
難度 3/5 1-2 天 新手友好度 68/100
-
難度 3/5 1-2 天 新手友好度 62/100
-
難度 4/5 3-5 天 新手友好度 62/100
-
難度 5/5 一週以上 新手友好度 38/100
-
Support Plotly Express color sequences可能已有人在做 @iynehz 於 41 天前認領。 未關閉enhancement
難度 5/5 一週以上 新手友好度 35/100
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 82/100
saltnpepper97/halley#271 ·
維護者通常 1 天內回覆
-
Remove the unused gh-aw agentic workflow setup可能已有人在做 @AviAvni 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 3 天內回覆
-
bug stdlib
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
enhancement good first issue
難度 1/5 1-3 小時 新手友好度 83/100
Sh1n1230/PunctuationToggle#308 ·
維護者通常 1 天內回覆
-
Perl - Readme Drift可能已有人在做 @Omnideth 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
CommunityToolkit/Aspire#2375 ·
維護者通常 2 天內回覆