plotly / plotly/plotly.py

tickmode='sync' option is not working as expected

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

還沒有人認領這個 Issue。

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

描述

I was trying to use the multi-axes functionality in Plotly with the tickmode='sync' option, but the result was not as I expected. The grid axes are not aligned at y = 0 and the ticks of the second y axis are not "nice" rounded numbers. I found out that this issue was already raised in the repository where the functionality was originally pulled from: https://github.com/VictorBezak/Plotly_Multi-Axes_Gridlines/issues/4. Unfortunately, it was never resolved and since it is incorporated in Plotly I think it would make more sense to raise the issue here. Hopefully, someone can help me out!

P.S.: I think issue https://github.com/plotly/plotly.py/issues/4351 is referring to the same problems, but it is not as nicely explained as the issue mentioned above.

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

先重現使用 tickmode='sync' 的多軸案例,然後將其行為與連結的上游 issue 以及 plotly.py issue #4351 進行比較。當網格軸在 y = 0 處對齊,且第二個 y 軸使用整齊、經過四捨五入的 tick 值時,即表示完成。

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

評估

技術堆疊
python
領域
data-visualization
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
活躍
描述清晰度
需要釐清
新手友好度
42/100

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

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