Skip to content

How to get Quadmesh coordinates #18399

Closed
@greglucas

Description

@greglucas

Describe the issue

Summary

Right now, the coordinates of a Quadmesh, returned from pcolormesh, are not available to the end-user. They are stored internally in the coordinates attribute. This is an issue for Cartopy, when we need to know where the MPL calculated coordinates are located to know whether we should mask some cells for users.

Proposed fix

Add a .get_coordinates() method that returns the private attribute to Quadmesh. This would be minimally invasive, and only ensures that Cartopy isn't relying on a private attribute.

Related to #18317, and my proposed fix in SciTools/cartopy#1646 that relies on the private attribute.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions