%**************************************************************************
%This function plots the phase.
%
%Input:
%plt_file, plot file for results
%z, position along the undulator (m)
%phase, phase relative to cell entrance (rad)
%
%Zachary Wolf, 12/27/05

function [] = phase_plot_phase_2pi(plt_file, z, phase)

%Plot the phase
figure;
plot(z, phase / (2 * pi), 'linewidth', 0.25);
title('Phase In Units Of 2*PI');
ylabel('Phase / 2 pi');
xlabel('Z position (m)');
grid on;
zoom on;

%Write the figures to the plot file
util_print_fig(plt_file);

%Done
