matplotlib / matplotlib/pytest-mpl
Large diffs from font rendering
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 272
- Forks
- 53
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hello, thanks for the module.
I know that you are aware of the issues but I'm trying to understand what I can do about them. In particular I see a large difference between two images that are similar, with some apparent minor difference in the font causing the failure.
I've inspected the generated images and they are the same (physical) size, dpi, etc.
I see some discussion (e.g. https://github.com/astropy/astropy/pull/7150) about maybe just choosing the font appropriately to minimize this. Is that the current recommended solution?
I also gave the perceptual hash (#21) a go and it does generate identical hashes for the two images, which is nice. However I haven't yet had time to look into that more to really understand what it is doing so don't necessarily want to rely on it.
Baseline:

Generated. This is missing the title as `remove_text=True` is enabled (#68 would be relevant here):

Diff:

This is coming from https://github.com/panoptes/POCS/pull/735
(Note that even getting these images out of travis was a huge pain as travis doesn't allow artifacts to be uploaded on pull-requests...but that's a different issue).
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.
Piste de recherche
Commencez par reproduire la comparaison d’images de POCS pull request 735 et examinez la discussion référencée dans astropy pull request 7150. Comparez les différences de rendu des polices avec l’approche du perceptual hash de issue 21 ; l’issue est résolue lorsqu’une recommandation concrète et documentée ou un fix défini existe.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- matplotlib, python
- Domaine
- testing-qa
- Type d'issue
- Bug
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100