%**************************************************************************
%This function plots x-y data and labels the axes.
%
%Input:
%plt_file, file to add the plot to
%x1, x-data set 1
%y1, y-data set 1
%x2, x-data set 2
%2y, y-data set 2
%ti, title for the plot
%le, legend for the plot
%xl, label for the x-axis
%yl, label for the y-axis
%
%Zachary Wolf
%12/16/14

function [] = util_plot_data2(plt_file, x1, y1, x2, y2, ti, le, xl, yl)

%Make the plot
figure;
hold on;
plot(x1, y1, 'b-', 'linewidth', 0.5);
plot(x2, y2, 'r-', 'linewidth', 0.5);
title(ti);
legend(le);
xlabel(xl);
ylabel(yl);
grid on;
zoom on;
hold off;
util_print_fig(plt_file);

%Done
