From cdecb47d94643a93430320c2533a9855985937ad Mon Sep 17 00:00:00 2001 From: Ben Murrell Date: Wed, 5 Nov 2025 23:32:54 +0100 Subject: [PATCH 1/3] Add rotation_offset parameter to animate_trajectory_dir --- src/misc/trajectory.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/misc/trajectory.jl b/src/misc/trajectory.jl index 05c1716..3d373e4 100644 --- a/src/misc/trajectory.jl +++ b/src/misc/trajectory.jl @@ -152,7 +152,7 @@ function animate_trajectory_dir( export_path, input_dirs; labels = [basename(dirpath) for dirpath in input_dirs], color_by = fill(:aa, length(input_dirs)), chain_colormap = :jet, aa_colormap = :turbo, numbering_colormap = :rainbow, - rotation = 0.02, end_rotation_speedup = 0, end_ribbon_seconds = 3.0, size = (1280, 720), framerate = 24, + rotation = 0.02, rotation_offset = 0.0, end_rotation_speedup = 0, end_ribbon_seconds = 3.0, size = (1280, 720), framerate = 24, theme = :black, kwargs... ) fig = Makie.Figure(; size, figure_padding = 1) @@ -205,6 +205,7 @@ function animate_trajectory_dir( rowgap!(fig.layout, 0) maxlen = maximum(length, values(dir_files)) end_extra_frames = Int(round(end_ribbon_seconds * framerate)) + ax.azimuth[] += rotation_offset record(fig, export_path, -framerate:maxlen+framerate+end_extra_frames; framerate) do t timestep[] = t for ax in axes From 2e4f4d7bc6bae31e36b5f7987f4b6d966ba3eab0 Mon Sep 17 00:00:00 2001 From: Ben Murrell Date: Wed, 5 Nov 2025 23:35:40 +0100 Subject: [PATCH 2/3] Fix azimuth rotation for trajectory axes --- src/misc/trajectory.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc/trajectory.jl b/src/misc/trajectory.jl index 3d373e4..73ba053 100644 --- a/src/misc/trajectory.jl +++ b/src/misc/trajectory.jl @@ -205,7 +205,9 @@ function animate_trajectory_dir( rowgap!(fig.layout, 0) maxlen = maximum(length, values(dir_files)) end_extra_frames = Int(round(end_ribbon_seconds * framerate)) - ax.azimuth[] += rotation_offset + for ax in axes + ax.azimuth[] += rotation + end record(fig, export_path, -framerate:maxlen+framerate+end_extra_frames; framerate) do t timestep[] = t for ax in axes From 60ba688ce269688ab760afb8050add79c2b5e1b0 Mon Sep 17 00:00:00 2001 From: Ben Murrell Date: Wed, 5 Nov 2025 23:37:12 +0100 Subject: [PATCH 3/3] Lawd --- src/misc/trajectory.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/trajectory.jl b/src/misc/trajectory.jl index 73ba053..785952c 100644 --- a/src/misc/trajectory.jl +++ b/src/misc/trajectory.jl @@ -206,7 +206,7 @@ function animate_trajectory_dir( maxlen = maximum(length, values(dir_files)) end_extra_frames = Int(round(end_ribbon_seconds * framerate)) for ax in axes - ax.azimuth[] += rotation + ax.azimuth[] += rotation_offset end record(fig, export_path, -framerate:maxlen+framerate+end_extra_frames; framerate) do t timestep[] = t