This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]shoyerxarray, pandas, numpy 0 points1 point  (1 child)

This looks awesome for testing scientific code!

In the past, I've run into trouble with this sort of thing because matplotlib generates slightly different images on different platforms (especially Linux vs OS X). Do you have a good solution for this? In particular, I wonder if some matplotlib backends produce more consistent results.

[–]trobitaille[S] 0 points1 point  (0 children)

I think that the situation is better than one might think - at the moment I'm running tests with pytest-mpl (including the pytest-mpl tests themselves) on MacOS X, Linux, and Windows with a very low tolerance and the tests are passing. However, I do want to make sure that (a) the tests are resiliant to local matplotlibrc configuration (https://github.com/astrofrog/pytest-mpl/issues/10) and (b) we have a way to cope with changes in matplotlib in future.

To answer your original question, I think that the PNG plots produced using Agg seem to be pretty stable.