Skip to content

Commit

Permalink
continue making figs
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuri3 committed Jul 12, 2024
1 parent be81c5a commit 05c81c0
Show file tree
Hide file tree
Showing 13 changed files with 433 additions and 11 deletions.
Binary file added figs/QR-code/SNFROM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
344 changes: 344 additions & 0 deletions figs/QR-code/SNFROM.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 17 additions & 11 deletions figs/makefigs_SNFROM_presi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function makeplots(
qCAE = data["qCAE"] |> Array # encder prediction
qSNL = data["qSNL"] |> Array
qSNW = data["qSNW"] |> Array

#======================================================#

in_dim = size(xFOM, 1)
Expand All @@ -50,38 +50,44 @@ function makeplots(

#======================================================#

fig1 = Figure(; size = (600, 400), backgroundcolor = :white, grid = :off)
fig1 = Figure(; size = (600, 200), backgroundcolor = :white, grid = :off)

kw_ax = (;
)

kw_sc = (;
linewidth = 0.5,
color = :black,
linewidth = 0.0,
color = :blue,
strokewidth = 0,
markersize = 7.5,
markersize = 40,
)

Ngif = 250
Ngif = 24 * 2
Itgif = LinRange(1, Nt, Ngif) .|> Base.Fix1(round, Int)
Ix = LinRange(1, grid[1], 128) .|> Base.Fix1(round, Int)
Ix = LinRange(1, grid[1], 12) .|> Base.Fix1(round, Int)

ax1 = Axis(fig1[1,1]; kw_ax...)

hidedecorations!(ax1)
hidespines!(ax1)

y = Observable(uFOM[Ix, Itgif[1]])
p = scatterlines!(ax1, xFOM[Ix], y; kw_sc...)

if occursin(casename, "exp5")
if occursin("exp5", casename)
ylims!(ax1, -2.5, 4.5)
elseif occursin("exp3", casename)
ylims!(ax1, 0.9, 1.7)
elseif occursin("exp4", casename)
ylims!(ax1, -0.1, 1.1)
end

function animstep(i)
y[] = uFOM[Ix, Itgif[i]]
end

giffile = joinpath(outdir, casename * ".gif")
record(animstep, fig1, giffile, 1:length(Itgif); framerate = Ngif ÷ 5,)
record(animstep, fig1, giffile, 1:length(Itgif); framerate = Ngif ÷ 2,)

# Itplt = [1, Nt ÷ 2, Nt]
# p1 = scatterlines!(ax1, xFOM[Ix], uFOM[Ix, Itplt[1]]; kw_sc...)
Expand Down Expand Up @@ -122,8 +128,8 @@ e4files = (e4file1, e4file4, e4file7)

# makeplots(e1file , outdir, "exp1")
# makeplots(e2file , outdir, "exp2")
# makeplots(e3file1, outdir, "exp3case1")
# makeplots(e4file1, outdir, "exp4case1")
makeplots(e3file1, outdir, "exp3case1")
makeplots(e4file1, outdir, "exp4case1")
# makeplots(e5file , outdir, "exp5")

#======================================================#
Binary file added figs/presentation/exp3case1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figs/presentation/exp4case1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figs/presentation/method/carrow.pdf
Binary file not shown.
Binary file added figs/presentation/method/carrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figs/presentation/method/hlines.pdf
Binary file not shown.
Binary file added figs/presentation/method/hlines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figs/presentation/method/manif.pdf
Binary file not shown.
72 changes: 72 additions & 0 deletions figs/presentation/method/manif.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figs/presentation/method/vlines.pdf
Binary file not shown.
Binary file added figs/presentation/method/vlines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 05c81c0

Please sign in to comment.