diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2020-09-25 13:42:59 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2020-09-25 13:42:59 -0400 |
commit | e26e632cf64eb97ab042c0c7ecb26f2984ba4992 (patch) | |
tree | d1cdadb722b44119d9c976750979ed074a7bfe51 | |
parent | ad1da3a0ee91fc64d6841d88044df000ecade907 (diff) | |
download | multi_mode_eit-e26e632cf64eb97ab042c0c7ecb26f2984ba4992.tar.gz multi_mode_eit-e26e632cf64eb97ab042c0c7ecb26f2984ba4992.zip |
improved plots labels
-rw-r--r-- | compass_circ_output_results.m | 23 | ||||
-rw-r--r-- | 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') |