-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Figure out why test_interactive_backend fails on Travis macOS #18213
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
Comments
We will follow up on this later, matplotlib#18213.
Here's the minimum reproducible case for getting the DPI change: import matplotlib.pyplot as plt
fig, ax = plt.subplots()
fig.savefig('before.png')
plt.pause(0.5) # Need for change in DPI; plt.show() also equivalent
fig.savefig('after.png') |
So the issue is that the macosx backend assumes its device scale is 1.0 until it does a draw, then it knows it from the graphics context. Just need to plumb something in to allow it to know that from the start. |
Hello! This is my first time contributing, I'd like to work on this issue. Is there anything I should do previously or some steps I need to follow? @QuLogic |
I think @dopplershift is working on this in the above-linked PR; I don't know what the state of it is at this moment. |
I've poked at it, but I don't have anything useful to share IIRC. |
Can this be closed now we've migrated off Travis? |
Well, @dopplershift could also reproduce the problem, but maybe it can be fixed by #21365? |
I can reproduce the failure with mpl 3.4.3, but everything seems to work OK with the current 3.5rc and master even without that additional PR. Note that it does still work with that additional PR for me too. So, I think this issue can be closed and returned to the v3.5.0 milestone. |
OK, we can close then. |
In the interest of getting 3.3.1 out, we skipped the
test_interactive_backend
test on Travis macOS. It works correctly on a 'real' macOS machine from MacStadium, so we were okay with this for now. However, we should get to the bottom of this failure, whether it's because of old macOS settings on Travis, or whether it's something we can't rely on overall.Matplotlib version
master
+Go back to checking figures for their manager in destroy. #18184 (45d748b)print(matplotlib.get_backend())
): macOSMarked as Good first issue, as this should be self-contained to the macOS backend and CI, but Medium difficulty, because it's CI...
The text was updated successfully, but these errors were encountered: