From: AJ on
Is there a setting similar to "backgroundcolor" that allows you to change the amount of transparency of the text box? We know that setting the color to none gives 100% transparency. Is there something that would allow for 50% transparency, for example?

Thanks.
AJ
From: Walter Roberson on
AJ wrote:
> Is there a setting similar to "backgroundcolor" that allows you to
> change the amount of transparency of the text box? We know that setting
> the color to none gives 100% transparency. Is there something that
> would allow for 50% transparency, for example?

If, as I suspect as the case, you are referring to objects created by a call
to text(), whether explicit or on your behalf, then there is no documented way
of doing that. Possibly Yair's http://undocumentedmatlab.com site might have
described a mechanism at the Java Swing level.
From: Yair Altman on
Walter Roberson <roberson(a)hushmail.com> wrote in message <hsc9h7$3be$2(a)canopus.cc.umanitoba.ca>...
> AJ wrote:
> > Is there a setting similar to "backgroundcolor" that allows you to
> > change the amount of transparency of the text box? We know that setting
> > the color to none gives 100% transparency. Is there something that
> > would allow for 50% transparency, for example?
>
> If, as I suspect as the case, you are referring to objects created by a call
> to text(), whether explicit or on your behalf, then there is no documented way
> of doing that. Possibly Yair's http://undocumentedmatlab.com site might have
> described a mechanism at the Java Swing level.

AJ - If you meant a text label using the uicontrol() function then the answer is no - it cannot be done.

If you meant an axes text label using the text() function, then I believe it can indeed be done. Unfortunately, graphic axes objects cannot be accessed at the Java level (as far as I know - I would love to learn otherwise). But in this case you can use a pure-Matlab fully-documented approach: simply place a semi-transparent patch (using its FaceAlpha and related properties) beneath a fully transparent text label.

Yair Altman
http://UndocumentedMatlab.com