Why does the marker size not change for multiple points plotted with SCATTER3 for MATLAB 7.1 SP3?
1 view (last 30 days)
Show older comments
When I run the following example from the documentation for SCATTER3 in MATLAB 7.1 (R14SP3), I do not obtain differently sized markers.
[x,y,z] = sphere(16);
X = [x(:)*.5 x(:)*.75 x(:)];
Y = [y(:)*.5 y(:)*.75 y(:)];
Z = [z(:)*.5 z(:)*.75 z(:)];
S = repmat([1 .75 .5]*10,prod(size(x)),1);
C = repmat([1 2 3],prod(size(x)),1);
scatter3(X(:),Y(:),Z(:),S(:),C(:),'filled'), view(-60,60)
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
There could be a problem with the rendering.
To workaround this issue include the following line after the code:
set(gcf, 'Renderer', 'zbuffer');
0 Comments
More Answers (0)
See Also
Categories
Find more on Graphics Performance 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!