I am using the following code to generate a 2-D line plots.
figure('Name','Event Altitude','numbertitle','off');axes('Position', [0.04 0.07 1.16 0.884]);h = plot(Pre_Time1, Pre_Density1, '-o', Post_Time1, Post_Density1, '-o', 'MarkerSize', 15);set(h(1), 'Color', 'r', 'MarkerFaceColor', 'r');set(h(2), 'Color', 'g', 'MarkerFaceColor', 'g');title(Event_Title, 'Fontsize', 20, 'fontweight', 'b');legend(Source1, 'Location', 'NortheastOutside');set(legend, 'FontSize', 20);set(gca, 'Fontsize', 16);grid on;box on;
Within these plots are 2 distinct sets of data – Pre_Density1 (Red) and Post_Density1 (Green).
In the plot below, each data set is plot separately with no lines between the 2 sets. Is there a way to connect the 2 data sets?
Thank you.
Best Answer