GUI Live Plot Issues

2 vues (au cours des 30 derniers jours)
William Maurer
William Maurer le 11 Juil 2015
Commenté : William Maurer le 12 Juil 2015
Hi there,
I am attempting to run a GUI that will output a plot of position obtained from a video. There are nested for loops for stepping through a video, then finding points to plot. As these points are found I would like them to all go to the same plot. My issue is that the axes go crazy as they autosize each time I initialize scatter- despite using hold on. Below is a cut down version of my code (I think it should be enough to represent the situation).
axes(handles.axes2)
set(handles.axes2,'Ydir','reverse');
xlim([0,720]);
ylim([0,480]);
grid on
for i = 1:numframes
if get(handles.stopper,'UserData')
pause on
uiwait
pause off
end
for j:(something relating to bboxes)
dataxy = calculations
scatter(datax,datay,'Parent',handles.axes2)
draw now
hold on
end
for k:(something relating to centroids)
dataxy = calculations2
scatter(datax,datay,'Parent',handles.axes2)
draw now
hold on
end
end
Any help is greatly appreciated.
Best regards,
Will

Réponse acceptée

Walter Roberson
Walter Roberson le 12 Juil 2015
hold(handles.axes2, 'on')
  1 commentaire
William Maurer
William Maurer le 12 Juil 2015
Worked like a charm- thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Discrete Data Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by