How can I make the plot fill the entire plotting window?

조회 수: 46 (최근 30일)
John Lof
John Lof 2016년 7월 16일
댓글: Will Reeves 2025년 6월 5일
Hello,
I'm a new user and I enjoy MATLAB a lot. This is my first post.
I have found out how to make the plotting window fill the entire screen. But I have not yet found out how to make the plot fill the entire window.
figure('units','normalized','position',[1. 1. 1. 1.])
axis vis3d equal; view([-37.5,30]); camlight; grid on;
[X,Y,Z] = cylinder(); h=surf(X,Y,Z);
xlim([-2., 2.]); ylim([-2., 2.]); zlim([-2., 2.]);
xlabel('X X'); ylabel('Y Y'); zlabel('Z Z');
drawnow;
The unused area is not so big in this example but my plots would definitely improve by removing it. (A considerable area would be gained.) Here is a screenshot from plotting animation test-data: http://i.imgur.com/xbdYlX5.png
I want to fill the empty space in the window, around the diagram. I would even like to put the corners of the diagram slightly outside the plotting window, since I do not draw in the corners. When small objects move around large areas I need this resolution to see them clearly.
Thank you

채택된 답변

Walter Roberson
Walter Roberson 2016년 7월 16일
axes('Units', 'normalized', 'Position', [0 0 1 1])
before the "axis vis3d equal"
  댓글 수: 2
John Lof
John Lof 2016년 7월 16일
Thank you very much for giving the correct answer so quickly!
Will Reeves
Will Reeves 2025년 6월 5일
Any ideas on how to apply this to a "app designer" window? It doesn't seem to behave in teh same way.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by