Skip to content

Conversation

p-j-smith
Copy link
Contributor

Fixes #272

  • pass a list to Line2D.set_xdata rather than a float (Line2D.set_xdata expects an iterable)
  • add test for setting contrast limits when a histogram is plotted

@dstansby
Copy link
Member

Thanks a lot for this long overdue fix! It has been a while since any development happened here, but all the tests seem to be running fine... before merging, could you add a new 2.1.1 section to the changelog (docs/changelog.rst) with a short entry for this bugfix?

@p-j-smith
Copy link
Contributor Author

Thanks for the speedy review!

I've updated the changelog although I put it under 3.0.1 as the latest release is for 3.0.0.

Also, I've renamed 2.1.0 in the changelog as it looks like 2.1.0 was never released and it went straight to 3.0.0? Happy to change it back though if this isn't right

@dstansby
Copy link
Member

Ah, it looks like I forgot to update the changelog in the docs for 3.0.0 🤦 - I'll do that in a separate PR, and then do a release

@dstansby dstansby merged commit b0c8de2 into matplotlib:main Sep 25, 2025
13 checks passed
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.

Runtime error when moving contrast limits
2 participants