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
jgg
2015년 12월 18일
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
2015년 12월 22일
Can you provide the specific figure and "someText" you are using?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!