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

function [] = field_plot_i1x_filt(plt_file, z, int_bx_dz, int_bx_dz_filt)

%Initialize
figure;
hold on;

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

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

%Finalize
grid on;
zoom on;
hold off;

%Print
util_print_fig(plt_file);

%Done
