Flatten figures of subplot for easy plotting
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 just dabbled into plotly for some project and i noticed via the documentation and stackoverflow that plotly does not have an easy way to flatten figures for easy subplotting. You literally have to explicitly define which rows and column you want your trace to be. It would be great if plotly could have a similar feature to matplotlib where you could flatten a series of axes subplots into a list and just for loop through it. Example below for clarity:
fig, axs = plt.subplots(nrows=4,ncols=4)
axs = axs.flatten()
for ax in axs:
ax.plot() # plot on each subplot from left to right for each row
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
Beginnen Sie mit der Durchsicht der subplot-Dokumentation und der vorhandenen figure- und subplot-APIs in plotly.py; das Issue nennt keine bestimmten Dateien oder Tests. Ermitteln Sie, wie eine Flattening-Schnittstelle die subplot-Positionen für die Iteration abbilden würde, und betrachten Sie die Arbeit als abgeschlossen, wenn Benutzer Subplots in zeilenweiser Reihenfolge iterieren können, ohne jede Zeile und Spalte explizit auswählen zu müssen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- plotly, python
- Bereich
- data-visualization
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100