How to add transparency to animatedline?
5 ビュー (過去 30 日間)
古いコメントを表示
I have some animation in plot that I want to add transparency to, since I'm plotting multiple data with different color, and sometimes they overlap. I tried alpha(object, 0.5), where object is the object created by command animatedline. But then the warning shows that 'The alpha command is not compatible with the specified objects'.
Is there a way to make the animatedline objects transparent to an extent? Thanks.
0 件のコメント
採用された回答
Walter Roberson
2017 年 7 月 13 日
It turns out to be possible, but not documented. Instead of setting the Color property to an RGB triple, set it to a quad, a list of 4 numbers between 0 and 1, RGBA.
3 件のコメント
Walter Roberson
2017 年 7 月 13 日
It appears that MarkerFaceColor cannot be set to transparent that way. I will keep looking.
Walter Roberson
2017 年 7 月 13 日
I figured out a java approach to find and set the MarkerFaceColor including an alpha component. Unfortunately, the alpha part does not "stick": as soon as it is set, it gets reset back to 1.0
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!