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

Deprecate imshow_only_kwargs keyword in imshow_norm #9915

Merged
merged 3 commits into from
Feb 12, 2020

Conversation

larrybradley
Copy link
Member

Closes #9861.

Note that I didn't use deprecated_renamed_argument because of the bug I discovered in #9914.

@larrybradley larrybradley added visualization API change PRs and issues that change an existing API, possibly requiring a deprecation period labels Jan 31, 2020
@larrybradley larrybradley added this to the v4.1 milestone Jan 31, 2020
@larrybradley larrybradley changed the title Deprecate imshow_only_kwargs keyword in imshow_norm Deprecate imshow_only_kwargs keyword in imshow_norm Jan 31, 2020
@pllim pllim requested a review from astrofrog January 31, 2020 21:14
@@ -238,15 +238,6 @@ def test_imshow_norm():

imshow_norm(image, ax=ax, vmin=0, vmax=1)

# Note that the following is deprecated in Matplotlib 3.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep the tests until the keyword is actually removed. Although we should add a pytest.warns to ensure the deprecation warning is raised correctly too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, thanks! Done.

@pllim
Copy link
Member

pllim commented Jan 31, 2020

Note to maintainer: After this is merged, please open an issue to remind ourselves to remove the keyword after a deprecation period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change PRs and issues that change an existing API, possibly requiring a deprecation period visualization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate imshow_only_kwargs in imshow_norm
3 participants