2013-02-25 67 views
2

當我使用gnuplot某些eps文件時,我可以得到一些軸標籤。這樣可行。當我想將它們實現到我的膠乳文檔中時,軸的描述在圖的邊界處被切掉。不管這個數字有多大,標籤字母都會在邊界被切掉。Gnuplot Eps文件軸切割

我該如何解決這個問題?

+1

你能製作一些我們可以用來重現問題的最小代碼嗎?例如用'sin(x)'和一個標籤或者一個被切斷的標籤2進行繪圖。然後向我們展示如何將它包含在latex文檔中。 – mgilson 2013-02-25 14:11:14

回答

1

Gnuplot通常不會將.eps文件的大小設置得很好,特別是如果邊緣發生了某些情況。由於this post我瞭解到,有一個簡單的命令來更正邊框調整到.EPS的內容:

ps2epsi input.eps output.eps 

這工作對我很好。 gnuplot主頁上還有fixbb腳本。

0

沒關係,在這裏你去:

乳膠代碼:

\begin{figure}[H] 
    \centering 
\includegraphics[scale=1] {picture.eps} 
\caption{caption} 
\label{fig:picture} 
\end{figure} 

的Gnuplot

set terminal postscript enhanced portrait "Times Italic" 12 size 14cm,12cm     #Key Character Size       
set output 'picture.eps' 
set multiplot layout 2,2 

set border 
set tics font "Times Italic, 10" 

set xlabel "{/Symbol e} %" font "Times Italic, 10" 
set ylabel "{/Symbol s}[MPa]" font "Times Italic, 10" rotate by -0 

plot  plot exp(-x**2/2) 
plot  plot exp(-x**2/2) 
plot  plot exp(-x**2/2) 
plot  plot exp(-x**2/2) 

這樣的事情應該工作。然後{/ Symbol s} [MPa]不能正確顯示在latex文檔中。

+0

感謝您發佈示例代碼。儘管如此,作爲對原始問題的編輯會更有意義。 – andyras 2013-02-27 03:49:55