I have an EPS file generated by gnuplot. I used the code:
#set term post enh color
#set out '1.eps'
The EPS file viewer in gsview is horizontal. However, when I include it in my paper the graph is rotated 90 degrees (vertical)
I tried set term post enh color port
, it doesn't work.
However, I found the following code can be used with LaTeX:
#set term post enh color eps
#set out '1.ps'
then use gsview to convert the PS file to EPS. It will be displayed horizontally in LaTeX (but rotated 90 degrees in gsview)
How can I get the EPS file such that it is rotated 90 degrees in both?
Best Answer
Your first line
set term post enh color
says you want a PS file, while the second line,set out '1.eps'
- that you want an EPS file. Gnuplot uses different aspect ratios for PS and EPS output.Use this:
Here is the result of this Gnuplot file
and TeX file
EPS file:
DVI file: