Support check_figures_equal style comparison without any baseline_image
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginnen Sie damit, die bestehende Implementierung des Bildvergleichs in pytest-mpl zu finden, und vergleichen Sie ihre Einstiegspunkte mit den Decorators check_figures_equal und image_comparison von Matplotlib. Legen Sie fest, wie ein Marker fig_ref und fig_test ohne Baseline-Bilder erzeugen würde, und überprüfen Sie anschließend, dass die beiden Figuren verglichen werden und dass Bild-Fixtures im Repository nicht erforderlich sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi there,
First off, thanks for the great plugin! Just a long time user over at PyGMT and we've being using pytest-mpl quite extensively to catch lots of bugs 😄
Anyhow, we're just wondering if there's scope here for something like @pytest.mark.mpl_check_equal based on matplotlib's check_figures_equal function for "generating and comparing two figures" (fig_ref and fig_test) on the fly (without having a baseline image).
The main use case for this is to keep our repository size small, since the baseline images can take up a lot of space. Currently, pytest-mpl does something similar to matplotlib's image_comparison decorator function. We've been putting some thought into this at https://github.com/GenericMappingTools/pygmt/pull/555, and rather than duplicating work, we're wondering if the logic could sit here in pytest-mpl or somewhere in the matplotlib organization.
Happy to submit a PR if someone can point me in the right direction.
- Vorherrschende Sprache
- Python
- Sterne
- 274
- Forks
- 53
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus matplotlib/pytest-mpl
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
matplotlib/pytest-mpl#264 · 2 Kommentare · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
matplotlib/pytest-mpl#263 · 3 Kommentare ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
matplotlib/pytest-mpl#262 · 6 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
matplotlib/pytest-mpl#261 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
matplotlib/pytest-mpl#257 · 2 Kommentare ·
Alle Issues in matplotlib/pytest-mpl
Ähnliche Issues
-
[Doc]: Feedback for `/zh-cn/v0.30.0/tutorials/models/Qwen3.6-35B-A3B.html`A3社区配置和基线不一致,社区配置也达不到基线Offendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
vllm-project/vllm-ascend#24429 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
simnJS/AnyPS5#735 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
sqlreview.sh: `remap` with no review draft seeds one, and `delta` prints the diff then exits 2Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
nq-rdl/agent-extensions#623 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
vortex-data/vortex#12633 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
gke-labs/kube-agents#7955 ·
Maintainer antworten meist innerhalb von 1 Tag