Skip to content

Rewrite offset_copy for better error message #25920

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
May 19, 2023

Conversation

oscargus
Copy link
Member

@oscargus oscargus commented May 19, 2023

PR summary

Passing an incorrect unit and no fig gave 'For units of inches or points a fig kwarg is needed' which really didn't make sense.

Will still return a ValueError, but with a more sensible message.

(I know that there are discussions if one should leave the final case out after check_in_list or not, but here it did nothing...)

PR checklist

@ksunden ksunden added this to the v3.7.2 milestone May 19, 2023
@ksunden ksunden merged commit e0139d0 into matplotlib:main May 19, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 19, 2023
@oscargus oscargus deleted the offsetcopy branch May 19, 2023 22:42
rcomer added a commit that referenced this pull request May 20, 2023
…920-on-v3.7.x

Backport PR #25920 on branch v3.7.x (Rewrite offset_copy for better error message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants