using GLMakie, Random GLMakie.activate!() Random.seed!(123) npts = 100 initms = 8 * rand(npts) with_theme(theme_dark()) do msize = Observable(initms) # this is the variable that will change # first frame, initial plot fig, ax = scatter(2 * rand(npts), rand(npts), markersize = msize, color = initms, colormap = (:Greek, 0.75), strokewidth = 0.5, strokecolor = :white, figure = (resolution = (1200, 800), fontsize = 22), axis = (xlabel = "x", ylabel = "y",)) limits!(ax, 0, 2, 0, 1) # the animation is done by updating the Observable values # change assets->(your folder) to make it work in your local env record(fig, joinpath("assets", "animScatters.mp4"), framerate = 24, profile = "main") do io for i in 1:0.1:8 msize = i * initms recordframe!(io) # record a new frame end end end
This example was autogenerated using:
using Pkg Pkg.status(["GLMakie"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml` [e9467ef8] GLMakie v0.8.2
This page was generated using Literate.jl.