GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — Fix passing singleton sequence-type styles to hist by rcomer · Pull Request #29719 · matplotlib/matplotlib Conversation
|
| else: | |
| colors = mcolors.to_rgba_array(color) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
OK so we can't just use |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Is this related to #28475? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes exactly. The array has zero size, so you get a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I have been pondering for a time whether we should have an internal helper to loop over possibly list-type properties. This should take care of all the technical details like single value vs. list of values, properly handling sequence-like single values, optionally length checks (we currently don't have a clear policy whether we request the same size, or whether we are permissive and continuously cycle as long as needed, which may be handy in some cases but could hide a bug in others).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…719-on-v3.10.x Backport PR #29719 on branch v3.10.x (Fix passing singleton sequence-type styles to hist)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Using a linestyle tuple with a histogram crashes with matplotlib 3.10
There was an error while loading. Please reload this page.