matplotlib / matplotlib/pytest-mpl
Large diffs from font rendering
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:

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).
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- 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