How to change the alpha property (transparency) in the function “plot3”?

63 ビュー (過去 30 日間)
mosallanejad
mosallanejad 2023 年 9 月 6 日
回答済み: Shubham 2023 年 9 月 6 日
How to change the alpha property (transparency) in the function “plot3”? I could not find a serious solution? why the “plot3” does not have the alpha feature. It is odd.
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 9 月 6 日
Why do you expect a line plot to have transparency as a property?

サインインしてコメントする。

回答 (1 件)

Shubham
Shubham 2023 年 9 月 6 日
Hi,
I understand you want to set transparency in "plot3" function.
But Line series objects do not support transparency (alpha) values. But there is a workaround. You could try setting a four-element vector for the color property of the line.
l.color=[0,0,0,0.5]
with "l" as handle to the line to set the transparency to 0.5.
Refer to this MATLAB Answer for more info.

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by