Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f5d3ce

Browse files
committed
Replaced backslash line continuators with parentheses.
1 parent cd9212d commit 4f5d3ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/tri/tripcolor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ def tripcolor(ax, *args, **kwargs):
7474
# triangulation, can omit facecolors kwarg as it is obvious from
7575
# length of C whether it refers to points or faces.
7676
# Do not do this for gouraud shading.
77-
if facecolors is None and len(C) == len(tri.triangles) and \
78-
len(C) != len(tri.x) and shading != 'gouraud':
77+
if (facecolors is None and len(C) == len(tri.triangles) and
78+
len(C) != len(tri.x) and shading != 'gouraud'):
7979
facecolors = C
8080

8181
# Check length of C is OK.
82-
if (facecolors is None and len(C) != len(tri.x)) or \
83-
(facecolors is not None and len(C) != len(tri.triangles)):
82+
if ( (facecolors is None and len(C) != len(tri.x)) or
83+
(facecolors is not None and len(C) != len(tri.triangles)) ):
8484
raise ValueError('Length of color values array must be the same '
8585
'as either the number of triangulation points '
8686
'or triangles')

0 commit comments

Comments
 (0)