Skip to content

Commit

Permalink
add mwe_05.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Mar 28, 2024
1 parent 6e662df commit 13d7057
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions mwes/mwe_05.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Pkg
if ! ("KiteViewers" keys(Pkg.project().dependencies))
using TestEnv; TestEnv.activate()
end
using Printf
import KiteViewers.GLMakie

struct Stats
e_mech::Float64
max_force::Float64
min_height::Float64
end

stats = Stats(333, 3900, 25)

function show_stats(stats::Stats)
fig = GLMakie.Figure(size = (400, 400))
GLMakie.Label(fig[1,1], "Hello", position = GLMakie.Point2f( 10, 340),
fontsize = 24, space=:pixel)

display(GLMakie.Screen(), fig)
nothing
end


0 comments on commit 13d7057

Please sign in to comment.