From d9b626c8594a17c851ec8e16bf6b6f8c005eae5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20O=27Mara?= Date: Tue, 16 Apr 2019 10:34:11 +1000 Subject: [PATCH] Develop rect test to determine overlap --- test/testscripts/rect.jl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/testscripts/rect.jl b/test/testscripts/rect.jl index 0ab761be8..cb75a759b 100644 --- a/test/testscripts/rect.jl +++ b/test/testscripts/rect.jl @@ -1,6 +1,11 @@ using DataFrames, Gadfly -set_default_plot_size(6inch, 3inch) +set_default_plot_size(21cm, 8cm) -D = DataFrame(x1 = [0, 0.5], y1 = [0, 0.5], x2 = [1, 1.5], y2 = [1, 1.5]) -pb = plot(D, xmin = :x1, ymin = :y1, xmax = :x2, ymax = :y2, Geom.rect) +Da = DataFrame(x1 = [0, 0.5], y1 = [0, 0.5], x2 = [0.5, 1], y2 = [0.5, 1]) +pa = plot(Da, xmin = :x1, ymin = :y1, xmax = :x2, ymax = :y2, Geom.rect) # Shared corner coordinate. + +Db = DataFrame(x1 = [0, 0.5], y1 = [0, 0.5], x2 = [1, 1.5], y2 = [1, 1.5]) +pb = plot(Db, xmin = :x1, ymin = :y1, xmax = :x2, ymax = :y2, Geom.rect) # Overlapping rects. + +hstack(pa,pb)