using CairoMakie, Random, Distributions
Random.seed!(1234)
b = Binomial(10, 0.85)
n = 500
function someSegments(; n = 50)
Point2f.(vec([[x, rand(b)] for i in 1:2, x = rand(n)]))
end
linesegments(someSegments(; n = n);
color = rand(n),
colormap = :Spectral_11, linewidth = abs.(randn(n)),
axis = (; xlabel = "x", ylabel = "y"),
figure = (; resolution = (600,400))
);
Warning
This example was autogenerated using:
using Pkg
Pkg.status(["CairoMakie"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml`
[13f3f980] CairoMakie v0.10.2
This page was generated using Literate.jl.