%**************************************************************************
%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, magnetic field from the NMR (T)
%plot_bvsvoc_v_vals, hall probe voltage values for plot of fit (V)
%plot_bvsvoc_b_vals, nmr field values for plot of fit (T)
%
%Zachary Wolf, 3/11/07

function [] = hall_calib_plot_bvsvoc(plt_file, msg, v_hall_offset_corr, b_nmr, plot_bvsvoc_v_vals, plot_bvsvoc_b_vals)

%Plot Vhall vs Bnmr, hall probe offset voltage
figure;
hold on;
plot(v_hall_offset_corr, b_nmr, 'b*', 'linewidth', .5);
plot(plot_bvsvoc_v_vals, plot_bvsvoc_b_vals, '-b', 'linewidth', 1.);
title(['Fit Bnmr vs Vhall Offset Corrected', msg]);
xlabel('Offset Corrected Hall Probe Voltage (V)');
ylabel('Bnmr (T)');
legend('Measurements', 'Fit', 'location', 'northwest');
grid on;
zoom on;
hold off;
util_print_fig(plt_file);

%Done
