Annotation Bug in 2015b?

When I create an annotation in 2015b 32bit as a text box within a figure with a command like this
annotation(figureHandle, 'textbox', [0.1 0.735 0.8 0.15], ...
'BackgroundColor', [1 1 1], ...
'FitBoxToText', 'off', ...
'FontUnits', 'normalized', ...
'Interpreter', 'none', ...
'String', someText);
the rectangle is fine, but the text flows out of the rectangle on the bottom side. Resizing the figure slightly brings the text back into the box. Unfortunately this trick does not work in a script.
The code has been originally created with 2011a 32bit and also works fine with 2014a 64bit. So I guess it is a bug in the new graphic engine.
Any ideas?

2 comentarios

jgg
jgg el 18 de Dic. de 2015
You seem to have a fixed textbox size, and tell the function 'FitBoxToText', 'off' to not resize the box. I assume that is why the text is overflowing; you are probably right about the version. Try changing this option to 'on' or changing the box size?
Rebecca Krosnick
Rebecca Krosnick el 22 de Dic. de 2015
Can you provide the specific figure and "someText" you are using?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Dic. de 2015

Comentada:

el 22 de Dic. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by