Commit 7b0414e
committed
Make code match comment in sankey.
This makes Sankey.add no longer reject a labels that's a *single*
string, consistently with what the docstring states and what the comment
just after implies.
Previously, it would only accept a single string if its length is equal
to the number of flows, in which case it would use one character
of the string for each flow.
Alternatively, we could also change the docstring and delete the comment,
but I think this behavior is more intuitive? (Not that I ever use
Sankey, though it looks neat...)1 parent 70cef77 commit 7b0414e
2 files changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 452 | + | |
| 453 | + | |
457 | 454 | | |
458 | 455 | | |
459 | 456 | | |
| |||
0 commit comments