summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;