TST: Set tests touched by text overhaul to mpl20 style#31300
TST: Set tests touched by text overhaul to mpl20 style#31300QuLogic merged 2 commits intomatplotlib:text-overhaulfrom
Conversation
lib/matplotlib/tests/baseline_images/test_axes/bar_tick_label_multiple_old_label_alignment.png
Show resolved
Hide resolved
lib/matplotlib/tests/baseline_images/test_spines/spines_data_positions.png
Show resolved
Hide resolved
1403060 to
c0ccc2f
Compare
|
This is now all set, except that the following tests fail on macOS only: I am extremely surprised by the first one, as that's about the simplest plot there is. |
|
Also odd that the mises are not uniform across the line. |
|
@ksunden Looked into this and they all already have tolerances and changing the style changes amount of tolerance we needs. Lets merge this and deal with the tolerances in the other PR. Rough theory as to the distribution: we are seeing accumulated errors as a function of distance across the axis so the diagonal line is sampling different parts of that at different heights. |
|
Specifically, all of these tests already had tolerances from the old style, the RMS just got higher than we had encoded. This is due to a number of factors, likely
All of these tests are plotting some form of y=x+C lines (e.g. ax.plot([1,2,3]) or ax.plot(np.arange(5), etc) so it is really only that one particular line that needs this adjustment, just frustrating that it is such a simple and common case... |
|
🤦♂️ I was looking at this from the |

PR summary
This is based on several other PRs to make it easier for me to track what needs changing. I will rebase those extra commits out once ready.
The first commit changes all related tests to
mpl20, while the second commit changes a few so that they better work in the new style (e.g., moves a transparent legend over top something so that you can actually confirm that it's transparent.) I do expect to squash these together, but kept them separate so that it'd be easier to review the secondary changes.AI Disclosure
None
PR checklist