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 个评论

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?
Can you provide the specific figure and "someText" you are using?

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 App Building 的更多信息

提问:

2015-12-18

Community Treasure Hunt

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

Start Hunting!

Translated by