From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Bizarre gnuplot file creation error Date: Sat, 4 Nov 2017 13:05:16 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113dd23abcbb2e055d2b3969" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB1sl-0006hf-Ad for emacs-orgmode@gnu.org; Sat, 04 Nov 2017 13:05:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eB1sk-0006Ee-CA for emacs-orgmode@gnu.org; Sat, 04 Nov 2017 13:05:19 -0400 Received: from mail-oi0-x236.google.com ([2607:f8b0:4003:c06::236]:45466) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eB1sk-0006EP-7R for emacs-orgmode@gnu.org; Sat, 04 Nov 2017 13:05:18 -0400 Received: by mail-oi0-x236.google.com with SMTP id f66so4311117oib.2 for ; Sat, 04 Nov 2017 10:05:18 -0700 (PDT) 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" To: emacs-orgmode Mailinglist --001a113dd23abcbb2e055d2b3969 Content-Type: text/plain; charset="UTF-8" Trying the babel gnuplot the other day, I had trouble getting the results to C-c C-c to actually materialize in the place I'd given. Taking the example from the org-mode babel gnuplot page, (changing the location): #+begin_src gnuplot :exports both :file omnigraphics/omnig10.png reset set title "Putting it All Together" set xlabel "X" set xrange [-15:15] set xtics -15,2,15 set ylabel "Y" set yrange [-15:15] set ytics -15,2,15 f(x) = sqrt(x - 1) + 1 g(x) = x**3 h(x) = sqrt(-x - 1) + 1 plot f(x) w lp lw 1, g(x) w lp lw 1, h(x) w l lw 1 #+end_src The system was not creating the png in the given folder. Finally it occurred to me to look in another place where I'd previously been creating org-mode gnuplot pngs -- and there it was! I could do C-c C-c again and again and see new versions of the png being created each time in yesterday's folder, i.e., not the location given with :file. So the :file omnigraphics/omnig10.png was being blown off and org-mode internal had remembered where I'd previously created pngs and kept creating them there. I've tried to recreate this scenario with just the code snippet above -- fresh (non-daemon) emacs processes, changing the :file location each time -- and I've reproduced the problem sometimes. I've combed through my personal init els and it's definitely nothing I'm telling it. Strange. . . . LB --001a113dd23abcbb2e055d2b3969 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Trying the babel gnuplot the other day, I had trouble gett= ing the results to C-c C-c to actually materialize in the place I'd giv= en. Taking the example from the org-mode babel gnuplot page, (changing the = location):

#+begin_src gnuplot :exports both :file = omnigraphics/omnig10.png
reset

set title= "Putting it All Together"

set xlabel &q= uot;X"
set xrange [-15:15]
set xtics -15,2,15


set ylabel "Y"
set = yrange [-15:15]
set ytics -15,2,15

f(x) = =3D sqrt(x - 1) + 1
g(x) =3D x**3
h(x) =3D sqrt(-x - 1)= + 1

plot f(x) w lp lw 1, g(x) w lp lw 1, h(x) w l= lw 1
#+end_src

The system was not= creating the png in the given folder. Finally it occurred to me to look in= another place where I'd previously been creating org-mode gnuplot pngs= -- and there it was! I could do C-c C-c again and again and see new versio= ns of the png being created each time in yesterday's folder, i.e., not = the location given with :file. So the :file=C2=A0omnigraphics/omnig10.png w= as being blown off and org-mode internal had remembered where I'd previ= ously created pngs and kept creating them there. I've tried to recreate= this scenario with just the code snippet above -- fresh (non-daemon) emacs= processes, changing the :file location each time -- and I've reproduce= d the problem sometimes. I've combed through my personal init els and i= t's definitely nothing I'm telling it. Strange. . . .
LB
--001a113dd23abcbb2e055d2b3969--