Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/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
Gnuplot使用linecolors设置绘图_Colors_Gnuplot - Fatal编程技术网

Gnuplot使用linecolors设置绘图

Gnuplot使用linecolors设置绘图,colors,gnuplot,Colors,Gnuplot,我遇到了一个我无法克服的奇怪问题。 我正在将4个文件中的数据打印到1中,我希望每个打印都有不同的线颜色。但是命令lt#一些数字不起作用,它提供不同的线型,但从不提供颜色。 我正在使用一个脚本来生成一个文件,在gnuplot中通过管道将其传输,以生成一个.ps文件 set terminal postscript set encoding iso_8859_1 set title 'energy difference for a polymer' set xlabel 'n, polymer len

我遇到了一个我无法克服的奇怪问题。 我正在将4个文件中的数据打印到1中,我希望每个打印都有不同的线颜色。但是命令
lt#一些数字
不起作用,它提供不同的线型,但从不提供颜色。 我正在使用一个脚本来生成一个文件,在gnuplot中通过管道将其传输,以生成一个.ps文件

set terminal postscript
set encoding iso_8859_1
set title 'energy difference for a polymer'
set xlabel 'n, polymer length'
set ylabel '{/Symbol D}E, eV'
set key bottom left
set xzeroaxis
set output 'deltaE_PQL.ps'
set boxwidth 0.9 relative
set style fill solid 1.0
plot 'deltaE_plotm2' u 1:2 with lines lt 1 title '| -2 {/Symbol \361}', \
'deltaE_plotm1' u 1:2 with lines lt 2 title '| -1 {/Symbol \361}', \
'deltaE_plot1' u 1:2 with lines lt 3 title '| 1 {/Symbol \361}', \
'deltaE_plot2' u 1:2 with lines lt 4 title '| 2 {/Symbol \361}'

欣赏这里的错误。

在gnuplot控制台中键入并检查
帮助postscript
并使用:

set terminal postscript color

非常感谢你!有时候只是多写几个字母。。。请将答案标记为可接受,表明您的问题已得到回答。