Focus on axes with rotate3d

1 Ansicht (letzte 30 Tage)
Rayane
Rayane am 20 Jan. 2014
Kommentiert: Rayane am 20 Jan. 2014
Hello
How can I set the rotate3d option to a specific axes ?
My Problem is that when this command line is reached a new figure opens by itself
how can solve this problem ?
Thanks
  1 Kommentar
Rayane
Rayane am 20 Jan. 2014
rotate3d(handles.figure1,'on')
Problem solved ;)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Bruno Pop-Stefanov
Bruno Pop-Stefanov am 20 Jan. 2014
You can enable rotation only in the specific axes by executing the following line:
rotate3d(axes_handle)
For example, if you had two axes as subplots in one figure, you could enable rotation in only the second one with:
figure;
ax1 = subplot(1,2,1)
plot(...)
ax2 = subplot(1,2,2)
plot(...)
rotate3d(ax2);
See the documentation for rotate3d for details.
As for your question about a new figure opening by itself, can you please show us your code where this happens?

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by