Retina+jpeg option?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- jupyter, jupyter-notebook
- Ambito
- data-visualization
Direzione di ricerca
L’issue non indica alcun file sorgente né alcun test. Inizia tracciando il modo in cui il backend inline gestisce l’impostazione figure_format e il dimensionamento Retina, quindi confronta il comportamento JPEG con l’issue di Matplotlib e la domanda di Stack Overflow collegati; il lavoro dovrebbe considerarsi completato quando esiste un modo chiaramente definito e testato per produrre immagini JPEG dei notebook delle dimensioni appropriate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I often work with complex matplotlib figures with millions of points, which I've been displaying in my notebooks using the ipython magic %config InlineBackend.figure_format = 'retina'. Unfortunately, these inline images are quite large in terms of file size.
I'm looking for general suggestions on how to reduce the size of my ipynb files, which can grow into the 10s or even hundreds of MB in size and become a bit unwieldy.
One thought I had was to switch to generating jpegs, but while it looks like I can meaningfully reduce the file size by switching the backend to jpeg and increasing the dpi to 2x:
from matplotlib import rcParams
%config InlineBackend.figure_format = 'jpeg'
rcParams['figure.dpi'] = 200
From this repo, it looks like I can dial in jpeg compression values, which should help reduce file size. However, I can't figure out how to size the jpegs appropriately for a retina display (they're twice as large as they should be, and slightly blurry). Is there a way to display jpegs in jupyter notebooks at similar resolution and size to the defaults provided by 'retina' mode?
See also:
Matplotlib issue
Stackoverflow question
- Lingua principale
- Jupyter Notebook
- Stelle
- 31
- Fork
- 39
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Altre issue di ipython/matplotlib-inline
-
Support animations Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
ipython/matplotlib-inline#61 ·
-
sdist is missing tests Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
ipython/matplotlib-inline#59 ·
-
Publish changelog Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
ipython/matplotlib-inline#57 · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
ipython/matplotlib-inline#54 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
ipython/matplotlib-inline#44 · 1 commento ·
Tutte le issue di ipython/matplotlib-inline
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
scope: charts status: waiting for maintainer
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
chore P3 plotly-internal size: 3 task
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Live-Charts/LiveCharts2#2394 ·
-
Urgent request: Due to vulnerabilities move to API version 12.6.1 (12.6.2 eventually) or 13.1.1 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
jbkunst/highcharter#849 ·