Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
If statement gnuplot 5.4:dashtype如果返回;应为逗号“;错误_If Statement_Graph_Gnuplot - Fatal编程技术网

If statement gnuplot 5.4:dashtype如果返回;应为逗号“;错误

If statement gnuplot 5.4:dashtype如果返回;应为逗号“;错误,if-statement,graph,gnuplot,If Statement,Graph,Gnuplot,我想在gnuplot中用不同的线颜色和虚线类型绘制列表数据点集。每套由4个小“.csv”文件组成,这些文件应在同一庄园中绘制。其中一些数据集取自一篇论文,另一些是我自己的模拟数据 我希望纸张值为黑线,但虚线类型不同,模拟数据为实线,但颜色不同。在下面的“set”中,是for循环中的一个变量,它迭代所有指定的集合。对于表达式的linecolor lc ( set <= baseSets ? -1 : set ) lc(set如果查看help dashtype,您将看到有三种不同的符号用于编

我想在gnuplot中用不同的线颜色和虚线类型绘制列表数据点集。每套由4个小“.csv”文件组成,这些文件应在同一庄园中绘制。其中一些数据集取自一篇论文,另一些是我自己的模拟数据

我希望纸张值为黑线,但虚线类型不同,模拟数据为实线,但颜色不同。在下面的“set”中,是for循环中的一个变量,它迭代所有指定的集合。对于表达式的linecolor

lc ( set <= baseSets ? -1 : set )

lc(set如果查看
help dashtype
,您将看到有三种不同的符号用于编写dashtype选项

Syntax:
       dashtype N         # predefined dashtype invoked by number
       dashtype "pattern" # string containing a combination of the characters
                          # dot (.) hyphen (-) underscore(_) and space.
       dashtype (s1,e1,s2,e2,s3,e3,s4,e4) # dash pattern specified by 1 to 4
                          # numerical pairs <solid length>, <emptyspace length>
语法:
dashtype N#由数字调用的预定义dashtype
dashtype“pattern”#包含字符组合的字符串
#点(.)连字符(-)下划线(_)和空格。
破折号类型(s1、e1、s2、e2、s3、e3、s4、e4)#由1到4指定的破折号模式
#数字对,

在脚本中,
dt(set)或为清晰起见:
dtint(set
Syntax:
       dashtype N         # predefined dashtype invoked by number
       dashtype "pattern" # string containing a combination of the characters
                          # dot (.) hyphen (-) underscore(_) and space.
       dashtype (s1,e1,s2,e2,s3,e3,s4,e4) # dash pattern specified by 1 to 4
                          # numerical pairs <solid length>, <emptyspace length>