Skip to content
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

Tst/restore old tests #26131

Merged
merged 3 commits into from Mar 22, 2024
Merged

Conversation

tacaswell
Copy link
Member

PR summary

In 7b71257 via #4843 I intended to revert the changes from #4019 however, I incorrectly resolved the merge conflicts and also removed the tests added in #4023 and #4342.

This is attempting to put them back. There are two complications:

  • we have made changes to the text baseline calculations so the test images need to be regenerated
  • The test marked as xfail is an Annotation defaulting to data coordinates when added directly to a Figure that does not have an Axes. I'm not clear why this ever worked (we must have had more complicated default coordinate behavior?!).

I found this issue while looking at what images were in our repo that were not generated by running the test suite.

@tacaswell tacaswell added this to the v3.8.0 milestone Jun 15, 2023
@QuLogic
Copy link
Member

QuLogic commented Jun 16, 2023

The test marked as xfail is an Annotation defaulting to data coordinates when added directly to a Figure that does not have an Axes. I'm not clear why this ever worked (we must have had more complicated default coordinate behavior?!).

Adding xycoords='figure pixels' or xycoords='figure points' seems to work?

@QuLogic
Copy link
Member

QuLogic commented Mar 7, 2024

It looks like test_font_wrap[png] is failing, though not everywhere.

…_neg_coords""

This partially reverts commit 7b71257.

Too many tests were removed, restore the extra tests.
Remove the light font because we don't have a good one on mac on CI
@ksunden ksunden merged commit 47c96df into matplotlib:main Mar 22, 2024
46 of 47 checks passed
@tacaswell tacaswell deleted the tst/restore_old_tests branch March 22, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants