From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: HTML output of gnuplot pic Date: Sat, 14 Oct 2017 12:21:57 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11482d721d693a055b842ce0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3PCL-00084F-9h for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 12:22:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3PCK-00036M-2O for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 12:22:01 -0400 Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:48450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3PCJ-00035Z-T3 for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 12:22:00 -0400 Received: by mail-oi0-x22b.google.com with SMTP id m198so19217123oig.5 for ; Sat, 14 Oct 2017 09:21:58 -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 --001a11482d721d693a055b842ce0 Content-Type: text/plain; charset="UTF-8" I'm playing with the tutorial for babel-gnuplot , however I keep getting this upon C-c C-c: #+begin_src gnuplot :exports code :file images/test1.png reset set title "Putting it All Together" set xlabel "X" set xrange [-8:8] set xtics -8,2,8 set ylabel "Y" set yrange [-2:70] set ytics -20,10,70 f(x) = x**2 g(x) = x**3 h(x) = 10*sqrt(abs(x)) plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3 #+end_src #+RESULTS: [[file:images/test1.png]] Many different :results attempts keep giving me #+RESULTS: [[file:images/test1.png]] . . . which doesn't export to HTML. Of course removing #+RESULTS: and the image displays. How can I get results without the #+RESULTS: label above, which HTML export doesn't like? LB --001a11482d721d693a055b842ce0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm playing with the tutorial for babel-gnupl= ot=C2=A0, however I keep getting this upon C-c C-c:

=
#+begin_src gnuplot :exports code :file images/test1.png
res= et

set title "Putting it All Together"

set xlabel "X"
set xrange [-8:8= ]
set xtics -8,2,8


set yl= abel "Y"
set yrange [-2:70]
set ytics -20,10,= 70

f(x) =3D x**2
g(x) =3D x**3
h(x) =3D 10*sqrt(abs(x))

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

#+RE= SULTS:
[[file:images/test1.png]]

M= any different :results attempts keep giving me

#+RESULTS:
[[file:images/test1.png]]

=
. . . which doesn't export to HTML. Of course removing=C2=A0#+RESU= LTS: and the image displays. How can I get results without the=C2=A0#+RESUL= TS: label above, which HTML export doesn't like?

