Skip to content

Commit 89f4421

Browse files
committed
Fix sankey so it doesn't pass "linewidth" as a string to the backend.
1 parent 912ea58 commit 89f4421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/sankey.py

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def add(self, patchlabel='', flows=np.array([1.0,-1.0]), orientations=[0,0],
507507
label_locations = np.zeros((n,2))
508508
# Add the top-side inputs and outputs from the middle outwards.
509509
for i, (angle, is_input, spec) \
510-
in enumerate(zip(angles, are_inputs,
510+
in enumerate(zip(angles, are_inputs,
511511
zip(scaled_flows, pathlengths))):
512512
if angle == DOWN and is_input:
513513
tips[i,:], label_locations[i,:] = self._add_input(ulpath, angle,
@@ -609,7 +609,7 @@ def _get_angle(a, r):
609609
fc=kwargs.pop('fc', kwargs.pop('facecolor',
610610
'#bfd1d4')), # Custom defaults
611611
lw=kwargs.pop('lw', kwargs.pop('linewidth',
612-
'0.5')),
612+
0.5)),
613613
**kwargs)
614614
self.ax.add_patch(patch)
615615

0 commit comments

Comments
 (0)