Skip to content

Linestyle: dash tuple with offset #5430

@ghost

Description

In the documentation of matplotlib.lines.set_linestyle() and elsewhere in the matplotlib docs it is written that the linestyle can be a dash tuple of the form (offset, onoffseq), where onoffseq is an even length tuple.

Providing the onoffseq works fine, but the offset seems to be ignored, e.g., the following code produces two identical plots:

x = linspace(0,10)
plot(x, ls=( 0, (10,10)))
plot(x, ls=(10, (10,10)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …Documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions