如何在乳胶文档中将matlab

如何在乳胶文档中将matlab

本文介绍了如何在乳胶文档中将matlab .eps图形居中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用matlab图形文件菜单中的导出设置选项从matlab图形创建了.eps文件,然后在打开的对话框中按导出按钮.在Latex文档中,我添加了以下几行:

I created .eps file from matlab figure using the export setup option in the matlab figure File menu, and then pressing the export button in the opened dialog box. In Latex document I added the next lines:

\begin{figure}[H]
    \begin{center}
        \includegraphics[width={0.7\textwidth}]{loglogRateVsIntensity.eps}
        \caption{Rates}
        \label{fig:ratesVersusIntensity}
    \end{center}
\end{figure}

该图确实出现在文档中,但没有居中,并且在其前面还留有大量空间,并且其中一部分覆盖了文档的下几行.我已将其包含在Latex文档中:\ usepackage {float},以便使数字正确显示在将它们放置在Latex文档中的位置,但是对于此.eps数字,该命令却被忽略了.

The Figure indeed appears in the document, but not centered and also with excessive amount of space preceding it, and part of it is covering the next lines of the document. I have included to the Latex document: \usepackage{float} in order to have figures appear right where I place them in the latex document, but some how for this .eps figure this command is being ignored.

任何想法我该怎么做才能解决?

Any ideas what can I do to get it fixed ???

推荐答案

我强烈建议 export_fig .它像一种魅力.

I strongly recommend export_fig. It works like a charm.

要将当前图形导出为file_name.eps,请写(需要ghostscript和pdftops->在上面的链接下解释):

To export the current figure as file_name.eps write (requires ghostscript and pdftops -> explained under the link above):

export_fig file_name -eps

export_fig也将删除图像前面的空间.我认为图像的格式也应该解决乳胶的居中问题.

export_fig gets also rid of the space preceding the image. I think the formatting of the image should also solve the centering problem in latex.

欢呼

这篇关于如何在乳胶文档中将matlab .eps图形居中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 04:38