我试图找出如何在gnuplot中绘制虚线(请参阅下面的代码)。我一直在阅读this post,但它对我没用。如果我尝试:
set termoption dashed
set for [i=1:8] linetype i dashtype
我得设置线型的无关参数
知道如何将线条样式3更改为虚线或虚线?
set parametric
unset key
unset tics
unset border
set object rectangle from screen 0,0 to screen 1,1 behind fillcolor rgb 'white' fillstyle solid noborder
set style line 4 lc rgb 'black' pt 7
set style line 1 lc rgb 'blue' pt 7 ps 4
set style line 2 lc rgb 'red' pt 7 ps 3
set style line 3 lc rgb 'blue' pt 7 ps 3
splot [t=-pi/2:3*pi] sin(t),cos(t),t*0.23246067325 ls 4, '-' w p ls 1, '-' w p ls 1, '-' w p ls 1, '-' w p ls 2, '-' w p ls 2, '-' w p ls 2, '-' w p ls 2, '-' w p ls 2
0.0 1.0 0.0
e
0.0 1.0 1.4605934866804429
e
1.0 0.0 0.3651483716701107
e
0.0 -1.0 0.7302967433402214
e
-1.0 0.0 1.0954451150103321
e
1.0 0.0 1.8257418583505536
e
0.0 -1.0 2.19089023002
e
-1.0 0.0 -0.3651483716701107
e
set xrange [-5:5]
show xrange
set yrange [-5:5]
show yrange
set arrow from 0.,1.0,0. to 0.0, 1.0, 1.4605934866804429 nohead ls 3
set arrow from 0.,1.0,0. to 1.0, 0.0, 0.3651483716701107 nohead ls 3
set arrow from 0.0, 1.0, 1.4605934866804429 to 1.0, 0.0, 0.5651483716701107 nohead ls 3