@@ -13,21 +13,21 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
13
13
14
14
Call signatures::
15
15
16
- tripcolor(triangulation, C , *, ...)
17
- tripcolor(x, y, C , *, [triangles=triangles], [mask=mask], ...)
16
+ tripcolor(triangulation, c , *, ...)
17
+ tripcolor(x, y, c , *, [triangles=triangles], [mask=mask], ...)
18
18
19
19
The triangular grid can be specified either by passing a `.Triangulation`
20
20
object as the first parameter, or by passing the points *x*, *y* and
21
21
optionally the *triangles* and a *mask*. See `.Triangulation` for an
22
22
explanation of these parameters.
23
23
24
24
It is possible to pass the triangles positionally, i.e.
25
- ``tripcolor(x, y, triangles, C , ...)``. However, this is discouraged.
25
+ ``tripcolor(x, y, triangles, c , ...)``. However, this is discouraged.
26
26
For more clarity, pass *triangles* via keyword argument.
27
27
28
28
If neither of *triangulation* or *triangles* are given, the triangulation
29
29
is calculated on the fly. In this case, it does not make sense to provide
30
- colors at the triangle faces via *C * or *facecolors* because there are
30
+ colors at the triangle faces via *c * or *facecolors* because there are
31
31
multiple possible triangulations for a group of points and you don't know
32
32
which triangles will be constructed.
33
33
@@ -38,21 +38,21 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
38
38
x, y, triangles, mask
39
39
Parameters defining the triangular grid. See `.Triangulation`.
40
40
This is mutually exclusive with specifying *triangulation*.
41
- C : array-like
41
+ c : array-like
42
42
The color values, either for the points or for the triangles. Which one
43
- is automatically inferred from the length of *C *, i.e. does it match
43
+ is automatically inferred from the length of *c *, i.e. does it match
44
44
the number of points or the number of triangles. If there are the same
45
45
number of points and triangles in the triangulation it is assumed that
46
46
color values are defined at points; to force the use of color values at
47
- triangles use the keyword argument ``facecolors=C `` instead of just
48
- ``C ``.
47
+ triangles use the keyword argument ``facecolors=c `` instead of just
48
+ ``c ``.
49
49
This parameter is position-only.
50
50
facecolors : array-like, optional
51
- Can be used alternatively to *C * to specify colors at the triangle
52
- faces. This parameter takes precedence over *C *.
51
+ Can be used alternatively to *c * to specify colors at the triangle
52
+ faces. This parameter takes precedence over *c *.
53
53
shading : {'flat', 'gouraud'}, default: 'flat'
54
- If 'flat' and the color values *C * are defined at points, the color
55
- values used for each triangle are from the mean C of the triangle's
54
+ If 'flat' and the color values *c * are defined at points, the color
55
+ values used for each triangle are from the mean c of the triangle's
56
56
three points. If *shading* is 'gouraud' then color values must be
57
57
defined at points.
58
58
other_parameters
@@ -68,34 +68,34 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
68
68
if facecolors is not None :
69
69
if args :
70
70
_api .warn_external (
71
- "Positional parameter C has no effect when the keyword "
71
+ "Positional parameter c has no effect when the keyword "
72
72
"facecolors is given" )
73
73
point_colors = None
74
74
if len (facecolors ) != len (tri .triangles ):
75
75
raise ValueError ("The length of facecolors must match the number "
76
76
"of triangles" )
77
77
else :
78
- # Color from positional parameter C
78
+ # Color from positional parameter c
79
79
if not args :
80
80
raise TypeError (
81
- "tripcolor() missing 1 required positional argument: 'C '; or "
81
+ "tripcolor() missing 1 required positional argument: 'c '; or "
82
82
"1 required keyword-only argument: 'facecolors'" )
83
83
elif len (args ) > 1 :
84
84
_api .warn_deprecated (
85
85
"3.6" , message = f"Additional positional parameters "
86
86
f"{ args [1 :]!r} are ignored; support for them is deprecated "
87
87
f"since %(since)s and will be removed %(removal)s" )
88
- C = np .asarray (args [0 ])
89
- if len (C ) == len (tri .x ):
88
+ c = np .asarray (args [0 ])
89
+ if len (c ) == len (tri .x ):
90
90
# having this before the len(tri.triangles) comparison gives
91
91
# precedence to nodes if there are as many nodes as triangles
92
- point_colors = C
92
+ point_colors = c
93
93
facecolors = None
94
- elif len (C ) == len (tri .triangles ):
94
+ elif len (c ) == len (tri .triangles ):
95
95
point_colors = None
96
- facecolors = C
96
+ facecolors = c
97
97
else :
98
- raise ValueError ('The length of C must match either the number '
98
+ raise ValueError ('The length of c must match either the number '
99
99
'of points or the number of triangles' )
100
100
101
101
# Handling of linewidths, shading, edgecolors and antialiased as
0 commit comments