Problem rotating surf plots

1 vue (au cours des 30 derniers jours)
Rainer
Rainer le 9 Mai 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?

Réponses (1)

Star Strider
Star Strider le 9 Mai 2015
You can still change it using the view function, although not interactively.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by