I am trying to export figures from MATLAB in publication quality for importing into LaTeX documents.
I am able to set all the graphics properties I would like, however when I export my figure as a .eps, the box around the legend disappears.
MWE below (I'm using MATLAB 2014b):
figure
plot(1:4)
legend('A line!')
print('LineTest','-depsc2','-tiff')
In LaTeX:
\usepackage{graphicx}
\usepackage{epstopdf} %converting to PDF
\begin{document}
\includegraphics[width=\textwidth]{LineTest}
\end{document}