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--