Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

figure orientation with pdflatex (gnuplot, ps2pdf)

12 views
Skip to first unread message

Rainer Stiefelhagen

unread,
Jan 8, 2002, 7:30:28 AM1/8/02
to
Hi,

I'm trying to include graphs made with gnuplot into a pdf document,
which I produce using pdflatex. Unfortunately, however, I can't get
the orientation of the figures right.

I do the following steps to include the figure in my docuement

1) export graph as postscript from gnuplot (set term postscript...),
looks nice
2) use ps2pdf to convert graph.ps to graph.pdf (looks also nice in
Acrobat 5.0)
3) the pdf-file is included in my document doc.tex via
\psfig{figure=graph} (using the graphicx package)
4) pdflatex is run to produce doc.pdf.

The included graph, however, appears rotatet by 90 degrees in doc.pdf.
It can be manually rotatet back by using
\psfig{figure=graph,angle=-90}, but this creates problems when I try
to place several figures next to each other.

Does someone know why this rotation happens, and how it can be
prevented?

Thanks a lot,
Rainer

wald

unread,
Jan 8, 2002, 7:51:04 AM1/8/02
to
I always export graphics as encapsulated postscript (.eps) instead of plain
postscript. Conversion to pdf is then possible with epstopdf...
hope this helps,

Wald

"Rainer Stiefelhagen" <sti...@ira.uka.de> wrote in message
news:4715922a.02010...@posting.google.com...

Robin Fairbairns

unread,
Jan 8, 2002, 9:03:50 AM1/8/02
to
Rainer Stiefelhagen <sti...@ira.uka.de> wrote:
>I'm trying to include graphs made with gnuplot into a pdf document,
>which I produce using pdflatex. Unfortunately, however, I can't get
>the orientation of the figures right.
>
>I do the following steps to include the figure in my docuement
>
>1) export graph as postscript from gnuplot (set term postscript...),
>looks nice

export as encapsulated postscript

>2) use ps2pdf to convert graph.ps to graph.pdf (looks also nice in
>Acrobat 5.0)

use epstopdf

>3) the pdf-file is included in my document doc.tex via
>\psfig{figure=graph} (using the graphicx package)

there's no \psfig command in graphicx; that comes from psfig.sty

use \includegraphics instead

>4) pdflatex is run to produce doc.pdf.

is it better now?

>The included graph, however, appears rotatet by 90 degrees in doc.pdf.
>It can be manually rotatet back by using
>\psfig{figure=graph,angle=-90}, but this creates problems when I try
>to place several figures next to each other.
>
>Does someone know why this rotation happens, and how it can be
>prevented?

one hears about it occasionally, but it's never happened to me. what
versions of pdftex and pdftex.def are you using? -- it could be that
you're encountering a bug that's already been mended.
--
Robin Fairbairns, Cambridge -- rf10 at cam dot ac dot uk

Rainer Stiefelhagen

unread,
Jan 8, 2002, 11:48:29 AM1/8/02
to
Thanks a lot for your answers.
Using encapsulated postscript (and epstopdf) works fine.

Thanks again,
Rainer

"Robin Fairbairns" <r...@pallas.cl.cam.ac.uk> schrieb im Newsbeitrag
news:a1eu86$t5h$1...@pegasus.csx.cam.ac.uk...

0 new messages