How do i get nice .eps images into latex
조회 수: 28 (최근 30일)
이전 댓글 표시
I of course know how to print a plotted image into a .eps file using file>SaveAs, however when i actually create the .pdf file in LaTex it removes the left parts of the plot(about 4 cm).
I think it is a Matlab problem since i havent had this issue before when using .eps files, but to be thorough the latex code is shown here:
\begin{figure}[ht]
\begin{center}
\includegraphics[width=16cm, height=7cm,angle=0]{afsnit/states.eps}
\end{center}
\caption{Estimated states}
\label{states}
\end{figure}
Thanks!
댓글 수: 0
채택된 답변
추가 답변 (3개)
Yash
2012년 7월 17일
\begin{figure} \begin{center} % Requires \usepackage{graphicx} \includegraphics[width=3.25in]{4}\\ \caption{Confusion Matrix Of Prediction Outcomes}\label{Table 1} \end{center} \end{figure}
the name of the figure is 4 and i have the eps format of the figure as well as the jpg format of the figure then will plot and do not inlcude the extension of the picture lile .eps, do not include that.
댓글 수: 0
Yash
2012년 7월 17일
\begin{figure}
\begin{center}
% Requires \usepackage{graphicx}
\includegraphics[width=3.25in]{4}\\
\caption{Confusion Matrix Of Prediction Outcomes}\label{Table 1}
\end{center}
\end{figure}
댓글 수: 0
Daniel Shub
2012년 7월 17일
I think the best way is to use PGFPlots and make your images directly in LaTeX. If you really want to go from MATLAB to eps to LaTeX then look at export_fig.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!