-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Deprecate axes_grid1.colorbar (in favor of matplotlib's own). #13397
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
Conversation
2e3633b
to
13cc45e
Compare
# The original version of this test relied on mpl_toolkits's slightly different | ||
# colorbar implementation; moving to matplotlib's own colorbar implementation | ||
# caused the small image comparison error. | ||
@pytest.mark.parametrize("legacy_colorbar", [False, True]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't want to just change the image?
Otherwise, I'm onboard for this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know I really, really don't like adding/changing baseline images... hence the check_images_equal decorator, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This parametrization makes the test flaky in parallel, as one can overwrite the test file of another process. We only use duplicate file names in the image_comparison
decorator for that reason.
13cc45e
to
8be8810
Compare
8be8810
to
e9a4166
Compare
05127ec
to
d43cb34
Compare
See changelog note for rationale (looks like the mpl_toolkits colorbar implementation was copy-pasted a while ago, and then did not get most of the recent improvements to matplotlib's colorbar). May be worth adding a property to the builtin colorbar similar to mpl_toolkit's `cbar_axis` (pointing to whichever of `xaxis` or `yaxis` is the long axis). I don't think supporting overdrawing multiple colorbars on a single Axes is really worth it. Manual examination of axisartist/axes_grid1 examples that use colorbars show no difference.
d43cb34
to
9a8ec76
Compare
See changelog note for rationale (looks like the mpl_toolkits colorbar
implementation was copy-pasted a while ago, and then did not get most of
the recent improvements to matplotlib's colorbar).
May be worth adding a property to the builtin colorbar similar to
mpl_toolkit's
cbar_axis
(pointing to whichever ofxaxis
oryaxis
is the long axis).
I don't think supporting overdrawing multiple colorbars on a single Axes
is really worth it.
Manual examination of axisartist/axes_grid1 examples that use colorbars
show no difference.
PR Summary
PR Checklist