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