MATLAB Answers

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

6 views (last 30 days)
Talha Yousuf
Talha Yousuf on 13 Dec 2018
Commented: Adam on 13 Dec 2018
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?

  1 Comment

Adam on 13 Dec 2018
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?

Sign in to comment.

Answers (1)

madhan ravi
madhan ravi on 13 Dec 2018
Edited: madhan ravi on 13 Dec 2018
why not? create a handle for each plot command and set the transparency factor as mentioned Here


Sign in to comment.

Translated by