%**************************************************************************
%This function plots the temperature differences for the data sets.
%
%Input:
%plt_file, plot file for results
%date_num, date of the K measurement
%dt_ave, difference in average undulator temperature from the nominal temperature (C)
%input_name, legend for plot
%
%Zachary Wolf, 4/7/09

function [] = k_comp_plot_dtemp(plt_file, date_num, dt_ave, input_name)

%Make the plot
figure;
hold all;
for ii = 1 : length(dt_ave)
    plot(date_num(ii), dt_ave(ii), '*');
end
datetick('x', 'mm/yy', 'keepticks', 'keeplimits');
title('Temperature Difference From 20 C For Each Data Set');
xlabel('Date');
ylabel('Temperature Difference (C)');
legend(input_name', 'location', 'northwest');
grid on;
zoom on;
hold off;
util_print_fig(plt_file);

%Done
