From e26e632cf64eb97ab042c0c7ecb26f2984ba4992 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Fri, 25 Sep 2020 13:42:59 -0400 Subject: improved plots labels --- compass_circ_output_results.m | 23 ++++++++++++++++++++--- compass_lin_output_results.m | 4 +++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/compass_circ_output_results.m b/compass_circ_output_results.m index 2c54f7d..837c8ac 100644 --- a/compass_circ_output_results.m +++ b/compass_circ_output_results.m @@ -46,9 +46,11 @@ for i=1:N_detunings-1 line( thetas, zoom_factor*(transmission_matrix(i,:)), "color", line_colors(i,:) ); hold on; endfor - + +set(gca, 'XTick', [0,pi/4, pi/2, 3*pi/4, pi]) +set(gca, 'XTickLabel', {'0', '\pi/4', '\pi/2', '3\pi/4', '\pi'}) title("Relative sidebands amplitudes"); -xlabel("Angle theta, between B-field and light propagation direction"); +xlabel('Angle \theta, between B-field and light propagation direction'); ylabel("Amplitude"); legend(labels); print('compass_circ_sidebands_vs_theta.png') @@ -59,9 +61,24 @@ figure(2) j=4; k= 3; j=2; k= 7; % plotting parametric line of a sideband amplitude (j) vs another one (k) -plot(zoom_factor*(transmission_matrix(j,:)), zoom_factor*(transmission_matrix(k,:))) +z = zeros(1,N_angles); +col = thetas; % This is the color, vary with x in this case. +surface([zoom_factor*(transmission_matrix(j,:));zoom_factor*(transmission_matrix(j,:))], ... + [zoom_factor*(transmission_matrix(k,:));zoom_factor*(transmission_matrix(k,:))], ... + [z;z],[col;col],... + 'facecol','no',... + 'edgecol','interp',... + 'linew',2); +%plot(zoom_factor*(transmission_matrix(j,:)), zoom_factor*(transmission_matrix(k,:))) xlabel( labels{j}); ylabel( labels{k}); +%clabel('\theta'); +colorbar; +set(gca, 'ZTick', [0,pi/4, pi/2, 3*pi/4, pi]) +set(gca, 'ZTickLabel', {'0', '\pi/4', '\pi/2', '3\pi/4', '\pi'}) + +%colorbar('Ticks',[0, pi/2, pi], 'TicksLabels', ['0', '\pi/2', '\pi']) +%ctickslabel(['0', '\pi/2', '\pi']) title('One sideband amplitude vs another for different angles theta'); print('compass_circ_sidebands_combo_vs_theta.png') diff --git a/compass_lin_output_results.m b/compass_lin_output_results.m index cc0e122..dc840c6 100644 --- a/compass_lin_output_results.m +++ b/compass_lin_output_results.m @@ -48,8 +48,10 @@ for i=1:N_detunings-1 endfor title("Relative sidebands amplitudes"); -xlabel("Angle phi between x-axis and linear polarization, B-field is in y-z plane)"); +xlabel('Angle \phi between x-axis and linear polarization, B-field is in y-z plane)'); ylabel("Amplitude"); +set(gca, 'XTick', [0,pi/4, pi/2, 3*pi/4, pi]) +set(gca, 'XTickLabel', {'0', '\pi/4', '\pi/2', '3\pi/4', '\pi'}) legend(labels); print('compass_lin_sidebands_vs_phi.png') -- cgit v1.2.3