Add transparency (alpha channel) to ScopeLineAnimator line and / or markers

1 回表示 (過去 30 日間)
mkoh
mkoh 2020 年 1 月 30 日
編集済み: mkoh 2020 年 1 月 30 日
I have adapted the sfunxy sfunction for 2D plots in Simulink for my purposes and now I want to ajust the transparency of the line markers.
On UndocumentedMatlab.com I found a tutorial on how to modify marker transparency in standard plots . However, this approach does not work with the line objects of the ScopeLineAnimator class used in sfunxy.
ud.XYAxes = axes;
new_line = feval(@()matlab.graphics.animation.ScopeLineAnimator('maxNumVertices',50000));
new_line.Parent = ud.XYAxes;
ud.XYLine = new_line;
set(ud.XYLine, 'LineStyle','none','Color','r','Marker','.','MarkerSize',10);
set(ud.XYLine, 'MarkerFaceClor',uint8(255*[1;0;0;0.2]) % This does not work
So my question is: Is there a way to make lines and / or markers of the ScopeLineAnimator class transparent?

回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by