我想通过使用 Gnuplot 来改变这个极坐标图,如下所示:
- 根据范围通过不同颜色更改线条颜色(径向线及其半圆形边缘)。例如,A到F间隔为红色,G到L为蓝色,M到S保持黑色
下面,我提供了我的代码,如果有人帮忙,我将不胜感激。
'设置小数'。'
unset border
set polar
set angles degrees #set gnuplot on degrees instead of radians
set style line 10 lt rgb "black" lw 4.0 #redefine a new line style for the grid
set grid polar 20 #set the grid to be displayed every 20 degrees
set grid ls 10
set rrange [0:0.3]
set rtics 0, 0.05, 0.2 format "%.2f"
set size square
set_label(x, text) = sprintf("set label '%s' at (0.22*cos(%f)), (0.22*sin(%f)) center", text, x, x) #this places a label on the outside
#here all labels are created
eval set_label(0, "A")
eval set_label(20, "B")
eval set_label(40, "C")
eval set_label(60, "D")
eval set_label(80, "E")
eval set_label(100, "F")
eval set_label(120, "G")
eval set_label(140, "H")
eval set_label(160, "I")
eval set_label(180, "J")
eval set_label(200, "K")
eval set_label(220, "L")
eval set_label(240, "M")
eval set_label(260, "N")
eval set_label(280, "O")
eval set_label(300, "P")
eval set_label(320, "Q")
eval set_label(340, "S")
set style line 11 lt rgb "blue" lw 10 pt 6 ps 6
plot "-" u 1:2 w lp ls 11
0 0.1499
020 0.1517
040 0.1474
060 0.1520
080 0.1526
100 0.1501
120 0.1491
140 0.1530
160 0.1515
180 0.1519
200 0.1534
220 0.1509
240 0.1501
260 0.1520
280 0.1481
300 0.1523
320 0.1529
340 0.1505
360 0.1499`