minimal: series

using CairoMakie, Random, LaTeXStrings

Random.seed!(123)
m = 200
function spiral(; a = 1, n = 100, h = 0, k = 0)
    φ = LinRange(rand() + 1, 6π, n)
    h .+ rand(-1:2:1) * a * cos.(φ) ./ φ, k .+ rand(-1:2:1) * a * sin.(φ) ./ φ
end
x = raw"x=a\,\cos(\varphi)/\varphi,\quad "
y = raw"y=a\,\sin(\varphi)/\varphi,\quad "
curves = [spiral(; a = rand(), h = rand(-1:1)) for i in 1:m]

with_theme(theme_minimal()) do
    fig = Figure(resolution = (600, 400))
    ax = Axis(fig[1, 1])
    series!(curves; color = categorical_colors(:inferno, m), linewidth = 1.5)
    text!(latexstring(x * y * "\\varphi>0"), position = (-1, -1))
    hidedecorations!(ax; grid = false)
    fig
end

Warning

This example was autogenerated using:

using Pkg
Pkg.status(["CairoMakie", "LaTeXStrings"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml`
  [13f3f980] CairoMakie v0.10.6
  [b964fa9f] LaTeXStrings v1.3.0

This page was generated using Literate.jl.