with v6.3.0 the last y-axis label is cut off when top-margin is 0
オープン
@camdecoster がすでに取り組んでいます。
2025年9月9日 から。
bug
P1
regression
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
There seems to be a breaking change between 6.2.0 and 6.3.0. When setting the top-margin to 0 the y-axis label is cut off when it is right at the end of the axis.
You can reproduce this with this code.
import plotly.graph_objects as go
from datetime import datetime
x = [datetime(1912, 5, 6, 0, 0), datetime(2019, 5, 10, 0, 0)]
y = [7.6, 23.9]
fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y, mode='markers'))
fig.add_trace(go.Scatter(x=[datetime(2025, 9, 1)], y=[5.9]))
fig.update_layout(
template='simple_white',
margin={'l': 10, 'r': 10, 't': 0, 'b': 10},
)
fig.write_image(file='t.jpeg')
The result differs between version. Since the tick itself is there, but the label is missing I feel this is a bug. Also margins should not control the plot itself and decide whether or not labels are drawn.
| plotly==6.2.0 | plotly==6.3.0 |
|---|---|
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。