八度:ezpolar 标签和网格

Octave: ezpolar labels and grid

我看过 octave 中的 ezpolar 函数,我想修改标签和网格,比方说简单地删除它们。 我找到了这个

但这是关于标题的。它可以简单地通过 title("");.

删除

其他的东西是怎么回事,我可以把它们也去掉吗?

谢谢 卡尔

这是一个例子:

spiralObj = ezpolar(@(t) t);
set(spiralObj, 'linewidth', 10, 'linestyle', ':', 'color', [1,0.5,0]);
polarGrid = get(spiralObj, 'parent');
set(polarGrid, ...
    'gridlinestyle', '--', ...
    'linewidth', 1, ...
    'rtick', [1:10], ...
    'ttick', [0:90:359], ...
    'color', [0.45, 0.65, 0.85]);

更新 要删除所有网格线、点标签、标题等:

spiralObj = ezpolar(@(t) t);
set(spiralObj, 'linewidth', 10, 'linestyle', ':', 'color', [1,0.5,0]);
polarGrid = get(spiralObj, 'parent');
set(polarGrid, ...
    'gridlinestyle', 'none', ...
    'rtick', [10], ...
    'ttick', [0], ...
    'title', '', ...
    'color', [0.45, 0.65, 0.85]); 

在独立轴上独立绘制内容(可能包含 "text" 命令)

ax2 = axes()
x = 0:0.01:12*pi; y = sin(x);
plot(x,y, 'linewidth', 5, 'linestyle', ':', 'color', [0,1,0.5]);
set(ax2, 'color', 'none');
axis off; axis([0,12*pi,-2,2]);