フィルターのクリア

graphing -- make figure window larger

90 ビュー (過去 30 日間)
Lisa
Lisa 2015 年 3 月 4 日
回答済み: Image Analyst 2015 年 3 月 4 日
I'm plotting a bunch of points, but I want the figure window to appear larger when I run the code. I need this to be some command that I can include in the code. thanks

回答 (3 件)

Image Analyst
Image Analyst 2015 年 3 月 4 日
Try set() to enlarge/resize, but not truly maximize , the window:
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
or see Yair's function (attached) that uses an undocumented call to truly maximize the window.

Joseph Cheng
Joseph Cheng 2015 年 3 月 4 日
編集済み: Joseph Cheng 2015 年 3 月 4 日
you can do something like this
figh = figure(1);
plot(1:10,1:10)
pos = get(figh,'position');
set(figh,'position',[pos(1:2)/4 pos(3:4)*2])
where you can get the position (pos) of the current position. then in the set() you can set the window x,y position of the lower left corner and then how wide and tall the figure is [lowerleftcornerx lowerleftcornery width height]. for my screen and initial figure position the above works out well.

Chad Greene
Chad Greene 2015 年 3 月 4 日
The fullfig function creates full-screen figures. fullfig by itself initializes a new figure; fullfig(gcf) turns the current figure into a full-screen figure.

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by