@@ -11,22 +11,24 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
11
11
"""
12
12
Create a pseudocolor plot of an unstructured triangular grid.
13
13
14
- The triangulation can be specified in one of two ways; either ::
14
+ Call signatures ::
15
15
16
- tripcolor(triangulation, ...)
16
+ tripcolor(triangulation, C, *, ...)
17
+ tripcolor(x, y, C, *, [triangles=triangles], [mask=mask], ...)
17
18
18
- where triangulation is a `.Triangulation` object, or
19
+ The triangular grid can be specified either by passing a `.Triangulation`
20
+ object as the first parameter, or by passing the points *x*, *y* and
21
+ optionally the *triangles* and a *mask*. See `.Triangulation` for an
22
+ explanation of these parameters.
19
23
20
- ::
24
+ Parameters
25
+ ----------
26
+ triangulation : `.Triangulation`
27
+ An already created triangular grid.
28
+ x, y, triangles, mask
29
+ Parameters specifying defining the triangular grid. See
30
+ `.Triangulation`.
21
31
22
- tripcolor(x, y, ...)
23
- tripcolor(x, y, triangles, ...)
24
- tripcolor(x, y, triangles=triangles, ...)
25
- tripcolor(x, y, mask=mask, ...)
26
- tripcolor(x, y, triangles, mask=mask, ...)
27
-
28
- in which case a Triangulation object will be created. See `.Triangulation`
29
- for a explanation of these possibilities.
30
32
31
33
The next argument must be *C*, the array of color values, either
32
34
one per point in the triangulation if color values are defined at
@@ -42,6 +44,11 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
42
44
three points. If *shading* is 'gouraud' then color values must be
43
45
defined at points.
44
46
47
+
48
+
49
+ tripcolor(x, y, [triangles], C, [mask=mask], ...)
50
+
51
+
45
52
The remaining kwargs are the same as for `~.Axes.pcolor`.
46
53
"""
47
54
_api .check_in_list (['flat' , 'gouraud' ], shading = shading )
0 commit comments