Vertical Alignment error in textbox

9 vues (au cours des 30 derniers jours)
Isobel Leikis
Isobel Leikis le 7 Mai 2022
Commenté : Isobel Leikis le 7 Mai 2022
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!

Réponse acceptée

Jonas
Jonas le 7 Mai 2022
Modifié(e) : Jonas le 7 Mai 2022
you forgot the , (the comma) behind 'none'
then the code works for me
  1 commentaire
Isobel Leikis
Isobel Leikis le 7 Mai 2022
thank you! i completely missed that.

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by