@@ -13,21 +13,21 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
1313
1414 Call signatures::
1515
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], ...)
1818
1919 The triangular grid can be specified either by passing a `.Triangulation`
2020 object as the first parameter, or by passing the points *x*, *y* and
2121 optionally the *triangles* and a *mask*. See `.Triangulation` for an
2222 explanation of these parameters.
2323
2424 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.
2626 For more clarity, pass *triangles* via keyword argument.
2727
2828 If neither of *triangulation* or *triangles* are given, the triangulation
2929 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
3131 multiple possible triangulations for a group of points and you don't know
3232 which triangles will be constructed.
3333
@@ -38,21 +38,21 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
3838 x, y, triangles, mask
3939 Parameters defining the triangular grid. See `.Triangulation`.
4040 This is mutually exclusive with specifying *triangulation*.
41- C : array-like
41+ c : array-like
4242 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
4444 the number of points or the number of triangles. If there are the same
4545 number of points and triangles in the triangulation it is assumed that
4646 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 ``.
4949 This parameter is position-only.
5050 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 *.
5353 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
5656 three points. If *shading* is 'gouraud' then color values must be
5757 defined at points.
5858 other_parameters
@@ -68,34 +68,34 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
6868 if facecolors is not None :
6969 if args :
7070 _api .warn_external (
71- "Positional parameter C has no effect when the keyword "
71+ "Positional parameter c has no effect when the keyword "
7272 "facecolors is given" )
7373 point_colors = None
7474 if len (facecolors ) != len (tri .triangles ):
7575 raise ValueError ("The length of facecolors must match the number "
7676 "of triangles" )
7777 else :
78- # Color from positional parameter C
78+ # Color from positional parameter c
7979 if not args :
8080 raise TypeError (
81- "tripcolor() missing 1 required positional argument: 'C '; or "
81+ "tripcolor() missing 1 required positional argument: 'c '; or "
8282 "1 required keyword-only argument: 'facecolors'" )
8383 elif len (args ) > 1 :
8484 _api .warn_deprecated (
8585 "3.6" , message = f"Additional positional parameters "
8686 f"{ args [1 :]!r} are ignored; support for them is deprecated "
8787 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 ):
9090 # having this before the len(tri.triangles) comparison gives
9191 # precedence to nodes if there are as many nodes as triangles
92- point_colors = C
92+ point_colors = c
9393 facecolors = None
94- elif len (C ) == len (tri .triangles ):
94+ elif len (c ) == len (tri .triangles ):
9595 point_colors = None
96- facecolors = C
96+ facecolors = c
9797 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 '
9999 'of points or the number of triangles' )
100100
101101 # Handling of linewidths, shading, edgecolors and antialiased as
0 commit comments