%**************************************************************************
%This function plots the first integral of By.
%
%Input:
%plt_file, plot file for results
%z, z position the field was measured at (m)
%int_by_dz, first integral of By (Tm)
%int_by_dz_filt, filtered first integral of By (Tm)
%
%Zachary Wolf
%5/9/16

function [] = field_plot_i1y_filt(plt_file, z, int_by_dz, int_by_dz_filt)

%Initialize
figure;
hold on;

%Plot the field integral
plot(z, int_by_dz, 'linewidth', 0.5);
plot(z, int_by_dz_filt, 'linewidth', 3.);

%Labels
title('\int By dz vs Z');
xlabel('Z (m)');
ylabel('\int By dz (Tm)');

%Finalize
grid on;
zoom on;
hold off;

%Print
util_print_fig(plt_file);

%Done
