%**************************************************************************
%This function plots Vhall as a function of Bnmr.  The Hall probe offset
%voltage is also plotted.
%
%Input:
%plt_file, plot file for results
%msg, message for the title
%b_nmr, magnetic field from the NMR (T)
%v_hall, hall probe voltage (V)
%plot_vvsb_b_vals, nmr field values for plot of fit (T)
%plot_vvsb_v_vals, hall probe voltage values for plot of fit (V)
%v_hall_offset, hall probe offset voltage (V)
%
%Zachary Wolf, 3/11/07

function [] = hall_calib_plot_vvsb(plt_file, msg, b_nmr, v_hall, plot_vvsb_b_vals, plot_vvsb_v_vals, v_hall_offset)

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

%Done
