# LaTeX \includegraphics{.eps}: shown reversed (upside-down) font characters on .eps file, generated by Python matplotlib.text.usetex on Windows10

The .eps file is created by Python matplotlib.text.usetex, where the characters in question are on the title and the legends of the chart in TeX text mode of matplotlib. The characters in question in the .eps file are placed properly as long as viewed by ghostscript. However, being included by \includegraphics{} of texlive latex, occasionally each TeX font character of the title and the legends of the chart is displayed as reversed upside down. “occasionally” means the characters in question are shown properly when the .eps file is included before \section{} after \begin{document}, however, it is failed when the same file is included after \section{}, i.e., the LaTeX source file is as follows.

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=15cm]{plot.eps}
\section{Section 1}
\includegraphics[width=15cm]{plot.eps}
\end{document}


Only the second inclusion of the .eps file causes the problem when I view the latex compiled .ps file by Ghostscript.

The TeX related command versions are as follows.

pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX) (preloaded format=latex)
LaTeX2e <2020-10-01> patch level 4  L3 programming layer <2021-02-18>

• this is not an answer, use a comment for this. There you can also ping people with @name. Beside this: there is nothing here to attach such a file, you will have to upload it somewhere else and sent a link. – Ulrike Fischer Mar 22 at 7:41