Skip to content

About

A repository to demonstrated and test improvements to how Matplotlib manages baseline images

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

test image set demonstrator

This repository is a test / demo repository for the work in matplotlib/matplotlib#25734 which is based on the mnt/multi_imageset branch of tacaswell's fork of Matplotlib.

For any of this to work you must use this branch. Get it via:

git remote add tacaswell [email protected]:tacaswell/matplotlib
git remote update
git checkout -t mnt/multi_imageset

or

gh pr checkout 25734

operation

Run pytest with external images

MPLTESTIMAGEPATH=/tmp/test_images2  pytest

Run pytest to generate the external images

MPLTESTIMAGEPATH=/tmp/test_images2 MPLGENERATEBASELINE=1 pytest

Validate the baseline images

python manage_baseline_images.py validate plotz.tests /tmp/test_images2/

version rev a test image

python manage_baseline_images.py rev plotz.tests.test_basic line.svg
git add plotz/tests/image_list.txt
git commit -m "Updated the test image"

Add a new test image

python manage_baseline_images.py add plotz.tests.test_basic yolo.png
git add plotz/tests/image_list.txt
git commit -m "Added a test image"

About

A repository to demonstrated and test improvements to how Matplotlib manages baseline images

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages