gnuplot postscript+eps linewidth



如何调整后记+eps终端的行宽?我需要得到linewidth=1.0 (border或axis) linewidth=1.8 (data-file1) linewidth=1.0 (data-file2)

set terminal postscript eps enhanced font 'Times-Roman,14' lw 1.5
set output 'figure.eps'
...
plot 'P-Density.txt' u 1:(0.415+$2) axes x1y2 title '(1,0,0)' w line lt 1 lc 9 lw 1.8, 'P-Density.txt' u 1:(0.472+$3) axes x1y2 title '(1,1,0)' w line lt 1 lc 1 lw 1.8, 'P-Density.txt' u 1:(0.658+$4) axes x1y2 title '(1,2,0)' w line lt 1 lc 3 lw 1.8, 'Potential.txt' u 1:2 title '' w line ls -1 lw 1.2, 'enerji2_7_1.txt' u 1:2 title '' w line lt 2 lc 9 lw 1.0, 'enerji2_7_2.txt' u 1:2 title '' w line lt 2 lc 1 lw 1.0, 'enerji2_7_3.txt' u 1:2 title '' w line lt 2 lc 3 lw 1.0

在后记"终端时,勾号的粗细将遵循set border命令设置的线宽,但边框的粗细被设计为两倍。然后,如果你想让边框的厚度为1.0,你可以这样设置:

set border lw 0.5

刻度的厚度将被设置为0.5。

如果您希望边框的行宽和打勾标记相匹配,则需要更改文件"prologue.ps"的内容,该文件嵌入在输出后记文件的头中。Gnuplot提供了一种机制,可以用您自己定制的"序言"替换此标题。文件。详见help set psdir

您可以尝试将gnuplot附带的'prologue.ps'文件复制到当前目录,并更改行

/LTB {BL [] LCb DL} def

到下面

/LTB {PL [] LCb DL} def

然后,将脚本更改为

set terminal postscript eps enhanced font 'Times-Roman,14' 
set psdir '.'
set output 'figure.eps'
set border lw 1.0
... your plot command ...

最新更新