3D plot: XY axes plane at Z=0

31 views (last 30 days)
Scott
Scott on 16 Apr 2014
Commented: Scott on 19 Apr 2014
When I create a 3D plot, e.g:
[x,y] = meshgrid([-2:.2:2]);
Z = x.*exp(-x.^2-y.^2);
surf(x,y,Z,gradient(Z));
The plane formed by the XY axes is drawn at Z=-0.5; can this be moved to Z=0, or at least the X,Y labels drawn at Z=0?

Accepted Answer

Antony
Antony on 16 Apr 2014
  1 Comment
Scott
Scott on 19 Apr 2014
Thanks Antony, got it sorted, eventually.

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Objects in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!