Skip to content

Conversation

@tacaswell
Copy link
Member

closes #13982

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant

@tacaswell tacaswell added this to the v3.1.0 milestone Apr 19, 2019
@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Apr 19, 2019
@jklymak jklymak merged commit 9f891c6 into matplotlib:master Apr 19, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Apr 19, 2019
timhoffm added a commit that referenced this pull request Apr 19, 2019
…989-on-v3.1.x

Backport PR #13989 on branch v3.1.x (FIX: update not replace hist_kwargs when density is passed)
@tacaswell tacaswell deleted the fix_hist_range_and_density branch January 20, 2020 00:49
calio added a commit to calio/swe.swebench_gva.matplotlib that referenced this pull request Nov 21, 2025
Add a regression test to ensure that the range parameter is correctly
respected when density=True. This test covers the issue reported in
matplotlib#13989 where hist() was not respecting the range parameter when
density=True.

The test verifies that:
1. range=(0, 1) with density=True produces bins from 0 to 1
2. range=(0, 1) with density=False produces bins from 0 to 1
3. Custom ranges like (0.2, 0.8) are respected with density=True

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

hist() no longer respects range=... when density=True

3 participants