MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / collides_with

Method collides_with

galleries/examples/misc/packed_bubbles.py:77–79  ·  view source on GitHub ↗
(self, bubble, bubbles)

Source from the content-addressed store, hash-verified

75 return len(distance[distance < 0])
76
77 def collides_with(self, bubble, bubbles):
78 distance = self.outline_distance(bubble, bubbles)
79 return np.argmin(distance, keepdims=True)
80
81 def collapse(self, n_iterations=50):
82 """

Callers 1

collapseMethod · 0.95

Calls 1

outline_distanceMethod · 0.95

Tested by

no test coverage detected