-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Margins removed in baseline #49
Comments
Do you have a |
No, I don't have any customization in that file. I tried that latter with I am unable to confirm this with that latest version of matplotlib (due to this issue while upgrading). I am interested if someone can reproduce these results with matplotlib 2.0.0. |
I believe the differences are due to pytest-mpl using the Most new users today would probably prefer to use Matplotlib's current default style, so maybe we should consider only setting the style if it's explicitly passed to the pytest-mpl decorator? (This is assuming the default style remains stable between major releases of Matplotlib.) This could be a breaking change in pytest-mpl v1.0.0. |
Jupyter by default uses |
When I run or save a modified README code in Jupyter, I get a different image than the generated baseline.
Example code run in a Jupyter cell:
Running
test_succeeds();
in Jupyter gives resulting image and savedtest.png
with margins:Next, I generate a
test.py
file by uncommenting the first line, commenting the second lineand then running the cell
From a command prompt, in the appropriate directory I run the following to generate the baseline image:
In the baseline folder, a comparable image called
test_succeeds.png
is created without margins:Aside from the difference in sizes, I notice the baseline image uses the classic mpl style. Perhaps this is the cause for the absence in margins. I report this as an issue as it is ideal that when testing the baseline image, it should be the same image as shown and saved by Jupyter.
I tested this with Anaconda 4.2.
The text was updated successfully, but these errors were encountered: