From a50fdda6ae1d227369831a684c0f5cb03da5e8e7 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 12 Oct 2020 21:58:18 -0400 Subject: redone phase diagram --- compass_lin_extrema_vs_theta_output_results.m | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/compass_lin_extrema_vs_theta_output_results.m b/compass_lin_extrema_vs_theta_output_results.m index b421179..c75ad2f 100644 --- a/compass_lin_extrema_vs_theta_output_results.m +++ b/compass_lin_extrema_vs_theta_output_results.m @@ -82,21 +82,33 @@ x_combo(ind)=1; y_combo(ind)=0; %x_combo = peak_1; %y_combo = peak_2; -surface([x_combo;x_combo], ... - [y_combo;y_combo], ... - [z;z],[col;col],... +ind=thetas<=pi/2; + +surface([x_combo(ind);x_combo(ind)], ... + [y_combo(ind);y_combo(ind)], ... + [z(ind);z(ind)],[col(ind);col(ind)],... 'facecol','no',... 'edgecol','interp',... 'linew',2); +%surface([x_combo;x_combo], ... + %[y_combo;y_combo], ... + %[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}); xlabel('Sideband ratio: a_3/(a_0+a_3)'); ylabel('Sideband ratio: a_0/(a_0+a_3)'); %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'}) +cbh=colorbar; +ceps=4e-2; % somehow it does not show if it is flashed +set(cbh,'YTick', [0,pi/4, pi/2-ceps]); % y octave uses YTick for colorbar? +set(cbh,'YTickLabel', {'0', '\pi/4', '\pi/2'}) +title(cbh,'\theta') +%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']) -- cgit v1.2.3