Graphics, Figures & TablesGraphs got rotated from Excel (Mac ver) to Latex

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
hajime
Posts: 10
Joined: Sat Aug 15, 2009 1:03 am

Graphs got rotated from Excel (Mac ver) to Latex

Post by hajime »

Hello. I created a few graphs using the Mac verion of EXCEL. I saved them as .eps files. When I included them in a latex document, they got rotated by 90 degrees. I used the angle command to return them to the original orientation. However, this causes a large blank margin on the left of the graphs. Usually when I include .eps files (from Illustrator for example)to Latex, the left margin of the figures line up with that of the corresponding captions. However, those made by EXCEL do not match the left margin after the angle command. Anyway to fix the problem? Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Re: Graphs got rotated from Excel (Mac ver) to Latex

Post by nlct »

It sounds like the bounding box hasn't been calculated correctly. It's possible that Excel has created a PostScript rather than Encapsulated PostScript file using A4/letter landscape paper. If you put the image in a \frame{} (but not if you're using beamer) you can see where the bounding box actually is. (You could also use \fbox, but that adds a bit of extra space.) If you are using graphicx, you can use the trim key in the optional argument of \includegraphics to remove the unwanted space.

Regards
Nicola Talbot
Post Reply