将gnuplot中的终端标签移出屏幕

将gnuplot中的终端标签移出屏幕,gnuplot,labels,Gnuplot,Labels,我正在gnuplot的epslatex终端中绘制一个数据集。代码如下所示 set terminal epslatex color colortext standalone font 10 header \ '\usepackage{amssymb, amsmath, mathtools, breqn, amsthm, mathrsfs}' set out 'fit.tex' set key top right box height 0.3 unset border set style

我正在gnuplot的epslatex终端中绘制一个数据集。代码如下所示

set terminal epslatex color colortext standalone font 10 header \
'\usepackage{amssymb, amsmath, mathtools, breqn, amsthm, mathrsfs}' 
set out 'fit.tex'



set key top right box height 0.3
unset border 
set style line 123 dt 2 lc 'gray'
set grid linestyle 123


##----->LABELS##
set title '$\ln{\left(\dfrac{P}{P_0}\right)}$ vs $\dfrac{1}{T}$' 
set xlabel '$\dfrac{1}{T}$ (K$^{-1}$)' 
set ylabel '$\ln{\left(\dfrac{P}{P_0}\right)}$' 


##----->FIT##
f(x) = m * x + q
fit f(x) 'asc.txt' u 1:2:3:4 xyerrors via m, q

##----->PLOT##
p 'asc.txt' u 1:2:3:4 w xyerrorbars t 'data', f(x) t 'Fit'
set out
我得到的结果如下

set terminal epslatex color colortext standalone font 10 header \
'\usepackage{amssymb, amsmath, mathtools, breqn, amsthm, mathrsfs}' 
set out 'fit.tex'



set key top right box height 0.3
unset border 
set style line 123 dt 2 lc 'gray'
set grid linestyle 123


##----->LABELS##
set title '$\ln{\left(\dfrac{P}{P_0}\right)}$ vs $\dfrac{1}{T}$' 
set xlabel '$\dfrac{1}{T}$ (K$^{-1}$)' 
set ylabel '$\ln{\left(\dfrac{P}{P_0}\right)}$' 


##----->FIT##
f(x) = m * x + q
fit f(x) 'asc.txt' u 1:2:3:4 xyerrors via m, q

##----->PLOT##
p 'asc.txt' u 1:2:3:4 w xyerrorbars t 'data', f(x) t 'Fit'
set out


正如您所看到的,标签在画布外。我怎样才能解决这个问题

有时gnuplot无法估计文本元素的宽度或高度。可以手动增加左侧和底部标签的空间:

set lmargin at screen 0.17
set bmargin at screen 0.17
玩数字游戏

为确保完整性,必要时还可以调整
rmargin
tmargin