Graphics example
begin
import Pkg as _Pkg
haskey(ENV, "PLUTO_PROJECT") && _Pkg.activate(ENV["PLUTO_PROJECT"])
# using Revise
using Test
using ExampleJuggler
using CairoMakie
CairoMakie.activate!(; type = "svg", visible = false)
end;
x, fx = mock_x()
(-1.0:0.020202020202020204:1.0, [-0.1411200080598672, -0.20082373513863774, -0.25979004340277745, -0.3178024103126908, -0.37464781617321513, -0.4301175263356401, -0.4840078576651631, -0.5361209264593333, -0.5862653750711555, -0.6342570745687081 … 0.6342570745687081, 0.5862653750711555, 0.5361209264593333, 0.4840078576651631, 0.4301175263356401, 0.37464781617321513, 0.3178024103126908, 0.25979004340277745, 0.20082373513863774, 0.1411200080598672])
let
fig = Figure(; size = (600, 300))
lines!(Axis(fig[1, 1]), x, fx)
fig
end
y, t, fyt = mock_xt()
(-1.0:0.020202020202020204:1.0, 0.0:0.10101010101010101:10.0, [-0.1411200080598672 0.16073732823467404 … -0.9583144291311456 -0.9999118601072672; -0.20082373513863774 0.10066081638613873 … -0.9392494743193722 -0.9988801955657767; … ; 0.20082373513863774 0.4840078576651631 … -0.9985402916219825 -0.9369254909318261; 0.1411200080598672 0.4301175263356401 … -0.9999784316946084 -0.956375928404503])
let
fig = Figure(; size = (300, 300))
heatmap!(Axis(fig[1, 1]), y, t, fyt)
fig
end
Built with Julia 1.11.1 and
CairoMakie 0.11.11ExampleJuggler 0.4.1
Pkg 1.11.0
Test 1.11.0