We'll be using the notebook feature. The main shortcuts are:
using Plots
heatmap(space,c=cgrad([:white, :black]), axis=nothing, legend=:none, aspect_ratio=1, yflip=true)
gosper = @animate for i ∈ 1:1000 nextgen(); heatmap(space,c=cgrad([:white, :black]), axis=nothing, legend=:none, aspect_ratio=1, yflip=true) end gif(gosper, fps=25)
Plotting mathematical functions can be done as follows:
plot(sin, x, -π, π) plot!(x->x, -π, π)