-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Yet this code does not show the colour legend.
function mandelbrot(x, y)
z = c = x + y*im
for i in 1:30.0
abs(z) > 2 && return i
z = z^2 + c
end
return 0
end
xs = -2:0.01:1
ys = -1.1:0.01:1.1
xys = Iterators.product(xs, ys) |> collect |> vec
zs = map(xy -> mandelbrot(xy[1], xy[2]), xys)
df_mandelbrot = DataFrame(
x = first.(xys),
y = last.(xys),
z = zs
)
ggplot(df_mandelbrot, @aes(x = x, y = y, z = z)) +
geom_tile()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working