GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [ENH]: Expand `hist()` signature to support aliases and plural kwargs · Issue #28884 · matplotlib/matplotlib

[ENH]: Expand hist() signature to support aliases and plural kwargs #28884

New issue
Copy link
New issue
Copy link
Closed
#29552
Closed
[ENH]: Expand hist() signature to support aliases and plural kwargs#28884
#29552
Copy link
Labels
New feature
Milestone
v3.10.3

Description

@timhoffm
timhoffm
opened on Sep 25, 2024
Issue body actions

Problem

#28073 added support for arrays on edgecolor, facecolor, linewidth, linestyle, hatch.

#28873 noted that we do not support the arrays for the aliases ec, fc, ... We also do not support plural versions of these parameters edgecolors, facecolors, ...

This is a reasonable expectation.

Proposed solution

  • Alias support should be added.
  • I believe we should come up with a clearer general strategy on singular/plural versions of the kwargs. Some initial thoughts:
    • Make a survey of which functions already support array properties and via which APIs.
    • the singular versions exist as pass-through. They need to be supported anyway. We could (i) only accept singular values there or (ii) also accept sequences. (ii) seems the more user-friendly approach and is implemented in some APIs already.
    • if we support plurals, we need to internally merge the single and plural variants, same with aliases. We likely should make helper functions for this. Can aliases be reused?
Reacted by hirohira

Activity

  1. timhoffm
    added
    New feature
    on Sep 25, 2024
  2. QuLogic
    closed this as completedin #29552on Feb 14, 2025
  3. rcomer
    added this to the v3.10.2 milestone on Apr 2, 2025
  4. rcomer
    marked [Bug]: Histogram ignores lw argument, no warning or error #29977 as a duplicate of this issue on Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    New feature

    Type

    No type

    Projects

    No projects

      Milestone

      • v3.10.3

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.