How to make the surface plot transparent??

I want to plot some data points over surface paraboloid. To increase visibility I want to increase transparency of surface plot. How to do that.

1 件のコメント

Swathi Chandrasekar
Swathi Chandrasekar 2017 年 7 月 11 日
Check out the set command in matlab.There is a property called alpha.After the surf command just say alpha(0.5).The value lies between 0 and 1.The closer to zero the more transparent it is.

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

 採用された回答

Friedrich
Friedrich 2012 年 3 月 1 日

6 投票

Hi,
use the alpha property:
hold on
surf(peaks(30))
alpha 0.5
plot3(10,10,10,'r*')
hold off

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2012 年 3 月 1 日

0 投票

Look at the alphadata property in:
web([docroot '/techdoc/ref/surface_props.html'])

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by