matplotlib 3.5.1

ParametersReturns
refine_field(self, z, triinterpolator=None, subdiv=3)

Parameters

z : (npoints,) array-like

Values of the field to refine, defined at the nodes of the encapsulated triangulation. ( n_points is the number of points in the initial triangulation)

triinterpolator : `~matplotlib.tri.TriInterpolator`, optional

Interpolator used for field interpolation. If not specified, a CubicTriInterpolator will be used.

subdiv : int, default: 3

Recursion level for the subdivision. Each triangle is divided into 4**subdiv child triangles.

Returns

refi_tri : `~matplotlib.tri.Triangulation`

The returned refined triangulation.

refi_z : 1D array of length: *refi_tri* node count.

The returned interpolated field (at refi_tri nodes).

Refine a field defined on the encapsulated triangulation.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/tri/trirefine.py#133
type: <class 'function'>
Commit: