File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ def tripcolor(ax, *args, **kwargs):
74
74
# triangulation, can omit facecolors kwarg as it is obvious from
75
75
# length of C whether it refers to points or faces.
76
76
# 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' ) :
79
79
facecolors = C
80
80
81
81
# 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 )) ) :
84
84
raise ValueError ('Length of color values array must be the same '
85
85
'as either the number of triangulation points '
86
86
'or triangles' )
You can’t perform that action at this time.
0 commit comments