From 4be470341a73bb22d58bb0d930ff624a5bf1a7f6 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 19 Nov 2014 14:37:55 +0100
Subject: [PATCH] only overwrite xTicks if they are provided as a function
 argument. Otherwise accept Matlab xTicks (cherry picked from commit
 51b25e9cd57ae10b3844d6ca3dcde914e0c97d28)

---
 MatlabFiles/fn_imcgraph.m | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/MatlabFiles/fn_imcgraph.m b/MatlabFiles/fn_imcgraph.m
index e42b97f..877f4e4 100644
--- a/MatlabFiles/fn_imcgraph.m
+++ b/MatlabFiles/fn_imcgraph.m
@@ -82,7 +82,9 @@ if indxGimfml
          subplot(nvar,nvar,k1)
          plot(t,imf(:,k2),t,zeros(length(imf(:,k2)),1),'r:');
 
-         set(gca,'XTick',xTick)
+		 if ~isempty(xTick)
+			 set(gca,'XTick',xTick)
+		 end
          set(gca,'YTick',yt)
          grid
 
@@ -93,10 +95,7 @@ if indxGimfml
          %  end
 
 
-         if isempty(xTick)  %1     % No numbers on both axes
-            set(gca,'XTickLabel',' ');
-            set(gca,'YTickLabel',' ');
-         else   % Put numbers on both axes
+         if ~isempty(xTick)
             if i<nvar
                set(gca,'XTickLabelMode','manual','XTickLabel',[])
             end
-- 
GitLab