MATLAB Answers

0

Problem rotating surf plots

Asked by Rainer on 9 May 2015
Latest activity Answered by Star Strider
on 9 May 2015
The following produces our favorite surf plot
[X,Y,Z] = peaks(25);
surf(X,Y,Z);
I can rotate the figure with the rotate3D mouse function. Then, when I add EITHER
set(gca, 'XLim',[0 4])
OR
set(gca, 'XScale', 'log')
everything still rotates fine. But when I add BOTH lines to the code, the figure can no longer be rotated. Any ideas?

  0 Comments

Sign in to comment.

1 Answer

Answer by Star Strider
on 9 May 2015

You can still change it using the view function, although not interactively.

  0 Comments

Sign in to comment.