matplotlib / matplotlib/pytest-mpl

Large diffs from font rendering

Ouverte
#81 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

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:
![baseline-test_plot_dither](https://user-images.githubusercontent.com/70736/48974219-1a394b80-f0a6-11e8-84c0-a424d6fdd9ef.png)

Generated. This is missing the title as `remove_text=True` is enabled (#68 would be relevant here):
![test_plot_dither](https://user-images.githubusercontent.com/70736/48974222-32a96600-f0a6-11e8-9dbb-79b85428f764.png)

Diff:
![test_plot_dither-failed-diff](https://user-images.githubusercontent.com/70736/48974224-35a45680-f0a6-11e8-9473-b98815d87ca9.png)

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

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. 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

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.