Gnuplot 我可以将注释放入长打印命令中吗?

Gnuplot 我可以将注释放入长打印命令中吗?,gnuplot,Gnuplot,我的gnuplot plot命令是 tM=1.0*(a0*xmax+ymax) set parametric set trange [-0.2:tM] plot 1/0,1/0 title '\ict\qquad' lc rgb 'gray80' dt 5 lw 2,\ uldx0(t),uldy0(t) title '\disct' lc rgb 'web-green' lw 3,\ hpx0(t),hpy0(t) lc rgb 'pink' lw 2,\ vpx0(t),vpy0(t)

我的gnuplot plot命令是

tM=1.0*(a0*xmax+ymax)
set parametric
set trange [-0.2:tM]
plot  1/0,1/0 title '\ict\qquad' lc rgb 'gray80' dt 5 lw 2,\
uldx0(t),uldy0(t) title '\disct' lc rgb 'web-green' lw 3,\
hpx0(t),hpy0(t) lc rgb 'pink'  lw 2,\
 vpx0(t),vpy0(t) with filledcurve xy= 0.5*(xmi0+xpl0),0\
 fs transparent solid 0.25 fc rgb 'cyan' ,\
for [n=1:5] ix0(n*0.05+t*n*0.005/tM ,u0(0,n*0.05)),\
iy0(n*0.05+t*n*0.005/tM,u0(0,n*0.05))\
 lc rgb 'gray80' dt 5 lw 2,\
for [n=6:10] ix0(n*0.05+t*n*0.01/tM ,u0(0,n*0.05)),\
iy0(n*0.05+t*n*0.01/tM,u0(0,n*0.05))\
 lc rgb 'gray80' dt 5 lw 2,\
  for [n=22:36] ix0(n*0.025+t ,u0(0,n*0.025)),\
iy0(n*0.025+t,u0(0,n*0.025))\
lc rgb 'gray80' dt 5 lw 2,\
x0(t*pmax0(q1)/tM,q1), y0(t*pmax0(q1)/tM,q1)  \
 lc rgb q1color lw 2,\
x0(t*pmax0(ql0)/tM,ql0),  y0(t*pmax0(ql0)/tM,ql0)  \
 lc rgb qlcolor lw 2,\
x0(t*pmax0(QqxyL0)/tM,QqxyL0), y0(t*pmax0(QqxyL0)/tM,QqxyL0)  \
 lc rgb qhatmicolor lw 2,\
x0(t*pmax0(q2)/tM,q2) ,  y0(t*pmax0(q2)/tM,q2)  \
 lc rgb q2color lw 2,\
x0(t*pmax0(qpl0)/tM,qpl0), y0(t*pmax0(qpl0)/tM,qpl0)   \
 lc rgb qplcolor lw 2,\
x0(t*pmax0(QqxyR0)/tM,QqxyR0), y0(t*pmax0(QqxyR0)/tM,QqxyR0)  \
 lc rgb qhatplcolor lw 2

有没有一个好的方法可以用注释来打破这个问题,这也会有助于我以后再看这个问题?

都在一个
绘图
命令中,对吗? 我认为最接近的方法是利用以下事实:plot命令的每个子句都可以从定义开始。预期用途类似于
plot a=2 x**a
,但您可以选择一些垃圾变量并将其分配给注释字符串

plot \
    _c="Straight line" x   title _c, \
    _c="Parabola" x**2     title 'x^2', \
    _c="Some weird function" real(sinh(sqrt(x))) title 'squint(x)'

如果愿意,可以在绘图标题中使用该注释字符串,这与最初的预期用途非常接近。但也可以在plot子句中忽略它。这将只与读取源代码的人有关,而与plot命令的输出无关。

这是否回答了您的问题?我无法让它在plot命令中工作。也许我可以在脚本的其他地方使用块注释。谢谢谢谢谢谢,在绘图中的“for”命令之前,我确实需要做更多的工作,有必要放入一个虚拟绘图,以便注释为c1='%Inference curves'1/0,1/0\