gca.XLimMode does not work
Mostra commenti meno recenti
Hi. I am using ginput to select some points and plot the points like this:
fig = figure;
ha1 = axes;
ha1.Position = [0.5 0.5 0.3 0.3]
ha1.XLim = [-10 -5];
ha1.YLim = [-5 -1];
set(ha1,'xlimMode','manual');
set(ha1,'ylimMode','manual');
[x,y] = ginput;
plot(x,y);
But every time the points are plotted, the xlim and ylim of the axes are changed automatically. And the ha1.XLimMode and ha1.YLimMode are changed to 'auto' somehow.
Anybody any ideas about this?
Best,
Shizhu
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graphics Performance in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!