-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Julia 1.0 incompatibility in cat_aes_var!() #1228
Comments
thanks for the report! to gauge side effects, it's easiest to run the tests. at the julia prompt simply |
Since Gadfly just updated itself to 1.0.1, I can paste the error log:
All tests pass with with our without this change (EDIT: but my script only works with). |
would be great to have your script so we can add it to the unit tests. can you boil it down to a minimum breaking example? thanks. |
Here's the above error: p1 = plot( layer(x=[5], y=[1.0], shape=[Shape.star1]),
layer(x=1:10, y=rand(10), Geom.point, shape=[Shape.circle], alpha=[0.1]),
Theme(point_size=4pt, discrete_highlight_color=identity, key_position=:none)
)
and I also found this: Zi = [(x,y) for x in -5:0.5:5, y in -5:0.5:5]
fn1(x) = x[1]*exp(-hypot(x[1]/3, x[2]/3)^2); fn2(x) = cos(hypot(x[1], x[2])/0.5)+1.0
i, ls = -5:0.5:5, 0.2:0.2:0.8
p2 = plot(Coord.cartesian(fixed=true),
layer(z=fn2.(Zi), x=i, y=i, Geom.contour(levels=[1.0]), Theme(line_style=[:dash])),
layer(z=fn1.(Zi), x=i, y=i, Stat.contour(levels=[-ls; ls]), Geom.polygon(fill=true)),
Scale.color_continuous(minvalue=-1, maxvalue=1.0), Theme(lowlight_color=identity)
)
|
In
cat_aes_var!
atGadfly.jl/src/aesthetics.jl
Line 264 in 7c6e899
might be able to be replaced with
a=[a..., b...]
as promote throws an error in Julia 1.0 if the two are essentially the same and no actual promotion takes place. I do not know enough about this to gauge all possible side effects of the change, but it worked in my special case drawing different
Geom.point
shapes, whereas I would get an exception with the described error otherwise.The text was updated successfully, but these errors were encountered: