removing zero data from Scatter3 figure
4 views (last 30 days)
Show older comments
I want to remove the zeros from the P matrix so the that they have transparent color on Scatter3 plot. I tried P(P==0)=NaN but the data still has a blue color. How do I set zero data (blue) to transparent color.
[x,y,z] = meshgrid(1:50,1:200,1:200); scatter3(y(:),z(:),x(:),5, P(:) ,'marker','.')
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!