필터 지우기
필터 지우기

Controlling title position in 3D plots

조회 수: 14 (최근 30일)
Mike Wilson
Mike Wilson 2015년 1월 9일
댓글: Mike Wilson 2015년 1월 9일
I'm making animated 3D sequences of satellite data using the axesm('mapprojection', 'globe') option. The problem I have is that when viewing the result interactively, or when spinning the globe via animation, the title moves around on the screen.
I'm already using the approach suggested by other contributors of setting the title's units to inches. That does lock the title in vertically when using Rotate3D tool to interact with the globe, but title still moves horizontally. And when I zoom in, the title changes positions dramatically.
I also really want to move the title to the side of the plot instead of along the top as output will be 16x9 and I need the globe to fill as much of the vertical screen space as possible.
Interestingly, the colorbar does not have any of these issues. It stays right where it is initially placed through all Rotate3D and ZoomIn/Out actions.
Is there any way to create a title that behaves (stays locked in place) like the colorbar?

채택된 답변

matt dash
matt dash 2015년 1월 9일
편집: matt dash 2015년 1월 9일
You have a couple options. They are mostly based on the fact that the title's position is specified with respect to the axes position, which is why rotating the axes moves the title. You could either:
1) make a new invisible axes on top of the one you rotate, and use its title
2) instead of using the title command, make a text uicontrol and use it to display your title. Uicontrols are positioned in the figure, not the axes, so it won't be affected by rotating the axes.
  댓글 수: 1
Mike Wilson
Mike Wilson 2015년 1월 9일
Great suggestions Matt. Thanks very much!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by