# includegraphics aspects ratio problem? [closed]

I'm using texmaker. I create my diagrams with excel via a pdf print. When I include this pdf to my document I scale this pdf to the textwidth. The result looks like that the aspect ratio wasn't respected. There is suddenly an ugly gap between the units on the y-axis.

That's the code including my pdf

\begin{diagram}
\centering
\includegraphics[width=1\textwidth]
{xxx.pdf}
\captionof{diagram}{\label{dia:dia name}
\end{diagram}


Adding keepaspectratio=true to includegraphics doesn't help. It looks like latex doesn't respect the aspects ratio.

That's the diagram sniping with the wrong y axis. Why is there suddenly a blank space.....It doesn't appear in the original pdf generated from excel.

greetings

Its again me the thread starter.....at the blank space should be a µ. Why can latex not display it anymore? I used in excel Latin Modern 12. With another font like arial latex can display the µ.

## closed as unclear what you're asking by user36296, egreg, Svend Tveskæg, moewe, ZarkoApr 22 '16 at 17:06

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• That looks like a fairly easy graph. Have you considered letting LaTeX make the diagram? I'd recommend pgfplots for that. It has a very extensive manual to get you started, and there's also a lot of questions here regarding this package. Also, welome to our site! – Tom Bombadil Oct 15 '15 at 6:37
• Try \pdfinclusioncopyfonts=1 in your preamble. – Ulrike Fischer Oct 15 '15 at 7:07
• There is nothing in the image you show to suggest that the image has been scaled by different amounts in the x and y directions, the text is not distorted, why do you ask about keepaspectratio? – David Carlisle Oct 15 '15 at 7:09
• It seems that, in the end, your question completely changed. Please consider changing the title and also the text of the question to immediately address the real problem. – jarauh Oct 17 '15 at 3:19
• Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. A suggestion: Do us a favour and change your username to something more telling than "user1234". – Martin Schröder Oct 17 '15 at 21:14