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.

采纳的回答

Jan
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.
  1 个评论
K E
K E 2012-4-2
Thanks, Jan. Wish I could just change the arrow and not other text objects, but them's the breaks.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by