在一个gnuplot中绘制两个splot

在一个gnuplot中绘制两个splot,gnuplot,Gnuplot,我目前在gnuplot脚本中绘制了一个带有一些点的螺旋线。现在我想在另一个螺旋内画第二个螺旋,公式是:splot[t=-1.5*pi:6*pi]sin(t),cos(t),t*0.23246067325 但是,如果我只是将命令添加到脚本中,它似乎不起作用。有没有具体的方法 reset clear set parametric unset key unset tics unset border set termoption dashed set termoption dashlength 2

我目前在gnuplot脚本中绘制了一个带有一些点的螺旋线。现在我想在另一个螺旋内画第二个螺旋,公式是:splot[t=-1.5*pi:6*pi]sin(t),cos(t),t*0.23246067325

但是,如果我只是将命令添加到脚本中,它似乎不起作用。有没有具体的方法

reset
clear
set parametric
unset key
unset tics
unset border 

set termoption dashed
set termoption dashlength 2

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 7 lc rgb 'royalblue' pt 7 ps 10

splot [t=-1.5*pi:6*pi] sin(t),cos(t),t*0.23246067325 ls 4, '-' w p ls 7,  '-' w p ls 7
0.0 1.0 2.9211869733608857 #G#
e
-1.0 0.0 4.016632088371217 #E#
e

变量
t
用于二维绘图。对于三维绘图(
splot
),使用
u
v

似乎您只需要
u
,因此在输入
splot
命令之前,我删除了您的“
[t=-1.5*pi:6*pi]
”,并将其替换为
set urange[-1.5*pi:6*pi]

(您只指定了一个螺旋,因此我将第一个螺旋稍微缩放一点以生成第二个螺旋。而
set term option dashlength 2
对我不起作用,因此我将其删除。)

这将生成以下输出:

reset
clear
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 7 lc rgb 'royalblue' pt 7 ps 10

set urange [-1.5*pi:6*pi]

splot sin(u), cos(u), u*0.23246067325 ls 4 ,\
      0.8*sin(u), 0.8*cos(u), u*0.23246067325 ls 1 ,\
      '-' w p ls 7,  \
      '-' w p ls 7
0.0 1.0 2.9211869733608857 #G#
e
-1.0 0.0 4.016632088371217 #E#
e