Skip to content

tri.Triangulate.triangles is only documented as parameter (is also attribute) #18946

Closed
@story645

Description

@story645

Problem

in the trisurf examples, the .triangles attribute is used for the plotting:

tri = mtri.Triangulation(u, v)

# Plot the surface.  The triangles in parameter space determine which x, y, z
# points are connected by an edge.
ax = fig.add_subplot(1, 2, 1, projection='3d')
ax.plot_trisurf(x, y, z, triangles=tri.triangles, cmap=plt.cm.Spectral)

but the docs only document triangles as an input parameter into the constructor:
image

Suggested Improvement

Minimally the class should be cross linked against the trisurf example. Not sure if the fix is also document .triangles as an attribute, make it a property, or consolidate tri.get_masked_triangles() since it returns the unmasked triangles when there's no mask.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions