Skip to content

Commit

Permalink
Adjusted location of legends
Browse files Browse the repository at this point in the history
  • Loading branch information
mbudisic committed Sep 18, 2015
1 parent 62cfd07 commit c5e6a8b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Binary file modified img/data-01_21i.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/data-0_20i.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/results-01_21i.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/results-0_20i.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 8 additions & 5 deletions validate/DemoKoopmanModes.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
validateattributes(TCF,{'numeric'},{'scalar','finite','nonnan'})
end

fprintf('Complex time frequency: %.f + i %.2f\n', real(TCF), imag(TCF) );
fprintf('Complex time frequency: %.1f + i %.1f\n', real(TCF), imag(TCF) );

[U, t, x] = DukeSynthetic('TimeComplexFrequency', TCF, ...
'SpaceComplexFrequency', 1+5i);
Expand Down Expand Up @@ -130,7 +130,7 @@
% Plot data
x = x(:);
step = numel(t);
step = 1;

truth = U(:,step);
h = plot(x,truth,'k-','LineWidth',2 );
h.DisplayName = 'Data';
Expand Down Expand Up @@ -162,12 +162,14 @@
subplot(2,2,1);
title({'Mode shapes compared to data',...
sprintf('in time step %d/%d', step, numel(t))});
legend('Location','Best');
hl = legend('Location','Best');
hl.FontSize = 7;

subplot(2,2,3);
title({'Difference betweend data and mode shape',...
sprintf('in time step %d/%d', step, numel(t))});
legend('Location','Best');
hl = legend('Location','Best');
hl.FontSize = 7;

hold off;

Expand Down Expand Up @@ -198,7 +200,8 @@
axis( [ [-2,2]*max([abs(real(TCF)),.1]),...
[-2,2]*abs(imag(TCF)) ] )
hold off;
legend('Location','Best');
hl = legend('Location','Best');
hl.FontSize = 7;
xlabel('Decay Rate');
ylabel('Frequency');
title({sprintf('Dominant (%d) Koopman evalues',Nmd),...
Expand Down

0 comments on commit c5e6a8b

Please sign in to comment.