Colorbar is not showing last tick
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 18.8k
- Forks
- 2.8k
- Merge medio
- 16 h 26 min
- PR fusionados (30 d)
- 21
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduzca la colorbar horizontal del mapa de calor con las configuraciones proporcionadas tickmode='array' y tickmode='linear' usando Plotly 5.24.1 y Python 3.12.7. Rastree cómo la colorbar gestiona el tick final y verifique la corrección confirmando que la etiqueta del tick 1.0 se renderiza sin afectar a las demás etiquetas.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- data-visualization
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100