%**************************************************************************
%This function plots the temperature for each data set.
%
%Input:
%plt_file, plot file for results
%date_num, date of the K measurement
%t_ave, average undulator temperature (C)
%input_name, legend for plot
%
%Zachary Wolf, 4/7/09

function [] = k_comp_plot_temp(plt_file, date_num, t_ave, input_name)

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

%Done
