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 Kommentare

jgg
jgg am 18 Dez. 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 am 22 Dez. 2015
Can you provide the specific figure and "someText" you are using?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 18 Dez. 2015

Kommentiert:

am 22 Dez. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by