summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-11-22 09:50:59 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2020-09-21 16:33:21 -0400
commitaf117859bfb3cc9bb1999ba00e89d68e854347ac (patch)
treecdca697b8a1ef54c903b1b34ba9e461fdb379d7c
parent861255321f5b21ccddba27b6953092550540ede1 (diff)
downloadmulti_mode_eit-af117859bfb3cc9bb1999ba00e89d68e854347ac.tar.gz
multi_mode_eit-af117859bfb3cc9bb1999ba00e89d68e854347ac.zip
Added line colors
-rw-r--r--squeezing_filter/grand_output.m17
1 files changed, 15 insertions, 2 deletions
diff --git a/squeezing_filter/grand_output.m b/squeezing_filter/grand_output.m
index c08e72d..13cf4d3 100644
--- a/squeezing_filter/grand_output.m
+++ b/squeezing_filter/grand_output.m
@@ -4,7 +4,18 @@ fnames=glob('pp_results/*.mat');
Nsteps=length(fnames)
+line_colors= [ ...
+ [ 0, 0, 1]; ...
+ [ 1, 0, 0]; ...
+ [ 0, 1, 0]; ...
+ [ 0, 0, 0]; ...
+ [ 0, 0.8, 0]; ...
+ [ 1, 0, 1]; ...
+ [ 0, 0, .6] ...
+ ];
+
figure(1); hold off;
+legend_str={};
% read the information from resulting files
for i=1:Nsteps
@@ -24,12 +35,14 @@ for i=1:Nsteps
B_str=strcat('B= ',B_str, ' G');
figure(1);
- plot(detunings, abs(Ep_out.y).^2 ); hold on
- legend(B_str);
+ plot(detunings, abs(Ep_out.y).^2, 'color', line_colors(i,:) ); hold on
+ legend_str{i}=B_str;
title('Signal out y-polarization');
endfor
+legend(legend_str);
+
figure(1); hold off;