What does this code mean?
set(gcf, 'units','normalized','outerposition',[0 0 1 1]);
No products are associated with this question.
Set ( set ) the current figure ( gcf ) to have 'Units' be 'normalized' and the 'outerposition', i.e. the actual borders of the figure to be at the bottom left corner (0,0) and span the whole screen (1,1).
Of you could just run it :)
And look at the doc:
doc set doc figure %click on figure properties
set(gcf, 'units','normalized','outerposition',[0 0 1 1]);
% 'units','normalized' : the unit can be
Units: [ inches | centimeters | normalized | points | {pixels} | characters ]
'outerposition',[0 0 1 1]); the position of your figure [x0,y0,width,height] for normalized unit the min is 0 and the max is 1
try
set(gcf, 'units','centimeters','outerposition',[0 0 20 10]);
@Azzi, not completely true:
get(gcf) %shows all properties set(gcf) %shows only user-settable properties
by all, I meant all user-settable properties. That's what is needed in his case
5 Comments
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/63162#comment_128957
@Teemu: All your questions have the same body ";". Please stop this, because all other users of this forum show, how to post a question in a clear and understandable manner. Use a short title and insert the question in the body. This would help to support the quality of the forum. Thanks.
Or has there been a question and you have deleted it after you got an answer?!
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/63162#comment_128963
If I remember, I won't bother to answer any questions from Teemu anymore.
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/63162#comment_128967
@Sean and Azzi: Has there been a question at first or is this only a strange layout idea of Teemu?
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/63162#comment_129004
@Jan, The question is in the title; frankly I like this format well enough. I know exactly what I'm getting into before clicking on anything.
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/63162#comment_129017
@Sean: Thanks. Perhaps this style is more convenient, when someony is used to read tweeds or rss feeds. I am so happy with the power to format code, in comparison to CSSM, that I do not like the just-title style.