matplotlib / matplotlib/pytest-mpl
Large diffs from font rendering
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 272
- Forks
- 53
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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).
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Bildvergleich aus dem POCS pull request 735 zu reproduzieren, und sieh dir die referenzierte Diskussion im astropy pull request 7150 an. Vergleiche die Unterschiede beim Font-Rendering mit dem Ansatz des Perceptual Hashing aus issue 21; das issue ist abgeschlossen, sobald eine konkrete, dokumentierte Empfehlung oder ein definierter Fix vorliegt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- matplotlib, python
- Bereich
- testing-qa
- Issue-Typ
- Bug
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100