%**************************************************************************
%This function plots the phase relative to the nominal radiation wave.
%
%Input:
%plt_file, plot file for results
%z, position along the undulator (m)
%phase_nom, phase to the nominal radiation wave relative to cell entrance (rad)
%
%Zachary Wolf, 5/23/11

function [] = phase_plot_phase_nom(plt_file, z, phase_nom)

%Initialize
figure;
hold on;

%Plot the phase
%plot(z, phase_nom * 180 / pi, 'linewidth', 2.);
plot(z, phase_nom * 180 / pi);

%Labels
title('Phase Relative To The Nominal Radiation Wave Relative To Cell Entrance');
ylabel('Phase (deg)');
xlabel('Z (m)');

%Finalize
grid on;
zoom on;
hold off;

%Print
util_print_fig(plt_file);

%Done
