Make no space between axes of a figure with boundaries of that figure windows

When plotting, I use
h1=figure; set(h1,'Position',[1 1 1680 1050])
but this command only make the figure windows, full screen. It is necessary, the own figure itself also be in maximum size and in full size. And be no space between axes with boundaries of figure windows. How this space can be zero?

 채택된 답변

You could do the following:
h1=figure;
plot(rand(10));
set(gca,'Position',[0 0 1 1]);

댓글 수: 1

thanks dear. Another command that does this, is:
set(gca,'LooseInset',get(gca,'TightInset'))

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2012년 8월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by