필터 지우기
필터 지우기

figure position with "tiledlayout" function.

조회 수: 34 (최근 30일)
Ankitkumar Patel
Ankitkumar Patel 2023년 7월 10일
댓글: Adam Danz 2023년 7월 10일
tiledlayout(2,2);
[X,Y,Z] = peaks(20);
% Tile 1
nexttile
surf(X,Y,Z)
% Tile 2
nexttile
contour(X,Y,Z)
% Tile 3
nexttile
imagesc(Z)
% Tile 4
nexttile
plot3(X,Y,Z)
Is there any position funtion like "fig1.Position = [0 400 1500 1000];" (ex. fig1=figure(1000)) with tiledlayout so that I can see this in full screen and whenever I save automatically I can see all the detailed clearly?

채택된 답변

Anuj
Anuj 2023년 7월 10일
Hi Ankit,
you can set the position and size of the figure window when using tiledlayout in MATLAB.
% Create a figure with a specific position and size
fig1 = figure('Position', [0 400 1500 1000]);
% Create a tiled layout
tiledlayout(2,2);
[X,Y,Z] = peaks(20);
% Tile 1
nexttile
surf(X,Y,Z)
% Tile 2
nexttile
contour(X,Y,Z)
% Tile 3
nexttile
imagesc(Z)
% Tile 4
nexttile
plot3(X,Y,Z)
By setting the position and size of the figure window, you can adjust it to your desired dimensions and ensure that all the details are clearly visible. Additionally, when you save the figure, it will be saved with the specified position and size
  댓글 수: 1
Adam Danz
Adam Danz 2023년 7월 10일
> so that I can see this in full screen
Another option:
figure('WindowState','maximized')

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by