フィルターのクリア

How to add transparency to plot3?

80 ビュー (過去 30 日間)
BananaBandana
BananaBandana 2019 年 10 月 17 日
回答済み: Sri Harsha Kondapalli 2019 年 10 月 17 日
Hello!
I have a simple code, where I plot a circle in a grid. The important part for the circle is this:
h = plot3(1.5,2.5,2.5,'o','MarkerSize',50,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[0 0.5 0]);
I want to add a transparency, but somehow nothing is working. I tried alpha, markerfacealpha or something with h.Color(4) = ... nothing worked.
Any ideas?
Thanks!
  1 件のコメント
darova
darova 2019 年 10 月 17 日
Look HERE

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

採用された回答

Sri Harsha Kondapalli
Sri Harsha Kondapalli 2019 年 10 月 17 日
Try using sphere funtion instead of plot3 for 3D objects where you can define edge and face alphas seperately. Go to property editor for all available options.
[x y z]=sphere(100);
surf(x,y,z);
In case you are looking for chaging alpha for markers, refer to the following link for more information

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by