8000 [MNT]: More consistent color parameters for bar() · Issue #29090 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[MNT]: More consistent color parameters for bar() #29090
Closed
@timhoffm

Description

@timhoffm

Summary

From #29072. bar() supports

  • color : color or list of color
  • edgecolor : color or list of color
  • facecolor: color

i.e.

Proposed fix

Make facecolor accept sequences and check that the parameter precedence among color, edgecolor and facecolor is reasonable and comparable with scatter, which can take an explicit color via c (equivalent to color here).

For now, I'd refrain from introducing plural aliase. bar() is originally and primarily a style-all-bars-identical function. Per-bar styling was added later on, and I don't think there's a strong need to support this additional use case with an added plural alias.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0