From d75d7155d33f96f3196121582d0bab3f7b9acb12 Mon Sep 17 00:00:00 2001 From: Mattriks Date: Sun, 19 Jan 2020 22:26:15 +1100 Subject: [PATCH] update point_size_numerical test --- test/testscripts/point_size_numerical.jl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/test/testscripts/point_size_numerical.jl b/test/testscripts/point_size_numerical.jl index 819d59214..97ae974fb 100644 --- a/test/testscripts/point_size_numerical.jl +++ b/test/testscripts/point_size_numerical.jl @@ -1,5 +1,14 @@ using Gadfly -set_default_plot_size(6inch, 6inch) +set_default_plot_size(9inch, 3inch) -plot(x=rand(100), y=rand(100), size=rand(1:8, 100)./100, Geom.point) +y, size = [0.55, 0.7, 0.9, 0.99, 0.9], [0.4, 0.5, 0.6, 0.68, 0.63] +juliaclrs = Gadfly.parse_colorant(["forestgreen", "brown3", "mediumorchid"]) +theme = Theme(key_swatch_shape=Shape.circle, alphas=[0.1], discrete_highlight_color=identity) + +p1 = plot(x=[2,1.13,2.87], y=[3,1.5,1.5], size=[0.75], alpha=[0.8], + color=juliaclrs, Coord.cartesian(fixed=true)) +p2 = plot(x=1:5, y=y, size=10^5*size, Scale.size_radius(maxvalue=10^5), theme) +p3 = plot(x=1:5, y=y, size=10^5*size, Scale.size_area(maxvalue=10^5), theme) + +hstack(p1, p2, p3)