Lock axes
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all,
But whenever I drag them to the bottom or top of the axes, the axes change their limits, although I manually set them using
aH = axes( 'Xlim', [0 10], 'Ylim', [0 10]);
axis manual;
How can I disable the changing axes?
Any help is much appreciated
Akzeptierte Antwort
Jan
am 7 Dez. 2011
You can exclude the lines from influencing the AXES limits:
LineH = plot(1:10, rand(1, 10));
try
set(LineH, 'YLimInclude', 'off');
catch
error('Undocumented feature "YLimInclude" failed.');
end
As long as this feature is not documented, a TRY/CATCH helps to reveal problems in future versions. But it works at least since Matlab 6.5 - see: Undocumented: YLimInclude.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!