【发布时间】:2014-07-01 20:08:29
【问题描述】:
我必须绘制 4 个图,它们之间没有垂直空格,并在我的 tex 文档中添加标题。问题是标题与 x 轴标签重叠,因为底部边距为零,我认为。
gnuplot 文件是这样的
set term epslatex
set output 'foo.tex'
set xrange [-1:1]
set yrange [-1:1]
set multiplot layout 4,1
set ylabel '$y$'
unset xlabel
unset xtics
set tmargin 0
set bmargin 0
plot x w lines
plot x*x w lines
plot x*x*x w lines
set xlabel '$x$'
set xtics
plot x*x*x*x w lines
unset multiplot
tex 文件是
\documentclass[a4paper,11pt]{toptesi}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\input{foo}
\caption{bla bla}
\end{figure}
\end{document}
并且“bla bla”出现在 x 标签上......我试图在最后一张图之前放置一个 set bmargin “something”,但这有一个问题,即最后一张图的大小不再是前三个...如何固定绘图的大小但允许 tex 标题的 bmargin?
【问题讨论】:
-
我认为解决问题的方法比使用边距更优雅...
-
@bluePhalvio 为什么不在你的 tex 文档中使用
vspace。像vspace 0.15in或任何有用的垂直间距。你可以在\input{foo}和\caption{bla bla}之间插入这个 -
带反斜杠offcourse:
\vspace {0.15in} -
非常感谢!!!它是如此简单,而且效果很好!
-
需要我说它增加了垂直空间:)
标签: latex gnuplot margins caption