matplotlib / matplotlib/mplfinance
Unable to prevent plot from initial display
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 4.4k
- Forks
- 678
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi,
I am trying to create a plot object which will later be used in a report. I am able to create the plot and store as object in a variable:
`plot = mpf.plot(data.iloc[::5, :], type='line', volume=True, figratio=(15, 7), style='binance', title=ticker, closefig=True, returnfig=True)[0]`
However, the plot shows on my windows screen initially as a small box, then the chart, then closes immediately. Because I am running the code in a loop, many windows appear and eventually errors out from memory consumption, plus it is a bit cumbersome to have the windows appear in the first place.
Thanks for any help! :)
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 damit, den gemeldeten mpf.plot-Aufruf mit data.iloc[::5, :], volume=True, closefig=True und returnfig=True in einer Schleife unter Windows zu reproduzieren. Untersuche, wie diese Optionen mit der anfänglichen Anzeige interagieren, und bestätige, dass das Erstellen von Diagrammen für einen Bericht keine vorübergehenden Fenster mehr öffnet oder den Speicher erschöpft.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- matplotlib, 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