From 8f7adc97282a179df82c4b54802797917dba4961 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 12 Oct 2020 20:54:52 -0400 Subject: redone drawing condition --- compass_lin_extrema_vs_theta_output_results.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compass_lin_extrema_vs_theta_output_results.m b/compass_lin_extrema_vs_theta_output_results.m index eb151b8..1c82429 100644 --- a/compass_lin_extrema_vs_theta_output_results.m +++ b/compass_lin_extrema_vs_theta_output_results.m @@ -33,7 +33,7 @@ line_colors= [ ... ]; figure(1); -if (exist('keep','var') && keep) +if (~exist('keep','var') || ~keep) clf(); end hold off; @@ -60,7 +60,7 @@ print('compass_lin_sidebands_vs_theta.png') hold off; figure(2) -if (exist('keep','var') && keep) +if (~exist('keep','var') || ~keep) clf(); end % resonance -3 -2 -1 0 1 2 3 @@ -104,9 +104,10 @@ title('Phase diagram for different angles theta'); print('compass_lin_sidebands_phase_diagram_vs_theta.png') figure(3) -if (exist('keep','var') && keep) +if (~exist('keep','var') || ~keep) clf(); end +hold all; plot(thetas, (x_combo)) set(gca, 'XTick', [0,pi/4, pi/2, 3*pi/4, pi]) -- cgit v1.2.3