2013-02-25 70 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