Vertical Alignment error in textbox

6 ビュー (過去 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 Center および File ExchangeOther Formats についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by