Text properties 'BackgroundColor' problem.

Feb 25, 2005 0 Replies

I would like to achieve the result similar to this from MW helpdesk:

formatting link
wish to have nontransparent background. Well, it doesn't work properly. Look at this code pasted from MW site:


> text(3*pi/4,sin(3*pi/4),...
['sin(3*pi/4) = ',num2str(sin(3*pi/4))],... 'HorizontalAlignment','center',... 'BackgroundColor',[.7 .9 .7]);

??? Error using ==> text Invalid text property: 'BackgroundColor'.


I was looking for this property in Property Editor. It doesn't exist (at least for text). I use MATLAB Version 6.1.0.450 (R12.1) on PCWIN.


Mayby someone could help me. Mayby there is another way to make background nontransparent (for text placed on the plot) or mayby I do something wrong? I would be greatful for help or suggestions.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required