Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Improve error message for shape mismatches in barh function #29503

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
Jan 31, 2025

Conversation

Kaustbh
Copy link
Contributor

@Kaustbh Kaustbh commented Jan 22, 2025

Fixes: #29474
This PR improves the error message for shape mismatches in the barh function by replacing argument indices with original parameter names. This enhances error clarity and helps users identify issues more easily.

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Please add a test.

lib/matplotlib/axes/_axes.py Outdated Show resolved Hide resolved
lib/matplotlib/tests/test_axes.py Outdated Show resolved Hide resolved
lib/matplotlib/tests/test_axes.py Outdated Show resolved Hide resolved
lib/matplotlib/tests/test_axes.py Outdated Show resolved Hide resolved
@tacaswell tacaswell merged commit d488794 into matplotlib:main Jan 31, 2025
39 of 41 checks passed
@tacaswell
Copy link
Member

merged over a test failing due to subprocess issues on windows CI.

@QuLogic QuLogic added this to the v3.11.0 milestone Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENH]: Show parameter names in error message for mismatched array sizes in bar()
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.