%**************************************************************************
%This function plots the B vs Z field data.
%
%Input:
%plt_file, plot file for results
%param, structure containing the analysis parameters
%field_name, 'Bx' or 'By'
%z, z position the field was measured at (m)
%b, measured field strength (T)
%
%Zachary Wolf, 12/24/05, 1/8/06

function [] = field_plot_b(plt_file, param, field_name, z, b)
    
%Plot the field
if param.fig_vis == false
    figure('visible', 'off');
else
    figure('visible', 'on');
end
plot(z, b, 'linewidth', 0.5);
title([field_name, ' vs Z']);
xlabel('Z Position (m)');
ylabel([field_name, ' (T)']);
util_add_pole_num_to_plot(param);  %Add pole numbers to the plot
grid on;
zoom on;

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

%Done
