From af117859bfb3cc9bb1999ba00e89d68e854347ac Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 22 Nov 2011 09:50:59 -0500 Subject: Added line colors --- squeezing_filter/grand_output.m | 17 +++++++++++++++-- 1 file 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; -- cgit v1.2.3