matplotlib / matplotlib/pytest-mpl

Large diffs from font rendering

Aperta
#81 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Python
Stelle
272
Fork
53
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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).

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il confronto delle immagini da POCS pull request 735 e consulta la discussione referenziata in astropy pull request 7150. Confronta le differenze nel rendering dei font con l’approccio del perceptual hash di issue 21; l’issue è risolta quando esiste una raccomandazione concreta e documentata o un fix definito.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
matplotlib, python
Ambito
testing-qa
Tipo di issue
Bug
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.