필터 지우기
필터 지우기

Disabling Stretch-to-fill does not work

조회 수: 6 (최근 30일)
Bananach
Bananach 2015년 11월 25일
댓글: Matt McGough 2018년 3월 14일
I am displaying a 3-D scatterplot with
scatter3(rand(100,1),rand(100,1),rand(100,1))
By default, the plot is stretched to fill when I rotate it. According to the documentation and various online sources I should be able to change this by any of the following commands, but none works:
axis equal
set(gca,'DataAspectRatioMode','manual')
set(gca,'DataAspectRatio',[1 1 1])
set(gca,'PlotBoxAspectRatioMode','manual')
set(gca,'PlotBoxAspectRatio',[1 1 1])
I figure this is because the plot does not fit in the bounding box when I rotate, unless it is stretched. However, I doubt the described behavior is intended because as soon as I zoom out or in a bit, MATLAB accepts it can't display the whole figure, and gives up stretching. Intended or not, how can I definitely turn of stretch-to-fill?
  댓글 수: 1
Matt McGough
Matt McGough 2018년 3월 14일
I also am having stretch-to-fill occur when it should not. I am using camva in a surface plot to show the course visibility to a UGV camera. Mat-Lab is dynamically changing horizontal FOV and stretching the subplot to fill the whole window, making it useless as an engineering tool.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by