Skip to content
Snippets Groups Projects
Commit a5969735 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Add xlim to rplot.m

Prevents excessive white space
parent 12d51470
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,7 @@ if rplottype == 0 ...@@ -85,6 +85,7 @@ if rplottype == 0
plot(ix(i),y(:,i)) ; plot(ix(i),y(:,i)) ;
title (t,'Interpreter','none') ; title (t,'Interpreter','none') ;
xlabel('Periods') ; xlabel('Periods') ;
xlim([min(ix(i)) max(ix(i))])
if size(s1,1) > 1 if size(s1,1) > 1
if isoctave if isoctave
legend(s1); legend(s1);
...@@ -101,6 +102,7 @@ elseif rplottype == 1 ...@@ -101,6 +102,7 @@ elseif rplottype == 1
for j = 1:size(y,1) for j = 1:size(y,1)
hh=dyn_figure(options_,'Name',['Simulated Trajectory']); hh=dyn_figure(options_,'Name',['Simulated Trajectory']);
plot(ix(i),y(j,i)) ; plot(ix(i),y(j,i)) ;
xlim([min(ix(i)) max(ix(i))])
title(['Plot of ' s1(j,:)],'Interpreter','none') ; title(['Plot of ' s1(j,:)],'Interpreter','none') ;
xlabel('Periods') ; xlabel('Periods') ;
dyn_saveas(hh,[M_.fname, filesep, 'graphs', filesep, 'SimulatedTrajectory_' deblank(s1(j,:))],options_) dyn_saveas(hh,[M_.fname, filesep, 'graphs', filesep, 'SimulatedTrajectory_' deblank(s1(j,:))],options_)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment