.full_figure_for_development() doesn't show all computed data for go.Carpet
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18.8k
- Forks
- 2.8k
- Ø Merge
- 16 Std. 26 Min.
- Gemergte PRs (30 T.)
- 21
Beschreibung
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

Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem bereitgestellten go.Carpet-Beispiel und führe full_figure_for_development() aus, um die fehlenden baxis-Ticktexte und -Tickwerte zu reproduzieren. Verfolge, wie Carpet-Defaults berechnet und dargestellt werden, und überprüfe anschließend, dass der resultierende baxis die erwarteten berechneten Daten enthält, ohne die bestehende Figure-Ausgabe zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100