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:

. . .
<div class="figure">
<p><img src="images/test1.png" alt="test1.png" />
</p>
</div>

On Sat, Oct 14, 2017 at 1:30 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Lawrence Bottorff <borg...@gmail.com> writes:
>
> > I'm playing with the tutorial for babel-gnuplot
> > <http://orgmode.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) = 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
>

Reply via email to