From 5e90961ba169a2e094561d594833258f06ec58b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Argos=29?=
 <stepan@adjemian.eu>
Date: Wed, 19 Feb 2025 17:36:21 +0100
Subject: [PATCH] Fix integration test (octave build).

In Octave, calling @dseries/plot multiple times with `hold on` does
not allow for plotting multiple time series of different lengths on
the same figure (it throws an error).
---
 tests/model-inversion/nk-2/invert.mod | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/model-inversion/nk-2/invert.mod b/tests/model-inversion/nk-2/invert.mod
index 37bf564a4e..2c19df3af8 100644
--- a/tests/model-inversion/nk-2/invert.mod
+++ b/tests/model-inversion/nk-2/invert.mod
@@ -97,22 +97,22 @@ plot(id, zeros(1,length(id)), 'or')
 hold off
 
 figure(4)
-plot(endogenousvariables.i,'-k','linewidth',2)
+plot(endogenousvariables(1Y:100Y).i,'-k','linewidth',2)
 hold on
-plot(SimulatedData.i(1Y:100Y),'--r','linewidth',2)
+plot(SimulatedData(1Y:100Y).i,'--r','linewidth',2)
 hold off
 title('Nominal interest rate')
 
 figure(5)
-plot(endogenousvariables.y,'-k','linewidth',2)
+plot(endogenousvariables(1Y:100Y).y,'-k','linewidth',2)
 hold on
-plot(SimulatedData.y(1Y:100Y),'--r','linewidth',2)
+plot(SimulatedData(1Y:100Y).y,'--r','linewidth',2)
 hold off
 title('Output gap')
 
 figure(6)
-plot(endogenousvariables.pi,'-k','linewidth',2)
+plot(endogenousvariables(1Y:100Y).pi,'-k','linewidth',2)
 hold on
-plot(SimulatedData.pi(1Y:100Y),'--r','linewidth',2)
+plot(SimulatedData(1Y:100Y).pi,'--r','linewidth',2)
 hold off
 title('Inflation gap')
-- 
GitLab