%**************************************************************************
%This function plots Bnmr as a function of the offset corrected Hall probe
%voltage Vhall.
%
%Input:
%plt_file, plot file for results
%msg, message for the title
%v_hall_offset_corr, hall probe voltage, offset corrected (V)
%b_nmr_resid, Bnmr fit residuals (T)
%
%Zachary Wolf, 3/11/07

function [] = hall_calib_plot_resid(plt_file, msg, v_hall_offset_corr, b_nmr_resid)

%Plot the residuals
figure;
hold on;
plot(v_hall_offset_corr, b_nmr_resid, 'b*', 'linewidth', .5);
title(['Polynomial Fit Residuals', msg]);
xlabel('Offset Corrected Hall Probe Voltage (V)');
ylabel('Bnmr - Bfit (T)');
grid on;
zoom on;
hold off;
util_print_fig(plt_file);

%Done
