From 87102cbdeafe1b44b53b1c5ada9dd471c8ce0956 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Tue, 9 Apr 2013 14:22:19 +0200
Subject: [PATCH] reporting: @graph: ensure xlim is not larger than actual
 xlimits

---
 matlab/reports/@graph/createGraph.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/matlab/reports/@graph/createGraph.m b/matlab/reports/@graph/createGraph.m
index d2c6cbd74..dd1beedb0 100644
--- a/matlab/reports/@graph/createGraph.m
+++ b/matlab/reports/@graph/createGraph.m
@@ -59,6 +59,7 @@ for i=1:ne
 end
 
 x = 1:1:dd.ndat;
+xlim([1 dd.ndat]);
 xlabels = getDatesCellStringArray(dd);
 
 if ~isempty(o.yrange)
-- 
GitLab