【发布时间】:2017-01-19 20:03:40
【问题描述】:
我正在尝试从 MATLAB 中导出具有出版质量的数字,以便导入到 LaTeX 文档中。
我可以设置我想要的所有图形属性,但是当我将我的图形导出为 .eps 时,图例周围的框会消失。
MWE 下面(我使用的是 MATLAB 2014b):
figure
plot(1:4)
legend('A line!')
print('LineTest','-depsc2','-tiff')
在 LaTeX 中:
\usepackage{graphicx}
\usepackage{epstopdf} %converting to PDF
\begin{document}
\includegraphics[width=\textwidth]{LineTest}
\end{document}
【问题讨论】:
标签: matlab matlab-figure legend eps