Controlling title position in 3D plots
16 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!