matplotlib / matplotlib/mplfinance
difference in size between saved plot and fig
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 4.4k
- Fork
- 678
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I do not understand why plots differ in terms of size and how they look when I try to save them or returnfig.
I generate plots of figsize (9,4) when I save them they look great, with a tight layout, no margins and axes excellent! But I need these plots again so it would be better to use a buffer instead. However, when I use the buffer resulting plot has a different size and added margins on one side.
The saved plot has size (365, 801, 1) while plot from the buffer (400, 900, 1).
I appreciate any suggestions how to use buffer but without adding margins.
Thank you
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il grafico usando figsize (9,4), salvandolo prima e recuperandolo poi tramite un buffer con returnfig. Confronta le dimensioni e i margini risultanti, incluse le dimensioni riportate (365, 801, 1) e (400, 900, 1). Il lavoro è completato quando il risultato del buffer corrisponde al grafico salvato senza i margini aggiunti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- matplotlib, python
- Ambito
- data-visualization
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100