Automatic Axes Resize behavior
显示 更早的评论
Hi
Just a simple question, it seems that for 3D figures the position and outerposition of the axes do not quite match with what is explained in the following documnetation link: http://www.mathworks.se/help/techdoc/creating_plots/f1-32495.html
As I ran a very simple code to get the extent of the axes:
function DmnstrBrdrFg
plot3(1:5,1:5,1:5)
set(gca,'XTickLabel',[],'YTickLabel',[],'ZTickLabel',[])
Ps= get(gca,'Position');
OPs= get(gca,'OuterPosition');
PltBrdr(Ps,'P')
PltBrdr(OPs,'O')
function PltBrdr(Ps,Chr)
FndDtPnts(Ps(1),Ps(2),Chr,1);
FndDtPnts(Ps(1)+Ps(3),Ps(2),Chr,2);
FndDtPnts(Ps(1)+Ps(3),Ps(2)+Ps(4),Chr,3);
FndDtPnts(Ps(1),Ps(2)+Ps(4),Chr,4);
function Out=FndDtPnts(Ps1,Ps2,Chr,Id)
text(Ps1,Ps2,[Chr '_'num2str(Id)],'Unit','normalized','Visible','on');
As it seems the corners of OuterPosition point at where it is supposed to be the corners of Position and I don't know what are the corners where Position point at.
Any idea?
Best regards Afshin
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Surfaces, Volumes, and Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!