Is there any way to plot two plots in same figure and changing the transparency separately?

6 ビュー (過去 30 日間)
Talha Yousuf
Talha Yousuf 2018 年 12 月 13 日
コメント済み: Adam 2018 年 12 月 13 日
I want to plot 3 plots in matlab in the same figure. In the figure shown, orange dots have been made using scatter plot and other one( torus) using surface command. When I use alpha to set transparency, it causes issues. I want to set transparency for torus to 0.2 and for scatter plot to 0.6. Is there any way to achieve this?
workspace.png
  1 件のコメント
Adam
Adam 2018 年 12 月 13 日
Saying it 'causes issues' is no help to anyone trying to help you! Say what actually happens. do you get an error? Does it not apply the transparency correctly? Something else?

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

回答 (1 件)

madhan ravi
madhan ravi 2018 年 12 月 13 日
編集済み: madhan ravi 2018 年 12 月 13 日
why not? create a handle for each plot command and set the transparency factor as mentioned Here

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by