Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[MNT]: DISCUSSION: Should Axes.grouped_bar() enforce hatch list length or allow cycling like colors? #30712

Closed
@ilakkmanoharan

Description

@ilakkmanoharan

Summary

Should Axes.grouped_bar() enforce the hatch list length to match the number of datasets,
or should it allow automatic cycling, consistent with colors and other style arguments?
If we decide that hatch should enforce length,
should other style arguments (colors, linestyles, markers, etc.)
also be updated in the future for consistency —
or should the broader design direction remain permissive and cycling-based?

Arguments for cycling (current behavior)

Consistency: Aligns with colors, linestyles, and markers, maintaining familiar user expectations.
Flexibility: Shorter lists still produce usable plots without errors.
User-friendly: Avoids unnecessary exceptions in exploratory or educational workflows.
Backward-compatible: Keeps consistent with historical behavior in most Matplotlib APIs.

Arguments for enforcing

Explicitness: Detects mistakes when users intend unique styles per dataset.
Clarity: Prevents silent repetition of hatches that could cause visual confusion.
Predictability: Ensures a clear 1:1 mapping between datasets and style definitions.

Request for feedback
Before finalizing the implementation, feedback is requested on:
Preferred default behavior (cycle vs enforce)
Whether the decision should apply only to hatches or be standardized across all style arguments
Potential implications for the public API and documentation (e.g., user expectations, legend consistency)

Proposed fix

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp