Avoid Matplotlib 3.11 vert deprecation in permutation importance plots - #530
Avoid Matplotlib 3.11 vert deprecation in permutation importance plots#530adrinjalali with Copilot wants to merge 3 commits into
vert deprecation in permutation importance plots#530Conversation
vert deprecation in permutation importance plots
|
@copilot this seems to be only triggered in tests, so we can simply modify tests and make sure they don't raise warnings. |
|
@copilot the filter is the wrong solution, since it will become an actual error soon. The fix needs to completely avoid the warning, not ignore it. |
Addressed in de4e766. I removed the warning filter and restored the runtime fix in |
|
@copilot This is the diff I see now.
|
... At PR head ( |

Permutation-importance model card tests were tripping
MatplotlibDeprecationWarning(vertdeprecated in Matplotlib 3.11), which breaks warning-strict downstream builds. This PR updates our matplotlib compatibility shim to stop forwarding deprecated args on newer matplotlib while preserving behavior on older versions.Compatibility layer update (
skops.utils._fixes.boxplot)vertinput intoorientationwhen provided.vertfrom kwargs before callingax.boxploton matplotlib versions that supportorientation.vertonly when required.Focused regression coverage
skops/utils/tests/test_fixes.pyfor both version paths:vertis not passed through.vertis still passed as expected.Behavioral effect
Card.add_permutation_importances, but no longer triggers thevertdeprecation warning on modern matplotlib.