顶部 theta 顺时针旋转的 Gnuplot 极坐标图将内部径向网格原点保持在 0 角

Gnuplot polar plot with top theta clockwise keeps the inner radial grid origin at 0 angle

我有一个像这样的简单 time/value 数据集:

1   20
2   21
# ...
15  36

其中第一列是时间值,其他列存储一些测量值。我想在 "clock plot" 中绘制这些值,这是一个极坐标图(或雷达图),其中角度对应于时间瞬间,半径保持测量值。

因为我想复制一个时钟,所以我希望我的第一次测量从垂直位置开始,我可以做到set theta top clockwise。在我的数据集中有 15 秒,我可以将 360 度分成 24 度(每秒一个)set grid polar 24

但是,网格值从 0 度角开始(而不是像预期的那样从 90 度的顶角开始)。这让我很困扰,因为我的测量值相对于网格有偏移。 (查看所附图片)。

我该如何解决这个问题?我可以旋转网格以 90 度开始计数吗?非常感谢您。

作为解决方法,您可以手动绘制网格线。不是很好,但你在视觉上得到了想要的结果。

代码:

### polar grids aligned to north
reset session
set size square
set angle degrees

set polar
set theta clockwise top
unset border
set border polar
unset xtics
unset ytics
set ttics 24 format ""
set rtics 10
set grid rtics
unset key

set rrange[0:40]

# manually draw grid lines
do for [i=0:360:24] {
    set arrow i+1 from 0,0 to polar i,40 lw 0.5 dt 3 lc rgb "black" nohead
}

set samples 16
plot t/9 w lp pt 7 lc rgb "red"
### end of code

结果: