Retina+jpeg option?
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- À clarifier
- Activité
- Calme
- Stack technique
- jupyter, jupyter-notebook
- Domaine
- data-visualization
Piste de recherche
L’issue ne nomme aucun fichier source ni aucun test. Commencez par retracer la manière dont le backend inline gère le paramètre figure_format et le dimensionnement Retina, puis comparez le comportement JPEG avec l’issue Matplotlib et la question Stack Overflow liés ; le travail devrait être considéré comme terminé lorsqu’il existe une méthode clairement définie et testée pour produire des images JPEG de notebooks correctement dimensionnées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Jupyter Notebook
- Étoiles
- 31
- Forks
- 39
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ipython/matplotlib-inline
-
Support animations Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
ipython/matplotlib-inline#61 ·
-
sdist is missing tests Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
ipython/matplotlib-inline#59 ·
-
Publish changelog Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
ipython/matplotlib-inline#57 · 1 réaction ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
ipython/matplotlib-inline#54 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 48/100
ipython/matplotlib-inline#44 · 1 commentaire ·
Toutes les issues de ipython/matplotlib-inline
Issues similaires
-
P3 size: 1 task
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
🦾 ai-candidate
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
scope: charts status: waiting for maintainer
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100