Here is how I get two plot handler which will draw on the same graphic(axes).
figureHandle = figure('NumberTitle','off',...
'Name','RFID Characteristics',...
'Color',[0 0 0],'Visible','off');
axesHandle = axes('Parent',figureHandle,...
'YGrid','on',...
'YColor',[0.9725 0.9725 0.9725],...
'XGrid','on',...
'XColor',[0.9725 0.9725 0.9725],...
'Color',[0 0 0]);
hold on;
xData = 0; yData=0;
plotHandle1 = plot(axesHandle,xData,yData,'Marker','.','LineWidth',1,'Color',[0 1 0]);
plotHandle2 = plot(axesHandle,xData,yData,'Marker','.','LineWidth',1,'Color',[1 0 0]);
This is how I recursively use to draw real-time data.
set(plotHandle1,'YData',newestTag2Data(5,:),'XData',newestTag2Data(1,:));
hold on
set(plotHandle2,'YData',newestTag3Data(5,:),'XData',newestTag3Data(1,:));
hold off
set(figureHandle,'Visible','on');
drawnow;
However, I only see the plotHandle2, not plotHandle1.
Seems hold on does not work here.