|
topEdge = labelWidths["top"] |
It's seems to be an extra indent in this line.
Below, an example of code that generates the error :
a_in = ['a', 'a', 'a', 'b','c']
a_out = ['d','d','d','d','d']
sankey(left=a_in, right=a_out)
Error returned :
UnboundLocalError: local variable 'topEdge' referenced before assignment
When there is only one input or output flow, topEdge is not defined.
pySankey/pysankey/sankey.py
Line 294 in 7625dc9
It's seems to be an extra indent in this line.
Below, an example of code that generates the error :
Error returned :
When there is only one input or output flow,
topEdgeis not defined.