[MNT]: location of `TriMesh` changed between v3.5.x and v3.6 · Issue #24105 · matplotlib/matplotlib · GitHub
Skip to content

[MNT]: location of TriMesh changed between v3.5.x and v3.6 #24105

Description

@raphaelquast

Summary

In matplotlib <v3.6 TriMesh could be imported via

from matplotlib.tri import TriMesh

since v3.6 i get the following error:

ImportError: cannot import 'TriMesh' from 'matplotlib.tri' ...

The correct import now is

from matplotlib.collections import TriMesh

Proposed fix

maybe allow TriMesh import from matplotlib.tri for backward-compatibility reasons?

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions