How can I change the default background color of Text Arrow?
12 次查看(过去 30 天)
显示 更早的评论
It is possible to annotate a figure by choosing Insert > Text Arrow from the menu bar on top of the figure. You then draw an arrow and type text into a text box. The default background color for the text is 'none'. Instead I would like the default to be 'white'. I know it is possible to set the default value of graphics properties by using a command like
set(0, 'DefaultAxesColor', 'white')
What is the equivalent command to set the default background color of all text arrows? I do not want to change the background for any other text objects, just the text that is entered in a text arrow.
0 个评论
采纳的回答
Jan
2012-3-31
Set the default background color of all text objects before creating the text arrows:
set(gcf, 'DefaultTextBackgroundColor', [1,0,0])
The text objects of the arrow objects are standard text objects, so you cannot set a default values for only these objects, but not for other text objects.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!