Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #490

Re: Gnuplot and epslatex

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.gwdg.de!.POSTED!not-for-mail
From Christoph Bersch <usenet@bersch.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Gnuplot and epslatex
Date Tue, 26 Jul 2011 11:51:33 +0200
Organization GWDG, Goettingen
Lines 91
Message-ID <j0m2n5$bfi$1@gwdu112.gwdg.de> (permalink)
References <6fff9ffe-1aed-4100-8351-ce48d149e308@a10g2000yqn.googlegroups.com> <j0ja7e$c5q$1@online.de> <14fe6df9-1c37-4e52-8fe9-6d413fec244a@y24g2000yqb.googlegroups.com> <j0jfok$gir$1@online.de> <2fae80d3-953b-4628-8517-6b70bd3134d6@l18g2000vbe.googlegroups.com> <j0kknk$qn5$2@dont-email.me> <9ce39497-3740-4bfc-80e7-1f21f33b76fa@b19g2000yqj.googlegroups.com> <b3879e19-c217-4e67-9fd6-681d9ded8024@q5g2000yqj.googlegroups.com>
NNTP-Posting-Host mpl1136.mpl.mpg.de
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace gwdu112.gwdg.de 1311673893 11762 141.5.32.136 (26 Jul 2011 09:51:33 GMT)
X-Complaints-To news@gwdg.de
NNTP-Posting-Date Tue, 26 Jul 2011 09:51:33 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110702 Icedove/3.0.11
In-Reply-To <b3879e19-c217-4e67-9fd6-681d9ded8024@q5g2000yqj.googlegroups.com>
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:490

Show key headers only | View raw


On 26.07.2011 11:25, Gaius Verres wrote:
> Sorry for the confusion!
>
> What I meant with PDF: With my above-mentioned script I created an EPS
> and a LaTeX file. When I run this LaTeX file I can get a PS file which
> I convert to EPS with GSView.
>
> This EPS file (multiplot.eps) can be converted to PDF (multiplot.pdf)
> via epstopdf. If I use this PDF for the following
>
> <code>
> \documentclass{scrartcl}
> \usepackage{graphicx}
> \begin{document}
> \begin{figure}
> \centering
> \includegraphics[scale=0.2]{multiplot}
> \caption{multiplot}
> \end{figure}
> \end{document}
> </code>
>
> then I get a PDF with the figure. That's fine.
>
> But if I just take the EPS and create a PS with the above-mentioned
> code I have "There is only: "Figure 1: multiplot" and the page number.
> ".

It is a bit difficult to follow your exact workflow. Here is what I 
understood from what you are doing (and this works for me!):

Your code from 
<2fae80d3-953b-4628-8517-6b70bd3134d6@l18g2000vbe.googlegroups.com>:

<file multiplot.gp>
set terminal epslatex color standalone

set output 'multiplot.tex'

f(x)=x**2
g(x)=x**3
h(x)=x**4

set multiplot

set origin 0.0,0.6
set size 0.8,0.4
set format x ""
plot f(x)

set origin 0.0,0.3
set size 0.8,0.4
plot g(x)

set origin 0.0,0.0
set size 0.8,0.4
plot h(x)

unset multiplot
</file>

<file usemultiplot.tex>
\documentclass{scrartcl}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[scale=0.2]{multiplot}
\caption{multiplot}
\end{figure}
\end{document}
</file>


gnuplot multiplot.gp
latex multiplot.tex
dvips multiplot.dvi
ps2eps multiplot.ps
epstopdf multiplot.eps

now you have both a .eps and a .pdf version of your plot. Now both the 
following inclusions work for me:

pdflatex usemultiplot.tex
-> this gives you a pdf with the embedded multiplot.pdf

latex usemultiplot.tex
dvips usemultiplot.dvi
-> this gives you a ps with the embedded multiplot.eps

Christoph

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Gnuplot and epslatex Gaius Verres <c_verres@yahoo.com> - 2011-07-25 00:22 -0700
  Re: Gnuplot and epslatex Christoph Bersch <usenet@bersch.net> - 2011-07-25 10:41 +0200
    Re: Gnuplot and epslatex Gaius Verres <c_verres@yahoo.com> - 2011-07-25 02:01 -0700
      Re: Gnuplot and epslatex Christoph Bersch <usenet@bersch.net> - 2011-07-25 12:15 +0200
        Re: Gnuplot and epslatex Gaius Verres <c_verres@yahoo.com> - 2011-07-25 04:24 -0700
          Re: Gnuplot and epslatex Gaius Verres <c_verres@yahoo.com> - 2011-07-25 06:32 -0700
            Re: Gnuplot and epslatex James Waldby <not@valid.invalid> - 2011-07-25 20:30 +0000
          Re: Gnuplot and epslatex sfeam <sfeam@users.sourceforge.net> - 2011-07-25 08:09 -0700
          Re: Gnuplot and epslatex James Waldby <not@valid.invalid> - 2011-07-25 20:46 +0000
            Re: Gnuplot and epslatex Gavin Buxton <gavinbuxton@gmail.com> - 2011-07-25 16:32 -0700
              Re: Gnuplot and epslatex Gaius Verres <c_verres@yahoo.com> - 2011-07-26 02:25 -0700
                Re: Gnuplot and epslatex Christoph Bersch <usenet@bersch.net> - 2011-07-26 11:51 +0200
                Re: Gnuplot and epslatex Gaius Verres <c_verres@yahoo.com> - 2011-07-26 03:25 -0700
                Re: Gnuplot and epslatex Christoph Bersch <usenet@bersch.net> - 2011-07-26 13:03 +0200
                Re: Gnuplot and epslatex Gaius Verres <c_verres@yahoo.com> - 2011-07-26 04:13 -0700
  Re: Gnuplot and epslatex Ingo Thies <ingo.thies@gmx.de> - 2011-07-26 13:24 +0200
    Re: Gnuplot and epslatex Gaius Verres <c_verres@yahoo.com> - 2011-07-26 06:11 -0700
      Re: Gnuplot and epslatex Ingo Thies <ingo.thies@gmx.de> - 2011-07-26 15:43 +0200
        Re: Gnuplot and epslatex Gaius Verres <c_verres@yahoo.com> - 2011-08-01 02:19 -0700
          Re: Gnuplot and epslatex Gavin Buxton <gavinbuxton@gmail.com> - 2011-08-02 05:18 -0700

csiph-web