MATLAB Answers

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

1 view (last 30 days)
mohammad
mohammad on 1 Aug 2012
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?

  0 Comments

Sign in to comment.

Accepted Answer

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

  1 Comment

mohammad
mohammad on 2 Aug 2012
thanks dear. Another command that does this, is:
set(gca,'LooseInset',get(gca,'TightInset'))

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags