Sometimes the X or Y axis disappears when setting XLim & YLim !
But only the horizontal or vertical line, the ticks and labels are still visible...
Anyone knows why?
Thanks
wayne
"Stefan" <s...@m.de> wrote in message <gus5na$dsr$1...@fred.mathworks.com>...
f=figure('Units','normalized','DockControls','off','Name','name',...
'IntegerHandle','off','MenuBar','none','NumberTitle','off',...
'Position',[.05 .05 .65 .9],'HandleVisibility','callback',...
'Visible','on','Resize','off','Color',[.9255 .9137 .8471],...
'WindowStyle','normal');
p=uipanel('Parent',f,'Position',[.35 .55 .6 .4],'BackgroundColor','white');
a=axes('Parent',p,'OuterPosition',[0 0 1 1],'NextPlot','add',...
'TickDir','out','XLimMode','manual','YLimMode','manual');
X=[0;29.44;176.12;236.99;70.00;29.46;107.59;62.20;128.10;361.76;...
499.06;521.33;683.15;855.79;1068.42;1127.46;1300.15;1507.27;1411.25;...
1364.743;1479.39;1283.82;1157.09;1192.02;1133.50;1147.19;858.46;...
957.26;1143.40;1187.73;872.55;];
Y=[3.730;4.644;2.160;4.120;5.142;4.562;4.140;3.745;3.388;3.935;3.979;...
3.068;4.689;3.178;5.072;4.004;5.337;5.170;5.163;3.466;3.749;5.389;...
2.746;5.506;3.504;4.350;4.879;4.690;5.563;4.597;4.841;]*10^8;
h=plot(a,X,Y,'Color','blue','LineStyle','-','Marker','*');
xy{1}=[fix(min(X)) ceil(max(X))];
xy{2}=[fix(min(Y)) ceil(max(Y))];
set(a,{'xlim','ylim'},xy,'YDir','normal');