Skip to content
Snippets Groups Projects
Commit 4be47034 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

only overwrite xTicks if they are provided as a function argument. Otherwise accept Matlab xTicks

(cherry picked from commit 51b25e9cd57ae10b3844d6ca3dcde914e0c97d28)
parent b6427636
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,9 @@ if indxGimfml ...@@ -82,7 +82,9 @@ if indxGimfml
subplot(nvar,nvar,k1) subplot(nvar,nvar,k1)
plot(t,imf(:,k2),t,zeros(length(imf(:,k2)),1),'r:'); 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) set(gca,'YTick',yt)
grid grid
...@@ -93,10 +95,7 @@ if indxGimfml ...@@ -93,10 +95,7 @@ if indxGimfml
% end % end
if isempty(xTick) %1 % No numbers on both axes if ~isempty(xTick)
set(gca,'XTickLabel',' ');
set(gca,'YTickLabel',' ');
else % Put numbers on both axes
if i<nvar if i<nvar
set(gca,'XTickLabelMode','manual','XTickLabel',[]) set(gca,'XTickLabelMode','manual','XTickLabel',[])
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment