필터 지우기
필터 지우기

How can I combine three figures into one and save as single image?

조회 수: 2 (최근 30일)
MUHAMED JISHAD T K
MUHAMED JISHAD T K 2021년 3월 11일
댓글: MUHAMED JISHAD T K 2021년 3월 11일
I am trying to plot spectrogram of three separate signals. I need it in a single image file without axes and colorbar, one figure stacked above the other (no blank space in between). I have to generate a large number of such figures for feeding to a transfer learning algorithm for classification.
I need help with combining the figures.
  댓글 수: 2
Jorg Woehl
Jorg Woehl 2021년 3월 11일
Have you looked at nexttile? The following will create three vertically stacked plots... but with (minimal) blank space in between:
t = tiledlayout(3, 1, 'TileSpacing', 'none');
nexttile
% first plot
axis off
nexttile
% second plot
axis off
nexttile
% third plot
axis off
Alternatively, you could use subplot with the Position property, which gives you more control:
subplot('Position', [0 0 1 0.33])
% first plot
axis off
subplot('Position', [0 0.33 1 0.33])
% second plot
axis off
subplot('Position', [0 0.66 1 0.33])
% third plot
axis off
MUHAMED JISHAD T K
MUHAMED JISHAD T K 2021년 3월 11일
Thanks a lot.. The second method served my purpose.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by