10000 [MNT]: location of `TriMesh` changed between v3.5.x and v3.6 · Issue #24105 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[MNT]: location of TriMesh changed between v3.5.x and v3.6 #24105
Closed
@raphaelquast

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?

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

      0