如何标记极图的X轴?

107次观看(最近30天)
凯特琳·索登
凯特琳·索登 2020年12月14日
到目前为止,我找到了一种方法来使径向轴容易,但是我的一项旧测试要求我将X轴计算,我无法找到一种方法。X轴是否有一个版本?我应该命名为“ T”。任何帮助都是适用的!
ax = polaraxes;
ax.raxis.label.string ='r';

答案(2)

克里斯·拉皮埃尔(Cris Lapierre)
A polar plot does not have a x-axis. It is defined by R and Theta.
为了 标签 ,,,,there is a title, subtitle, and legend.
您可以看到完整的属性列表 这里
3条评论
克里斯·拉皮埃尔(Cris Lapierre)
实际上,这不是完全正确的。您可以设置位置属性,尽管它是按照与 文本
极地图([0 pi/2 pi],[1 2 3])
ax = gca;
d = ax.thetadir;
ax.thetadir ='顺时针';
标题(“聪明的标题”);
字幕(“有见地的字幕”,,,,“位置”,[90,3.8],,“水平对齐”,,,,“中央”

登录发表评论。


凯利·科尔尼(Kelly Kearney)
You can label polar axes with text objects. I find the following positioning works well as a default... you may need to play around with coordinates, horizontal and vertical alignment, and rotation to find a combination that works best for you:
rmax = 2;
hax = polaraxes('rlim',[0 rmax]);
文本(0,rmax/2,'R轴标签',,,,“水平”,,,,'中央',,,,'vert',,,,'最佳',,,,'回转',0);
文本(pi/4,rmax*1.2,'theta轴标签',,,,“水平”,,,,'中央',,,,'回转',-45);

下载188bet金宝搏

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

开始狩猎!