aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-06-19 17:00:38 +0200
committerThomas White <taw@physics.org>2024-06-19 17:00:38 +0200
commitecd51ad7d010177e6e5cab5f19ad357bc0327d7a (patch)
tree8d071f61194461bd703c55e761618be45a1d6b1d
parentc2feb90144e804bda12eba2e7ae7953391c56f38 (diff)
plot-geom.jl: Tweak axes and number of beams
-rw-r--r--julia/plot-geom.jl4
1 files changed, 2 insertions, 2 deletions
diff --git a/julia/plot-geom.jl b/julia/plot-geom.jl
index 7fca8ec0..a903eac6 100644
--- a/julia/plot-geom.jl
+++ b/julia/plot-geom.jl
@@ -2,7 +2,7 @@ using CrystFEL
using GLMakie
f = Figure(size=(1024,1024))
-ax = Axis3(f[1,1], aspect=(1,1,1),
+ax = Axis3(f[1,1], aspect=:equal, limits=(nothing,nothing,nothing,nothing,0,0.3),
xlabel="x (meters)", ylabel="y (meters)", zlabel="z (meters)")
sl = Slider(f[2,1], range=0:0.01:1)
btoggle = Toggle(f, halign=:left, tellwidth=false)
@@ -123,6 +123,6 @@ beams = map(cfimage.detgeom.panels) do p
end
mesh!(triangles, color="#7f7f7f")
-beamv = lines!(collect(Iterators.flatten(beams[1:2:end])), color="#008080")
+beamv = lines!(collect(Iterators.flatten(beams[1:4:end])), color="#008080")
connect!(beamv.visible, btoggle.active)
f