Focus on axes with rotate3d

조회 수: 1 (최근 30일)
Rayane
Rayane 2014년 1월 20일
댓글: Rayane 2014년 1월 20일
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
Rayane
Rayane 2014년 1월 20일
rotate3d(handles.figure1,'on')
Problem solved ;)

댓글을 달려면 로그인하십시오.

채택된 답변

Bruno Pop-Stefanov
Bruno Pop-Stefanov 2014년 1월 20일
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?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by