Gnuplot 在极坐标中绘制离散弧

Gnuplot to plot discrete arcs in polar coordinate

我在使用Gnuplot在极坐标下绘制两条离散圆弧时,遇到如下问题

例如:

reset    
r2 = 1
set polar
set size ratio 1 1,1
plot [0:2./3.*pi] r2, [pi:5./3.*pi] r2

这产生了错误的结果:

如果我将最后一段代码替换为:

plot [pi:5./3.*pi] r2*0.8,  [0:2./3.*pi] r2

结果还是不对。

请问一个圆弧在上象限,一个在下象限,怎么才能得到正确的结果?谢谢!

在互联网上进行了大量搜索后,受到 andyras answer 的启发,我在这里提供了我自己的问题的答案:

reset    
r2 = 1
set polar
set size ratio 1 1,1
set trange [0:2.*pi] noreverse nowriteback

fL(t)=t<=2./3.*pi ? r2 : 1/0
fR(t)=(t>=pi && t<=5./3.*pi) ? 0.8*r2 : 1/0

plot fL(t) with lines ls 1 lw 2,fR(t) with lines ls 1 lw 2 lc rgb 'red'