default savefig format
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 48/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- À l'abandon
- Stack technique
- matplotlib, python
- Domaine
- testing-qa
Piste de recherche
Commencez dans pytest_mpl/plugin.py, au niveau de l’appel savefig indiqué autour des lignes 419–421, puis suivez la provenance de savefig_kwargs depuis le décorateur du marqueur. Vérifiez comment le tampon en mémoire est géré et assurez-vous que le format par défaut est PNG, tandis qu’un format fourni par l’appelant reste inchangé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
In the process of penning #150, I noticed that when capturing the test image to an io.Bytes in-memory buffer:
That the format kwarg to savefig isn't used.
Would you be adverse to defaulting to format='png', particularly when writing to a buffer, as (from what I understand) matplotlib will default to the rcParams to select the file-format to save to the buffer for the image, and this could be a source confusion/issues for hashing repeatability for developers when testing.
i.e., what I'm proposing is that a format='png' is injected into the savefig_kwargs, iff not specified by the caller as a kwarg option in the marker decorator.
- Langage dominant
- Python
- Étoiles
- 274
- Forks
- 53
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
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 matplotlib/pytest-mpl
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
matplotlib/pytest-mpl#264 · 2 commentaires · 1 réaction ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
matplotlib/pytest-mpl#263 · 3 commentaires ·
-
Old docs on matplotlib.orgOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
matplotlib/pytest-mpl#262 · 6 commentaires ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
matplotlib/pytest-mpl#261 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
matplotlib/pytest-mpl#257 · 2 commentaires ·
Toutes les issues de matplotlib/pytest-mpl
Issues similaires
-
[Doc]: Feedback for `/zh-cn/v0.30.0/tutorials/models/Qwen3.6-35B-A3B.html`A3社区配置和基线不一致,社区配置也达不到基线Ouvertedocumentation
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
vllm-project/vllm-ascend#24429 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
simnJS/AnyPS5#735 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
sqlreview.sh: `remap` with no review draft seeds one, and `delta` prints the diff then exits 2Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
nq-rdl/agent-extensions#623 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
vortex-data/vortex#12633 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
gke-labs/kube-agents#7955 ·
Les mainteneurs répondent en général sous 1 jour