Skip to content

Commit

Permalink
Replaced backslash line continuators with parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthomas23 committed Aug 16, 2012
1 parent cd9212d commit 4f5d3ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/matplotlib/tri/tripcolor.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ def tripcolor(ax, *args, **kwargs):
# triangulation, can omit facecolors kwarg as it is obvious from
# length of C whether it refers to points or faces.
# Do not do this for gouraud shading.
if facecolors is None and len(C) == len(tri.triangles) and \
len(C) != len(tri.x) and shading != 'gouraud':
if (facecolors is None and len(C) == len(tri.triangles) and
len(C) != len(tri.x) and shading != 'gouraud'):
facecolors = C

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

0 comments on commit 4f5d3ce

Please sign in to comment.