.full_figure_for_development() doesn't show all computed data for go.Carpet
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
I want to set text ticktext along the baxis of a go.Carpet but couldn't figure out how to format ticktext and tickvals in the Carpet constructor. I tried to use .full_figure_for_development() to inspect what is set by default but these key-values pairs are missing from
A simple example:
import plotly.graph_objects as go
fig = go.Figure()
a = [0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3]
b = [4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6]
b2 = ['a', 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'c']
y = [1, 1.4, 1.6, 1.75, 2, 2.5, 2.7, 2.75, 3, 3.5, 3.7, 3.75]
fig.add_trace(go.Carpet(
a = a,
b = b, # b2,
y = y,
aaxis = dict(
tickprefix = 'a = ',
),
baxis = dict(
tickprefix = 'b = ',
smoothing = 0,
# tickmode = 'array',
# ticktext = b2, # ['a', 'b', 'c'],
# tickvals = b, # [4, 5, 6]
)
))
fig.show()
full_fig = fig.full_figure_for_development()
print(full_fig.data[0]['baxis']) # ticktext and tickvals missing!
i.e. I want to figure out how to set b = 4 to b = 6 to a, b, and c

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
Comienza con el ejemplo go.Carpet proporcionado y ejecuta full_figure_for_development() para reproducir la ausencia de ticktext y tickvals de baxis. Traza cómo se calculan y representan los valores predeterminados de Carpet y, a continuación, verifica que el baxis resultante incluya los datos calculados esperados sin afectar a la salida existente de la figura.
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