bdacddac4c2435f88b15786d92cb73b479ad4164,lib/matplotlib/sankey.py,Sankey,add,#Sankey#Any#Any#Any#Any#Any#Any#Any#Any#Any#,352
Before Change
rotation /= 90.0
if orientations is None:
orientations = [0, 0]
if len(orientations) != n:
raise ValueError(
"orientations and flows must have the same length.\n"
"orientations has length %d, but flows has length %d."
% (len(orientations), n))
if not cbook.is_scalar_or_string(labels) and len(labels) != n:
raise ValueError(
"If labels is a list, then labels and flows must have the "
"same length.\nlabels has length %d, but flows has length %d."
After Change
rotation /= 90.0
if orientations is None:
orientations = 0
try:
orientations = np.broadcast_to(orientations, n)
except ValueError:
raise ValueError(
f"The shapes of "flows" {np.shape(flows)} and "orientations" "
f"{np.shape(orientations)} are incompatible"
) from None
if not cbook.is_scalar_or_string(labels) and len(labels) != n:
raise ValueError(
"If labels is a list, then labels and flows must have the "
"same length.\nlabels has length %d, but flows has length %d."
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: matplotlib/matplotlib
Commit Name: bdacddac4c2435f88b15786d92cb73b479ad4164
Time: 2019-01-18
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/sankey.py
Class Name: Sankey
Method Name: add
Project Name: matplotlib/matplotlib
Commit Name: c2fb60fd8786d2c7053b741f89aed3c60b83be55
Time: 2019-01-20
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/sankey.py
Class Name: Sankey
Method Name: add
Project Name: matplotlib/matplotlib
Commit Name: 919939253e2bd570c5d2b87878379a3e72af2256
Time: 2018-09-08
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/streamplot.py
Class Name: StreamMask
Method Name: __init__