Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MNT: make orphaned colorbar deprecate versus raise #24088

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

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

jklymak
Copy link
Member

@jklymak jklymak commented Oct 3, 2022

PR Summary

Closes #23973 where we, without warning, started raising if a colorbar's mappable had no axes. This adds a deprecation, and otherwise restores the previous behaviour.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@jklymak jklymak requested a review from QuLogic October 3, 2022 22:26
@jklymak jklymak added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Oct 3, 2022
@jklymak jklymak added this to the v3.6.1 milestone Oct 3, 2022
@jklymak jklymak force-pushed the fix-deprecate-colorbar-orphan branch from 4ed5aa5 to 06ecfd4 Compare October 4, 2022 00:11
@QuLogic QuLogic changed the title MNT: make orphaned colorbar depreacte versus raise MNT: make orphaned colorbar deprecate versus raise Oct 4, 2022
Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

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

Probably should fix the typo in the commit message if you make this change also.

@jklymak jklymak force-pushed the fix-deprecate-colorbar-orphan branch from 06ecfd4 to 7fb75e0 Compare October 4, 2022 01:18
@tacaswell
Copy link
Member

Do we need to add or update an API change note?

I'm going to go ahead and merge this to move things along and we can follow up with another PR if we need to update docs.

@jklymak
Copy link
Member Author

jklymak commented Oct 6, 2022

Yes, good question - I don't think we should change the existing API note, but maybe need a new one?

@jklymak jklymak deleted the fix-deprecate-colorbar-orphan branch October 6, 2022 18:15
QuLogic added a commit that referenced this pull request Oct 6, 2022
…088-on-v3.6.x

Backport PR #24088 on branch v3.6.x (MNT: make orphaned colorbar deprecate versus raise)
@ksunden ksunden mentioned this pull request Feb 20, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ValueError: Unable to determine Axes to steal space for Colorbar.
3 participants