8000 [ENH]: Add parameter 'error_linestyle' to plt.errorbar() · Issue #29681 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[ENH]: Add parameter 'error_linestyle' to plt.errorbar() #29681
Closed
@MBeusch

Description

@MBeusch

Problem

Currently, plt.errorbar() does not provide a direct way to change the linestyle of the error bars themselves. The linestyle parameter only affects the main connecting line, and modifying the error bars requires accessing the returned object and manually setting e.g. set_linestyle('--') on the error bar lines.

Proposed solution

Introduce a new parameter, e.g., error_linestyle, that allows users to set the linestyle of the error bars directly. Example usage:

plt.errorbar(x, y, yerr=yerr, fmt='o', error_linestyle='--')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0