Skip to content

[ENH]: Drop STOP codes? #28179

Open
Open
@anntzer

Description

@anntzer

Problem

Matplotlib Paths can have a STOP code (https://matplotlib.org/stable/api/path_api.html#matplotlib.path.Path) which marks the end of a path but are otherwise unused; paths without STOP code are also supported.
I suspect that these are a artefact due to agg's implementation (i.e. agg emits them and we therefore also do).
While #28176 is technically not an issue because the behavior is as documented, it may help to just not emit these STOPs at all. I suspect this is just a matter of looking at all places where we return paths from Agg and clip out the last STOP code when it is present.
(We don't have to drop support for user passing them in, but could hide them in the documentation.)

Proposed solution

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