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

[Bug]: hist()'s doc for edgecolors/facecolors does not match behavior (which is itself not very consistent) #28873

Copy link
Copy link
Closed
@anntzer

Description

@anntzer
Issue body actions

Bug summary

The docs for hist state

**kwargs
    `~matplotlib.patches.Patch` properties. The following properties
    additionally accept a sequence of values corresponding to the
    datasets in *x*:
    *edgecolors*, *facecolors*, *lines*, *linestyles*, *hatches*.

but this does not match actual behavior

Code for reproduction

from pylab import *
hist(randn(100), facecolor="red")  # works
hist(randn(100), fc="red")  # silently does nothing
hist(randn(100), facecolors="red")  # crashes (Rectangle.set() got an unexpected keyword argument 'facecolors')

# and likewise for edgecolor(s)

Actual outcome

See above.

Expected outcome

At least the documentation and the behavior should match. Bonus points if all three kwarg forms (facecolor/fc/facecolors) are supported.

Additional information

No response

Operating system

any

Matplotlib Version

3.10.0.dev645+gcb9cf3bbb1

Matplotlib Backend

any

Python version

3.12.2

Jupyter version

no

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Labels

    API: consistencyDocumentationRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.