2017-01-13 3 views
1

gnuplot의 epslatex 터미널에 데이터 세트를 플로팅합니다. 코드는 난 당신이 레이블이 캔버스를 벗어 볼 수 있듯이gnuplot의 Epslatex 터미널이 화면 밖으로 벗어났습니다.

plot

아래 하나가 얻을

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 

아래와 그리고 출력됩니다. 이 문제를 어떻게 해결할 수 있습니까?

답변

1

때때로 gnuplot이 텍스트 요소의 너비 또는 높이를 예측하지 못합니다. 왼쪽 및 아래쪽 레이블의 공간을 수동으로 늘릴 수 있습니다.

set lmargin at screen 0.17 
set bmargin at screen 0.17 

숫자로 재생하십시오.

필요에 따라 rmargintmargin도 조정할 수 있습니다.