Gnuplot使用线条颜色设置绘图



我遇到了一个我无法克服的奇怪问题。我正在将4个文件中的数据绘制成1个,我希望每个绘制都有不同的线条颜色。但是命令lt #some number不起作用,它提供不同的线型,但从不提供颜色。我正在使用一个脚本来制作一个文件,通过管道将其传输到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控制台中键入并检查help postscript并使用:

set terminal postscript color

最新更新