Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4f5d3ce

Browse filesBrowse files
committed
Replaced backslash line continuators with parentheses.
1 parent cd9212d commit 4f5d3ce
Copy full SHA for 4f5d3ce

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎lib/matplotlib/tri/tripcolor.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tri/tripcolor.py
+4-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.