您的位置:首页 > 其它

Why are EPS files generated by gnuplot rotated 90 degrees?

2013-09-30 09:12 561 查看
up
vote1down
votefavorite

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?

eps gnuplot
shareimprove
this question
edited Mar
22 '12 at 6:28




Mark S. Everitt

7,76831456

asked Mar 22 '12 at 2:11





peifan

62

Welcome
to TeX.sx! This question has very little to to with TeX, and in its current form is likely to be closed. Please include a minimal
working example to show us how you are including graphics, so we can make sure that it's a problem with gnu plot rather than your LaTeX code. – Mark
S. Everitt Mar
22 '12 at 6:30


1 Answer

activeoldestvotes

up
vote2down
vote
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:
set term post enh color eps
set ou "1.eps"


Here is the result of this Gnuplot file
set term post enh color eps
set ou "1.eps"
plot x
set ou


and TeX file
\documentclass{article}
\pagestyle{empty}
\usepackage{graphicx}
\begin{document}
\includegraphics{1}
\end{document}


EPS file:



DVI file:



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