From fbeaa59f18c1e24782a7b16bcc4a2d491b2584cf Mon Sep 17 00:00:00 2001 From: Tom Breloff Date: Wed, 16 Nov 2016 13:55:07 -0500 Subject: [PATCH] curve offset --- src/components.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components.jl b/src/components.jl index d1720a41..55ce10f8 100644 --- a/src/components.jl +++ b/src/components.jl @@ -657,7 +657,7 @@ function directed_curve(x1, x2, y1, y2; xview = 0:1, yview = 0:1, root::Symbol = dist = sqrt((x2-x1)^2+(y2-y1)^2) # these points give the initial/final "rise" - y_offset = max(0.03*(maxy-miny), 0.7dist) + y_offset = max(0.02*(maxy-miny), min(0.7dist, 2*(y2-y1))) # y_offset = 0.8dist flip = root in (:top,:right) if flip