Surf z axis not visible

4 views (last 30 days)
Florian
Florian on 16 May 2012
Commented: Chad Greene on 16 Aug 2014
When i use surf (e.g. with peaks) the Z axis is not shown. (Linux 64, nvidia-drivers-295.49, Matlab 2012a)
  4 Comments
Florian
Florian on 16 May 2012
example:
>> peaks
output:
>> which surf -all
/home/shared/local/MATLAB/R2012a/toolbox/matlab/graph3d/surf.m
Florian
Florian on 16 May 2012
http://oi47.tinypic.com/j6jxoo.jpg

Sign in to comment.

Accepted Answer

Florian
Florian on 19 May 2012
Meanwhile I've noticed that it is visible in the exported eps. So that's good enough for me right now, though it is not a real solution to the problem...

More Answers (1)

Kye Taylor
Kye Taylor on 16 May 2012
After issuing
peaks
issue the command
zlabel('z')
  8 Comments
Florian
Florian on 21 May 2012
Yes!
>> set(gcf, 'Renderer', 'painters')
% zaxis visible
>> set(gcf, 'Renderer', 'zbuffer')
% zaxis visible
>> set(gcf, 'Renderer', 'opengl')
% zaxis NOT visible
Chad Greene
Chad Greene on 16 Aug 2014
Or more simply, rend, rend, rend

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!