在xrange和yrange中添加一个附加空间

时间:2019-03-12 16:13:31

标签: plot gnuplot

我想使用Gnuplot脚本绘制多个文件。
但是,我在使其完美时遇到了一些麻烦。


我的实际情节是这样的: my actual plot

但是,线点图同时触及x轴和y轴。
因此,我想在xrangeyrange上添加额外的空间并获取 my desired plot 不碰我的轴。


我可以使用set xrangeset yrange手动进行操作。
但是,我需要绘制100多个不同的文件,这样做非常耗时。

有某种方法可以自动将xrangeyrange的大小增加一些单位?

我的Gnuplot代码在下面。

#!/usr/bin/env gnuplot

set terminal epslatex size 7.5,3 standalone
set output 'pareto.tex'

set style fill solid 0.8
set ytics nomirror
set xtics nomirror

set grid lc rgb "#F2F2F2"

set xlabel 'Z_1'
set ylabel 'Z_2'

set xrange [170:215]
set yrange [7:40]

set style line 1 lt rgb "#000000" lw 12 pt 7 pointsize 3

plot "../exact.dat" using 1:2 title '$aug\,\epsilon$-CM' with linespoints ls 1

unset output

set output # finish the current output file
system('pdflatex --interaction=batchmode pareto.tex')
unset terminal

system

0 个答案:

没有答案
相关问题