Vertical Alignment error in textbox

조회 수: 12 (최근 30일)
Isobel Leikis
Isobel Leikis 2022년 5월 7일
댓글: Isobel Leikis 2022년 5월 7일
I = imread('END_OF_YEAR Gameboard.jpg')I = imread('Gameboard1.png');
f = figure();
imshow(I);
title(name);
annotation('textbox', [0.13 0.08 0.8 0.1], ...
'String', 'LEVEL 1 complete! Please close the gameboard window to continue.', ...
'Color', '#E00E7C', ...
'FontWeight', 'bold', ...
'EdgeColor', 'none' ...
'VerticalAlignment', 'bottom');
uiwait(f);
% I keep getting an error saying that verticalalignment is unrecognised. My text is overlapping onto my picture and i need it below.
% Thanks in advance!

채택된 답변

Jonas
Jonas 2022년 5월 7일
편집: Jonas 2022년 5월 7일
you forgot the , (the comma) behind 'none'
then the code works for me
  댓글 수: 1
Isobel Leikis
Isobel Leikis 2022년 5월 7일
thank you! i completely missed that.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Other Formats에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by