MATLAB: How do i get these 2 plots on 1 axes? Right now i plot running average but datas over writes it i would like to have them on the same axes

gui

global datas;
global runningAverage;
x=0:135:17145;
% Create plot

plot(x,runningAverage,'Color',[1 0 0],'DisplayName','average');
% Create plot
plot(datas.data,'DisplayName','data');
m={'19','20','21','22','23','24','0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18'};
e=[0 750 1500 2250 3000 3750 4500 5250 6000 6750 7500 8250 9000 9750 10500 11250 12000 12750 13500 14250 15000 15750 16500 17250 18000];
set(handles.axes4,'YMinorTick','on','XTick',e,'XTicklabel',m);
xlabel('Time (Hours)EST');
ylabel('VLF Wave Strenth(Watts)');

Best Answer

After the first plot(), add the command
hold on