Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

with v6.3.0 the last y-axis label is cut off when top-margin is 0

Abierto
#5,337 1 comentario 0 reacciones 1 asignado Ver en GitHub

@camdecoster ya está trabajando en esto.

Desde el 9/9/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

bug P1 regression

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
Image Image
Lenguaje dominante
Python
Estrellas
18.8k
Forks
2.8k
Merge medio
13 h 41 min
PR fusionados (30 d)
21

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de plotly/plotly.py

Todos los issues de plotly/plotly.py

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.