From 02cd50fe8286dc836df1f6760c1fd07d8591aa64 Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Thu, 4 Apr 2024 00:11:20 +0200 Subject: [PATCH] Fix GLMakie naming --- examples/stats.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/stats.jl b/examples/stats.jl index f3f69ee..1f2fde4 100644 --- a/examples/stats.jl +++ b/examples/stats.jl @@ -13,7 +13,7 @@ end function show_stats(stats::Stats) HEIGHT=330 UPPER_BORDER=20 - fig = GLMakie.Figure(size = (400, HEIGHT)) + fig = KiteViewers.GLMakie.Figure(size = (400, HEIGHT)) if Sys.islinux() # sudo apt install ttf-bitstream-vera lin_font="/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf" @@ -26,8 +26,8 @@ function show_stats(stats::Stats) font="Courier New" end function print(lbl::String, value::String; line, font=font) - GLMakie.text!(fig.scene, 20, HEIGHT-UPPER_BORDER-line*32; text=lbl, fontsize = 24, space=:pixel) - GLMakie.text!(fig.scene, 250, HEIGHT-UPPER_BORDER-line*32; text=value, fontsize = 24, font, space=:pixel) + KiteViewers.GLMakie.text!(fig.scene, 20, HEIGHT-UPPER_BORDER-line*32; text=lbl, fontsize = 24, space=:pixel) + KiteViewers.GLMakie.text!(fig.scene, 250, HEIGHT-UPPER_BORDER-line*32; text=value, fontsize = 24, font, space=:pixel) line +=1 end line = print("energy: ", @sprintf("%5.0f Wh", stats.e_mech); line = 1) @@ -40,6 +40,6 @@ function show_stats(stats::Stats) line = print("min az_ro: ", @sprintf("%5.1f °", stats.min_az_ro); line) line = print("max az_ro: ", @sprintf("%5.1f °", stats.max_az_ro); line) - display(GLMakie.Screen(), fig) + display(KiteViewers.GLMakie.Screen(), fig) nothing end