Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Mar 24, 2024
1 parent b52da6a commit 4d4fb14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/autopilot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4d4fb14

Please sign in to comment.