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


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

Re: Gnuplot and epslatex

From Christoph Bersch <usenet@bersch.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Gnuplot and epslatex
Date 2011-07-26 11:51 +0200
Organization GWDG, Goettingen
Message-ID <j0m2n5$bfi$1@gwdu112.gwdg.de> (permalink)
References (3 earlier) <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>

Show all headers | 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