From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Gnuplot/babel issue with export to eps Date: Fri, 6 Jan 2012 10:59:13 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151747c0eee53b9004b5def790 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjD8O-0004fu-M6 for emacs-orgmode@gnu.org; Fri, 06 Jan 2012 11:59:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjD8N-0002Mt-57 for emacs-orgmode@gnu.org; Fri, 06 Jan 2012 11:59:16 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:48111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjD8M-0002Mi-S4 for emacs-orgmode@gnu.org; Fri, 06 Jan 2012 11:59:15 -0500 Received: by eabm6 with SMTP id m6so1381637eab.0 for ; Fri, 06 Jan 2012 08:59:13 -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: Chris Malone Cc: emacs-orgmode --00151747c0eee53b9004b5def790 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Jan 5, 2012 at 9:01 PM, John Hendy wrote: > On Thu, Jan 5, 2012 at 6:03 PM, Chris Malone wr= ote: > >> 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 - woul= d >> be to remove the =3D:file =E2=80=A6=3D header argument and specify the = =3Dset output=3D >> within the gnuplot script itself? That should still generate the .eps f= ile. >> >> > I may give this a try at work tomorrow... just tried the same file on my > Mac at home (running the same linux setup) and it's working, though I sti= ll > get a filename.eps and a filename-eps-converted-to.pdf output. It's just > that the .eps on this computer is valid and viewable. > > I'll have to dig into this some more; perhaps comparing org versions and > .emacs config files. > > I'm pulling from the org git repo and doing a make now on this computer a= s > we speak. If it still works, I'll do the same at work tomorrow and see if > that helps. > > Fresh org pull, same file... no viable output. The =3Dset output "test.eps"= =3D command with no :file header does not work. I get "code block produced no output" in the minibuffer. Here's some things of interest... -- Removing =3Dset terminal...=3D and exporting via =3D:file test.png=3D wo= rks -- Using =3Dset terminal postscript=3D and =3D:file test.ps=3D works -- Using =3Dset terminal postscript eps enhanced=3D and =3D:file test.eps= =3D does *not* work What package provides the eps ability? Perhaps I removed something from my system that I didn't intend to! Any suggestions on how to see what's going on? Thanks, John > > Thanks for the input, > John > > > >> 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 ge= ts >> 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 an= d >> looks like it should. >> >> What am I doing incorrectly? >> >> >> 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 >> ------------------------------------------------------------------------= - >> >> > --00151747c0eee53b9004b5def790 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Thu, Jan 5, 2012 at 9:01 PM, John Hendy <jw.hendy@gmail.com> wrote:
On Thu, Jan 5, 2012 at 6:03 PM= , Chris Malone <chris.m.malone@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
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/ th= e output terminal in the gnu plot code.

Perhaps a simpler solution - if you indeed want Postscr= ipt images - would be to remove the =3D:file =E2=80=A6=3D header argument a= nd specify the =3Dset output=3D within the gnuplot script itself? =C2=A0Tha= t should still generate the .eps file.


I may give this= a try at work tomorrow... just tried the same file on my Mac at home (runn= ing the same linux setup) and it's working, though I still get a filena= me.eps and a filename-eps-converted-to.pdf output. It's just that the .= eps on this computer is valid and viewable.

I'll have to dig into this some more; perhaps compa= ring org versions and .emacs config files.

I'm= pulling from the org git repo and doing a make now on this computer as we = speak. If it still works, I'll do the same at work tomorrow and see if = that helps.


Fresh org pull, same = file... no viable output. The =3Dset output "test.eps"=3D command= with no :file header does not work. I get "code block produced no out= put" in the minibuffer.

Here's some things of interest...
-- Remo= ving =3Dset terminal...=3D and exporting via =3D:file test.png=3D works
-- Using =3Dset terminal postscript=3D and =3D:file test.ps=3D works
-- Using =3Dset terminal postscript eps enhanced=3D and =3D:file test.= eps=3D does *not* work

What package provides the e= ps ability? Perhaps I removed something from my system that I didn't in= tend to!

Any suggestions on how to see what's going on?


Thanks,
John
=C2=A0=

Thanks for the in= put,
John

=C2=A0<= /div>
Chris

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

I have the fo= llowing gnuplot/babel block and for some reason the resultant .eps file com= es up broken but a corresponding version of it gets converted to pdf someho= w... what's going on? I stole an example just to check and make sure it= wasn't my gnuplot code:=C2=A0http://t16web.lanl.gov/Kaw= ano/gnuplot/intro/plotfunc-e.html

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

set terminal postsc= ript eps color enhanced 20

a=3D0.25
=C2= =A0b=3D0.02
=C2=A0c=3D0.05
=C2=A0d=3D0.1
=C2=A0f(x)=3Dc/((x-a)= *(x-a)+b)+d/sqrt(x)
=C2=A0set xrange [0:1]
=C2=A0set yr= ange [0:4]
=C2=A0plot 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 inc= orrectly?


Thanks,
John

-----------------------------------------------------------------= --------
Chris Malone (malone@ucolick.org)

Dept. = of Astronomy and Astrophysics
UC Santa Cruz
1156 High Street
Santa Cruz, CA 9506= 4-1077

-------= ------------------------------------------------------------------



--00151747c0eee53b9004b5def790--