From b591adf5ff109e0f062fe9d3d3b275537f55c2c1 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 20 Jul 2023 19:34:53 +0200 Subject: [PATCH] Put vertices further apart --- birdvisu/annotations/layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdvisu/annotations/layout.py b/birdvisu/annotations/layout.py index 8e4cae1..ccaebde 100644 --- a/birdvisu/annotations/layout.py +++ b/birdvisu/annotations/layout.py @@ -195,7 +195,7 @@ class PlaceUnplacedVertices(StyleAnnotator): vtxid, x, y, move = queue.pop(0) # Maybe bad code? (cf. deque) if move: angle = random.random() * 2 * math.pi - distance = random.randint(20, 200) + distance = random.randint(20, 500) dx = distance * math.cos(angle) dy = distance * math.sin(angle) x += dx