2017-01-13 60 views
1

的,我在绘制的gnuplot的epslatex终端的数据集。该代码是一个低于Epslatex终端gnuplot的标签了屏幕

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 

和输出,我得到的是下面

plot

一个正如你所看到的标签出来的画布。我怎么解决这个问题?

回答

1

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

set lmargin at screen 0.17 
set bmargin at screen 0.17 

玩数字。

为了完整起见,还rmargintmargin可以根据需要进行调整。