How to add transparency to animatedline?

조회 수: 7 (최근 30일)
Tong Zhao
Tong Zhao 2017년 7월 13일
댓글: Walter Roberson 2017년 7월 13일
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.

채택된 답변

Walter Roberson
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
Walter Roberson 2017년 7월 13일
It appears that MarkerFaceColor cannot be set to transparent that way. I will keep looking.
Walter Roberson
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 CenterFile Exchange에서 Animation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by