plotly / plotly/plotly.py

3-D plots with Plotly on mobile web get the view reset every time a button is pressed in the modebar

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

還沒有人認領這個 Issue。

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

描述

Plotly is a fantastic tool to generate a great number of plots, hence I want first of all to thank the developers for a great tool.

When drawing 3-D plots, it is useful to be able to rotate, drag and zoom in coordinated way, specially on mobile, as screen is small and some details can only be seen by an appropriate combination of these. In desktop web browser, the mouse alone enables these three navigation actions, i.e. zoom with the mouse wheel, rotate with left-click and drag, pan with right-click and drag, and the modebar works as expected, i.e. pushing the zoom button allows zooming, then selecting rotate keeps the view to rotate around the new origin, and so on. On the other hand, when viewing the same plot on a mobile web browser, where touch interaction is very limited (only single touch and drag to rotate, no two-finger to pinch zoom/drag) the only way to achieve this is with the modebar, unfortunately, it does not work as expected, as everytime one selects one of the navigation commands (zoom, pan, rotate), the view goes to the default state, hence it is not possible to combine these. It would be nice if the modebar replicated in the mobile platform the performance seen in desktop, or even better two-finger drag/pinch could be used to pan/zoom, as it is done e.g. in the google glviewer, as selecting on-screen buttons in small screens is slow and problematic.

plotlyBugReport.html

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

開啟附加的 plotlyBugReport.html,並在行動版 Web 瀏覽器中重現 3-D modebar 的行為,在 zoom、pan 和 rotate 之間切換。追蹤所涉及的 Plotly Web 渲染和 modebar 入口點;完成的標準是變更命令後保留目前檢視,而不是將其重設。

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

評估

技術堆疊
javascript, python
領域
data-visualization, frontend, mobile
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

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

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