[ENH]: ContourSet.set_paths · Issue #26340 · matplotlib/matplotlib · GitHub
Skip to content

[ENH]: ContourSet.set_paths #26340

Description

@rcomer

Problem

To get contour labelling working with its special transforms, Cartopy has a workaround where it replaces all the paths on the ContourSet with transformed versions. This currently looks like

paths = cs.get_paths()
paths[:] = transformed_paths

which doesn’t smell very good.

Proposed solution

The above would smell better as

cs.set_paths(transformed_paths)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions