From 4d4fb14f25f79982b6e4cc097e202d62105114a1 Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Sun, 24 Mar 2024 20:57:12 +0100 Subject: [PATCH] small fix --- examples/autopilot.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/autopilot.jl b/examples/autopilot.jl index 7570cee7..bf22813f 100644 --- a/examples/autopilot.jl +++ b/examples/autopilot.jl @@ -181,14 +181,21 @@ end function last_plot() res=load("data/last_plot.jld2") display(res) + plt.pause(0.01) + plt.show(block=false) nothing end +function save_plot() +end + on(viewer.btn_OK.clicks) do c println(viewer.menu.i_selected[]) println(viewer.menu.selection[]) if viewer.menu.i_selected[] == 1 last_plot() + elseif viewer.menu.i_selected[] == 2 + save_plot() end end