Plots Static

pkg"up; add PackageCompiler Plots StatsPlots"
using PackageCompiler
# use Plots/test/runtests.jl for snooping and 
# replace the old sysimg with the new one
cp(joinpath(dirname(Pkg.Types.find_project_file()), "Manifest.toml"),
  PackageCompiler.sysimg_folder("Manifest.toml"), force = true
)
PackageCompiler.compile_incremental(:Plots, force = true)

Copy code from the CairoMakie article to check + assert that we replaced the image: