8000 Inconsistent linestyle specifications between Line2D and Patch artists · Issue #2136 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Inconsistent linestyle specifications between Line2D and Patch artists #2136
Closed
@WeatherGod

Description

@WeatherGod

Just noticed that to get a dashed line in a line plot:

plt.plot([1, 2, 3, 4], [1, 2, 3, 4], '--')

is completely different from how to specify a line style elsewhere, such as bar():

plt.bar([1, 2, 3, 4], [1, 2, 3, 4], ls='dashed')

It would make sense to me to normalize these two specifications together so that either "accent" of linestyle specifications would work anywhere a "linestyle" argument is accepted.

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