[Bug]: Setting norm by string doesn't work for hexbin #28105
Labels
Good first issue
Open a pull request against these issues if there are no active ones!
topic: collections and mappables
Milestone
Bug summary
In #20752 I added support for
imshow(..., norm="log")
, and documented that the feature is supported in particular by hexbin as well; but this doesn't actually work for hexbin, because hexbin tries to run stuff on the norm before normalizing strings.Code for reproduction
Actual outcome
Expected outcome
no error
Additional information
Probably the block
can just be moved down a bit after collection.set_norm(norm) (then we can get back the canonicalized norm from the collection). I haven't looked at how this interacts with the call to _scale_norm just below, though.
Operating system
any
Matplotlib Version
3.9.0.dev1523+g2723052176
Matplotlib Backend
any
Python version
3.12
Jupyter version
no
Installation
None
The text was updated successfully, but these errors were encountered: