a50b9c226176cbaeb97b666be08dd5f4a1af881f,chaco/tools/data_label_tool.py,DataLabelTool,dragging,#DataLabelTool#,60
Before Change
anchors = array(((x, y), (x2, y), (x2, y2), (x, y2),
(xmid, y), (xmid, y2), (x, ymid), (x2, ymid)))
diff = anchors - p
closest = argmin(sqrt(map(sum, diff * diff)))
label.arrow_root = self._corner_names[closest]
event.handled = True
After Change
anchors = array(((x, y), (x2, y), (x2, y2), (x, y2),
(xmid, y2), (xmid, y), (x, ymid), (x2, ymid)))
diff = anchors - p
closest = argmin((diff ** 2).sum(axis=-1))
label.arrow_root = self._corner_names[closest]
event.handled = True
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: enthought/chaco
Commit Name: a50b9c226176cbaeb97b666be08dd5f4a1af881f
Time: 2011-09-15
Author: warren.weckesser@enthought.com
File Name: chaco/tools/data_label_tool.py
Class Name: DataLabelTool
Method Name: dragging
Project Name: geomstats/geomstats
Commit Name: ac24bfe744774df11dfc075397970c75e0fc5206
Time: 2020-11-17
Author: nicolas.guigui@inria.fr
File Name: geomstats/geometry/lie_algebra.py
Class Name: MatrixLieAlgebra
Method Name: orthonormal_basis
Project Name: WheatonCS/Lexos
Commit Name: 3227c2ed4ae92c6b9ecfc1b2c614ff4c36bd9fd0
Time: 2017-07-21
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/information.py
Class Name: FileInformation
Method Name: __init__