tricontour(ax, *args, **kwargs)
The triangulation can be specified in one of two ways; either :
tricontour(triangulation, ...)
where triangulation is a :None:None:`.Triangulation`
object, or :
tricontour(x, y, ...) tricontour(x, y, triangles, ...) tricontour(x, y, triangles=triangles, ...) tricontour(x, y, mask=mask, ...) tricontour(x, y, triangles, mask=mask, ...)
in which case a :None:None:`.Triangulation`
object will be created. See that class' docstring for an explanation of these cases.
The remaining arguments may be:
tricontour(..., Z)
where Z is the array of values to contour, one per point in the triangulation. The level values are chosen automatically.
tricontour(..., Z, levels)
contour up to levels+1 automatically chosen contour levels (levels intervals).
tricontour(..., Z, levels)
draw contour lines at the values specified in sequence levels, which must be in increasing order.
tricontour(Z, **kwargs)
Use keyword arguments to control colors, linewidth, origin, cmap ... see below for more details.
The colors of the levels, i.e., the contour lines.
The sequence is cycled for the levels in ascending order. If the sequence is shorter than the number of levels, it's repeated.
As a shortcut, single color strings may be used in place of one-element lists, i.e. 'red'
instead of ['red']
to color all levels with the same color. This shortcut does only work for color strings, not for other ways of specifying colors.
By default (value None), the colormap specified by cmap will be used.
The alpha blending value, between 0 (transparent) and 1 (opaque).
A .Colormap
instance or registered colormap name. The colormap maps the level values to colors.
If both colors and cmap are given, an error is raised.
If a colormap is used, the .Normalize
instance scales the level values to the canonical colormap range [0, 1] for mapping to colors. If not given, the default linear scaling is used.
If not None, either or both of these values will be supplied to the .Normalize
instance, overriding the default color scaling based on levels.
Determines the orientation and exact position of Z by specifying the position of Z[0, 0]
. This is only relevant, if X, Y are not given.
None: Z[0, 0]
is at X=0, Y=0 in the lower left corner.
'lower': Z[0, 0]
is at X=0.5, Y=0.5 in the lower left corner.
'upper': Z[0, 0]
is at X=N+0.5, Y=0.5 in the upper left corner.
'image': Use the value from image.origin
.
If origin is not None, then extent is interpreted as in :None:None:`.imshow`
: it gives the outer pixel boundaries. In this case, the position of Z[0, 0] is the center of the pixel, not a corner. If origin is None, then (x0, y0) is the position of Z[0, 0], and (x1, y1) is the position of Z[-1, -1].
This argument is ignored if X and Y are specified in the call to contour.
The locator is used to determine the contour levels if they are not given explicitly via levels. Defaults to ~.ticker.MaxNLocator
.
Determines the tricontour
-coloring of values that are outside the levels range.
If 'neither', values outside the levels range are not colored. If 'min', 'max' or 'both', color the values below, above or below and above the levels range.
Values below min(levels)
and above max(levels)
are mapped to the under/over values of the .Colormap
. Note that most colormaps do not have dedicated colors for these by default, so that the over and under values are the edge values of the colormap. You may want to set these values explicitly using .Colormap.set_under
and .Colormap.set_over
.
An existing :None:None:`.TriContourSet`
does not get notified if properties of its colormap are changed. Therefore, an explicit call to :None:None:`.ContourSet.changed()`
is needed after modifying the colormap. The explicit call can be left out, if a colorbar is assigned to the :None:None:`.TriContourSet`
because it internally calls :None:None:`.ContourSet.changed()`
.
Override axis units by specifying an instance of a matplotlib.units.ConversionInterface
.
Enable antialiasing, overriding the defaults. For filled contours, the default is True. For line contours, it is taken from lines.antialiased
.
The line width of the contour lines.
If a number, all levels will be plotted with this linewidth.
If a sequence, the levels in ascending order will be plotted with the linewidths in the order specified.
If None, this falls back to lines.linewidth
.
If linestyles is None, the default is 'solid' unless the lines are monochrome. In that case, negative contours will take their linestyle from contour.negative_linestyle
setting.
linestyles can also be an iterable of the above strings specifying a set of linestyles to be used. If this iterable is shorter than the number of contour levels it will be repeated as necessary.
The unstructured triangular grid.
If specified, then x, y, triangles, and mask are not accepted.
The coordinates of the values in Z.
For each triangle, the indices of the three points that make up the triangle, ordered in an anticlockwise manner. If not specified, the Delaunay triangulation is calculated.
Which triangles are masked out.
The height values over which the contour is drawn.
Determines the number and positions of the contour lines / regions.
If an int n, use ~matplotlib.ticker.MaxNLocator
, which tries to automatically choose no more than n+1 "nice" contour levels between vmin and vmax.
If array-like, draw contour lines at the specified levels. The values must be in increasing order.
Draw contour lines on an unstructured triangular grid.
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