diff options
-rw-r--r-- | compass_lin_extrema_vs_theta_output_results.m | 7 |
1 files 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]) |