LB --001a11482d721d693a055b842ce0-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: HTML output of gnuplot pic Date: Sat, 14 Oct 2017 19:30:10 +0200 Message-ID: <874lr13ae5.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3QGT-0003Y4-GR for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 13:30:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3QGO-0000r4-FV for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 13:30:21 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:38640) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e3QGO-0000pY-2g for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 13:30:16 -0400 In-Reply-To: (Lawrence Bottorff's message of "Sat, 14 Oct 2017 12:21:57 -0400") 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: Lawrence Bottorff Cc: emacs-orgmode Mailinglist Hello, Lawrence Bottorff writes: > I'm playing with the tutorial for babel-gnuplot > , > however I keep getting this upon C-c C-c: > > #+begin_src gnuplot :exports code :file images/test1.png > reset > > set title "Putting it All Together" > > set xlabel "X" > set xrange [-8:8] > set xtics -8,2,8 > > > set ylabel "Y" > set yrange [-2:70] > set ytics -20,10,70 > > f(x) = x**2 > g(x) = x**3 > h(x) = 10*sqrt(abs(x)) > > plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3 > #+end_src > > #+RESULTS: > [[file:images/test1.png]] > > Many different :results attempts keep giving me > > #+RESULTS: > [[file:images/test1.png]] > > . . . which doesn't export to HTML. Why? I have no trouble exporting to HTML this document. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: HTML output of gnuplot pic Date: Sat, 14 Oct 2017 13:48:24 -0400 Message-ID: References: <874lr13ae5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1141baba4ee3e9055b856119" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3QXz-0005cZ-Ec for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 13:48:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3QXy-00018c-7a for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 13:48:27 -0400 Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:54308) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3QXy-00017t-0H for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 13:48:26 -0400 Received: by mail-oi0-x232.google.com with SMTP id a132so11924599oih.11 for ; Sat, 14 Oct 2017 10:48:25 -0700 (PDT) In-Reply-To: <874lr13ae5.fsf@nicolasgoaziou.fr> 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 --001a1141baba4ee3e9055b856119 Content-Type: text/plain; charset="UTF-8" I don't get the image displayed -- without manually taking out the #+RESULTS: line. I'm saying #+begin_src gnuplot :exports code :file images/test1.png reset set title "Putting it All Together" set xlabel "X" set xrange [-8:8] set xtics -8,2,8 set ylabel "Y" set yrange [-2:70] set ytics -20,10,70 f(x) = x**2 g(x) = x**3 h(x) = 10*sqrt(abs(x)) plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3 #+end_src #+RESULTS: [[file:images/test1.png]] doesn't display the plot image, while. . . #+begin_src gnuplot :exports code :file images/test1.png reset set title "Putting it All Together" set xlabel "X" set xrange [-8:8] set xtics -8,2,8 set ylabel "Y" set yrange [-2:70] set ytics -20,10,70 f(x) = x**2 g(x) = x**3 h(x) = 10*sqrt(abs(x)) plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3 #+end_src [[file:images/test1.png]] . . . does display the plot image: . . .

test1.png

On Sat, Oct 14, 2017 at 1:30 PM, Nicolas Goaziou wrote: > Hello, > > Lawrence Bottorff writes: > > > I'm playing with the tutorial for babel-gnuplot > > > , > > however I keep getting this upon C-c C-c: > > > > #+begin_src gnuplot :exports code :file images/test1.png > > reset > > > > set title "Putting it All Together" > > > > set xlabel "X" > > set xrange [-8:8] > > set xtics -8,2,8 > > > > > > set ylabel "Y" > > set yrange [-2:70] > > set ytics -20,10,70 > > > > f(x) = x**2 > > g(x) = x**3 > > h(x) = 10*sqrt(abs(x)) > > > > plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3 > > #+end_src > > > > #+RESULTS: > > [[file:images/test1.png]] > > > > Many different :results attempts keep giving me > > > > #+RESULTS: > > [[file:images/test1.png]] > > > > . . . which doesn't export to HTML. > > Why? I have no trouble exporting to HTML this document. > > Regards, > > -- > Nicolas Goaziou > --001a1141baba4ee3e9055b856119 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I don't get the image displayed -- without manual= ly taking out the #+RESULTS: line. I'm saying=C2=A0

#+begin_src gnuplot :exports code :file images/test1.png=C2=A0
<= div>reset
set title "Putting it All Together"
set xlabel "X"
set xrange [-8:8]
set xtics -= 8,2,8
set ylabel "Y"
set yrange [-2:70]
=
set ytics -20,10,70
f(x) =3D x**2
g(x) =3D x**3
h(x) =3D 10*sqrt(abs(x))
plot f(x) w lp lw 1, g(x) w p lw= 2, h(x) w l lw 3
#+end_src

#+RESULTS:= =C2=A0
[[file:images/test1.png]]

doesn&#= 39;t display the plot image, while. . .

#+begin_sr= c gnuplot :exports code :file images/test1.png=C2=A0
reset
<= div>set title "Putting it All Together"
set xlabel &quo= t;X"
set xrange [-8:8]
set xtics -8,2,8
= set ylabel "Y"
set yrange [-2:70]
set ytics -= 20,10,70
f(x) =3D x**2
g(x) =3D x**3
h(x) =3D= 10*sqrt(abs(x))
plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw = 3
#+end_src

[[file:images/test1.png]]

. . . does display the plot image:

. . .
<div class=3D"figure">
&l= t;p><img src=3D"images/test1.png" alt=3D"test1.png&quo= t; />
</p>
</div>

On Sat, Oct 14, 2017 at 1:3= 0 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

Lawrence Bottorff <borgauf@gmail.co= m> writes:

> I'm playing with the tutorial for babel-gnuplot
> <http://orgmod= e.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html>= ; ,
> however I keep getting this upon C-c C-c:
>
> #+begin_src gnuplot :exports code :file images/test1.png
> reset
>
> set title "Putting it All Together"
>
> set xlabel "X"
> set xrange [-8:8]
> set xtics -8,2,8
>
>
> set ylabel "Y"
> set yrange [-2:70]
> set ytics -20,10,70
>
> f(x) =3D x**2
> g(x) =3D x**3
> h(x) =3D 10*sqrt(abs(x))
>
> plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
> #+end_src
>
> #+RESULTS:
> [[file:images/test1.png]]
>
> Many different :results attempts keep giving me
>
> #+RESULTS:
> [[file:images/test1.png]]
>
> . . . which doesn't export to HTML.

Why? I have no trouble exporting to HTML this document.

Regards,

--
Nicolas Goaziou

--001a1141baba4ee3e9055b856119-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: HTML output of gnuplot pic Date: Sat, 14 Oct 2017 19:58:04 +0200 Message-ID: <87r2u51uj7.fsf@nicolasgoaziou.fr> References: <874lr13ae5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3QhO-0007Tg-KC for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 13:58:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3QhN-00055s-Su for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 13:58:10 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:60237) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e3QhN-00055i-Ml for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 13:58:09 -0400 In-Reply-To: (Lawrence Bottorff's message of "Sat, 14 Oct 2017 13:48:24 -0400") 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: Lawrence Bottorff Cc: emacs-orgmode Mailinglist Lawrence Bottorff writes: > I don't get the image displayed -- without manually taking out the > > #+RESULTS: line. I'm saying > > #+begin_src gnuplot :exports code :file images/test1.png > reset > set title "Putting it All Together" > set xlabel "X" > set xrange [-8:8] > set xtics -8,2,8 > set ylabel "Y" > set yrange [-2:70] > set ytics -20,10,70 > f(x) = x**2 > g(x) = x**3 > h(x) = 10*sqrt(abs(x)) > plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3 > #+end_src > > > #+RESULTS: > [[file:images/test1.png]] > > doesn't display the plot image, while. . . > > #+begin_src gnuplot :exports code :file images/test1.png > reset > set title "Putting it All Together" > set xlabel "X" > set xrange [-8:8] > set xtics -8,2,8 > set ylabel "Y" > set yrange [-2:70] > set ytics -20,10,70 > f(x) = x**2 > g(x) = x**3 > h(x) = 10*sqrt(abs(x)) > plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3 > #+end_src > > [[file:images/test1.png]] > > . . . does display the plot image: Try :exports both instead of :exports code then. Regards, From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: HTML output of gnuplot pic Date: Sat, 14 Oct 2017 14:03:15 -0400 Message-ID: References: <874lr13ae5.fsf@nicolasgoaziou.fr> <87r2u51uj7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11482d7263638c055b85968a" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3QmL-0000CL-Eo for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 14:03:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3QmK-0008IW-HX for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 14:03:17 -0400 Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:46898) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3QmK-0008I5-CR for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 14:03:16 -0400 Received: by mail-oi0-x232.google.com with SMTP id n82so19450775oig.3 for ; Sat, 14 Oct 2017 11:03:16 -0700 (PDT) In-Reply-To: <87r2u51uj7.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode Mailinglist --001a11482d7263638c055b85968a Content-Type: text/plain; charset="UTF-8" That did it. Thanks. On Sat, Oct 14, 2017 at 1:58 PM, Nicolas Goaziou wrote: > Lawrence Bottorff writes: > > > I don't get the image displayed -- without manually taking out the > > > > #+RESULTS: line. I'm saying > > > > #+begin_src gnuplot :exports code :file images/test1.png > > reset > > set title "Putting it All Together" > > set xlabel "X" > > set xrange [-8:8] > > set xtics -8,2,8 > > set ylabel "Y" > > set yrange [-2:70] > > set ytics -20,10,70 > > f(x) = x**2 > > g(x) = x**3 > > h(x) = 10*sqrt(abs(x)) > > plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3 > > #+end_src > > > > > > #+RESULTS: > > [[file:images/test1.png]] > > > > doesn't display the plot image, while. . . > > > > #+begin_src gnuplot :exports code :file images/test1.png > > reset > > set title "Putting it All Together" > > set xlabel "X" > > set xrange [-8:8] > > set xtics -8,2,8 > > set ylabel "Y" > > set yrange [-2:70] > > set ytics -20,10,70 > > f(x) = x**2 > > g(x) = x**3 > > h(x) = 10*sqrt(abs(x)) > > plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3 > > #+end_src > > > > [[file:images/test1.png]] > > > > . . . does display the plot image: > > Try > > :exports both > > instead of > > :exports code > > then. > > Regards, > --001a11482d7263638c055b85968a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That did it. Thanks.

<= div class=3D"gmail_quote">On Sat, Oct 14, 2017 at 1:58 PM, Nicolas Goaziou = <mail@nicolasgoaziou.fr> wrote:
Lawrence Bottorff <borgauf@gmail.com> writes:

> I don't get the image displayed -- without manually taking out the=
>
> #+RESULTS: line. I'm saying
>
> #+begin_src gnuplot :exports code :file images/test1.png
> reset
> set title "Putting it All Together"
> set xlabel "X"
> set xrange [-8:8]
> set xtics -8,2,8
> set ylabel "Y"
> set yrange [-2:70]
> set ytics -20,10,70
> f(x) =3D x**2
> g(x) =3D x**3
> h(x) =3D 10*sqrt(abs(x))
> plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
> #+end_src
>
>
> #+RESULTS:
> [[file:images/test1.png]]
>
> doesn't display the plot image, while. . .
>
> #+begin_src gnuplot :exports code :file images/test1.png
> reset
> set title "Putting it All Together"
> set xlabel "X"
> set xrange [-8:8]
> set xtics -8,2,8
> set ylabel "Y"
> set yrange [-2:70]
> set ytics -20,10,70
> f(x) =3D x**2
> g(x) =3D x**3
> h(x) =3D 10*sqrt(abs(x))
> plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
> #+end_src
>
> [[file:images/test1.png]]
>
> . . . does display the plot image:

Try

=C2=A0 :exports both

instead of

=C2=A0 :exports code

then.

Regards,

--001a11482d7263638c055b85968a--