From a5ec6cf3cdcbb6faf6d86fe1957d023d95168266 Mon Sep 17 00:00:00 2001 From: lassepe Date: Fri, 6 Dec 2024 15:22:03 +0100 Subject: [PATCH] Fix swapped axes in 2d strategy visualization --- ext/MakieExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/MakieExt.jl b/ext/MakieExt.jl index b614e4b..d12b5ac 100644 --- a/ext/MakieExt.jl +++ b/ext/MakieExt.jl @@ -60,7 +60,7 @@ function Makie.plot!(viz::OpenLoopStrategyViz{<:Tuple{TrajectoryGamesBase.OpenLo endtime = something($(viz.endtime), lastindex($strategy.xs)) subsampled_states = $strategy.xs[starttime:($(viz.position_subsampling)):endtime] if $(viz.dimensionality) == 2 - [Makie.Point2f(xi[2], xi[1]) for xi in subsampled_states] + [Makie.Point2f(xi[1], xi[2]) for xi in subsampled_states] elseif $(viz.dimensionality) == 3 [Makie.Point3f(xi[1], xi[2], xi[3]) for xi in subsampled_states] else