From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Malone Subject: Re: Gnuplot/babel issue with export to eps Date: Thu, 5 Jan 2012 16:03:08 -0800 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/alternative; boundary="Apple-Mail=_CC91DD10-ECE7-4E0F-8CF1-071960A9E911" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RixHI-0006Hd-Po for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 19:03:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RixHH-00078f-EM for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 19:03:24 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:54476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RixHH-00078P-9f for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 19:03:23 -0500 Received: by iacb35 with SMTP id b35so1987497iac.0 for ; Thu, 05 Jan 2012 16:03:22 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: emacs-orgmode --Apple-Mail=_CC91DD10-ECE7-4E0F-8CF1-071960A9E911 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi John, I'm not sure what Org mode is doing behind the scenes, but I suspect = something is getting muddled because you specify both the src block file = header /and/ the output terminal in the gnu plot code. Perhaps a simpler solution - if you indeed want Postscript images - = would be to remove the =3D:file =85=3D header argument and specify the = =3Dset output=3D within the gnuplot script itself? That should still = generate the .eps file. Chris On Jan 5, 2012, at 3:54 PM, John Hendy wrote: > I have the following gnuplot/babel block and for some reason the = resultant .eps file comes up broken but a corresponding version of it = gets converted to pdf somehow... what's going on? I stole an example = just to check and make sure it wasn't my gnuplot code: = http://t16web.lanl.gov/Kawano/gnuplot/intro/plotfunc-e.html >=20 > ----- > #+begin_src gnuplot :file export.eps :exports results > reset >=20 > set terminal postscript eps color enhanced 20 >=20 > a=3D0.25 > b=3D0.02 > c=3D0.05 > d=3D0.1 > f(x)=3Dc/((x-a)*(x-a)+b)+d/sqrt(x) > set xrange [0:1] > set yrange [0:4] > plot f(x) >=20 > #+end_src > ----- >=20 > I get a file export.eps which is broken and unreadable by geeqie. I = get a corresponding file called export-eps-converted-to.pdf that opens = fine and looks like it should. >=20 > What am I doing incorrectly? >=20 >=20 > Thanks, > John = ------------------------------------------------------------------------- Chris Malone (malone@ucolick.org) Dept. of Astronomy and Astrophysics UC Santa Cruz 1156 High Street Santa Cruz, CA 95064-1077 phone: 831-459-3809 = ------------------------------------------------------------------------- --Apple-Mail=_CC91DD10-ECE7-4E0F-8CF1-071960A9E911 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi = John,

I'm not sure what Org mode is doing behind the = scenes, but I suspect something is getting muddled because you specify = both the src block file header /and/ the output terminal in the gnu plot = code.

Perhaps a simpler solution - if you = indeed want Postscript images - would be to remove the =3D:file =85=3D = header argument and specify the =3Dset output=3D within the gnuplot = script itself?  That should still generate the .eps = file.

Chris

On Jan 5, = 2012, at 3:54 PM, John Hendy wrote:

I have the = following gnuplot/babel block and for some reason the resultant .eps = file comes up broken but a corresponding version of it gets converted to = pdf somehow... what's going on? I stole an example just to check and = make sure it wasn't my gnuplot code: http:= //t16web.lanl.gov/Kawano/gnuplot/intro/plotfunc-e.html

-----
#+begin_src gnuplot :file export.eps = :exports results
reset

set terminal = postscript eps color enhanced = 20

a=3D0.25
 b=3D0.02
=
 c=3D0.05
 d=3D0.1
 f(x)=3Dc/((x-a= )*(x-a)+b)+d/sqrt(x)
 set xrange = [0:1]
 set yrange [0:4]
 plot = f(x)

#+end_src
-----
I get a file export.eps which is broken and unreadable by = geeqie. I get a corresponding file called export-eps-converted-to.pdf = that opens fine and looks like it should.

What = am I doing incorrectly?


Thanks,
John

malone@ucolick.org)

<= /div>
Dept. of Astronomy and Astrophysics
UC Santa = Cruz
1156 High Street
Santa Cruz, CA = 95064-1077

phone: = 831-459-3809
----------------------------------------------= ---------------------------

= --Apple-Mail=_CC91DD10-ECE7-4E0F-8CF1-071960A9E911--