plotly / plotly/plotly.py

Add Support for Velocity Arrows in Scatter 3D Graphs

未關閉
#4,901 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

feature P3
主要語言
Python
星號
18.8k
分支
2.8k
平均合併
16 小時 26 分鐘
30 天內合併 PR
21

描述

Original issue description:

I propose adding a feature to the scatter and scatter3d graph types in Plotly to support velocity arrows. This feature would allow users to display directional arrows, enhancing data visualization for applications that involve vector fields, velocities, forces, or any data represented by direction and magnitude.

Update 31 Aug 2026:

  • 2D quiver now supported with go.Quiver() (as of v7.0.0)
  • Our answer for 3D quiver is go.Cone(), but it has limitations:

For 3D though, Cone() isn't really an arrow. To get a velocity vector you have to combine a Cone (head) with a Scatter3d line (shaft) and keep them in sync manually. The bigger issue is that cone size is in data units while line width is in pixels — so on zoom the head and shaft drift out of proportion (head swallows the shaft, or disappears entirely).

What I was after is the 3D analogue of Quiver: takes x, y, z, u, v, w, draws shaft + attached head, with the head sized in pixels so it stays legible under zoom and rotation.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先比較現有的 go.Quiver() 和 go.Cone() 入口,以及 scatter3d 圖表類型。定義 3D 類似物應如何接受 x、y、z、u、v、w,並在縮放和旋轉期間保持其桿部和箭頭連接且清晰可辨;完成的標準是功能已實作,且其行為已由適當的測試涵蓋。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
plotly, python
領域
data-visualization
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
活躍
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。