Skip to content

Commit

Permalink
update point_size_numerical test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattriks committed Jan 19, 2020
1 parent 807d4f3 commit d75d715
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/testscripts/point_size_numerical.jl
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit d75d715

Please sign in to comment.