Colorbar is not showing last tick
オープン
まだ誰も着手していません。
bug
P2
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
Hi,
I have added a horizontal colorbar to a heatmap figure and can't get the last tick to show. Here are some of things I tried and thought are the most logical:
colorbar= dict(
orientation='h',
y=1.01,
tickformat=".0%",
tickmode='array',
tickvals=[0, 0.25, 0.5, 0.75, 1],
showticksuffix='last',
),
and
colorbar= dict(
orientation='h',
y=1.01,
tickformat=".0%",
tickmode='linear',
tick0=0,
dtick=0.25,
nticks=5,
ticklabeloverflow="allow",
),
but both yield the same result:
I have also tried moving the bar around the x axis and played with labels and length, but it always seems missing.
Is this a bug?
Plotly: 5.24.1 and Python: 3.12.7
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Plotly 5.24.1 と Python 3.12.7 を使用し、提供された tickmode='array' および tickmode='linear' の設定で水平ヒートマップの colorbar を再現します。colorbar が最後の tick をどのように処理するかを追跡し、1.0 の tick label が他のラベルに影響を与えずにレンダリングされることを確認して修正を検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100