How can I change the default background color of Text Arrow?

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.

 Accepted Answer

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 Comment

Thanks, Jan. Wish I could just change the arrow and not other text objects, but them's the breaks.

Sign in to comment.

More Answers (0)

Products

Asked:

K E
on 30 Mar 2012

Community Treasure Hunt

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

Start Hunting!