1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| Visualisation = rand(tailleVisualisation,2)./10;
%creation du vecteur des indices
indices = 1:1:tailleVisualisation;
% Figure principale
hFigVisu = figure(...
'units','pixels',...
'position',[300 100 800 600],...
'color',[0.128 0.5 0.9],...
'name','Visualisation',...
'numbertitle','off',...
'MenuBar','figure',...
'tag','FigVisu');
% Le fils est un objet AXES
hAxesVisu = axes(...
'Ylim',[-0.5 0.5],...
'Xlim',[indices(1) indices(end)],...
'tag','AxesVisu');
% Le petit-fils est un objet de type LINE
% C'est ici le "plot" de Visualisation
plot(hAxesVisu,Visualisation);
hPlotVisu = get(hAxesVisu,'children');
pause
% Les specifications ds limites des axes lorsque de l'appel a Axes sont
% detruites par l'appel a plot, il faut donc le faire ici
set(hAxesVisu,'Xlim',[indices(1) indices(end)]);
set(hAxesVisu,'Ylim',[-0.5 0.5]);
drawnow |
Partager