fig.update_layout(xaxis_type="category") breaks make_subplots(shared_xaxes=True)
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
This one is pretty simple to explain and see. Create a subplot with two or more plots that are using the same x-axis data, enable shared_xaxes=True, plot it, and it works as intended; zooming in on one plot zooms in on both plots.
When updating the layout to xaxis_type="category", for categorical data, even when both both subplots have the same x-axis data and shared_xaxes=True is set to true, it no longer works; the axis are no longer shared. Zooming in on one plot no longer effects the other plot.
Tested on: plotly 5.24.1, python 3.13
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、make_subplots(shared_xaxes=True)、カテゴリ型の x 軸データ、および xaxis_type="category" を使用して、報告された subplot のケースを再現します。layout の更新前と更新後のズーム動作を比較します。x 軸データが共有されている場合に、一方の subplot をズームするともう一方もズームされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100