Here’s your basic LaTeX document:
%% FILE: basic.tex
\documentclass[letterpaper,12pt]{article}
\begin{document}
\input{graph}
\end{document}
The file graph.tex is generated using Gnuplot like this:
#!/usr/bin/gnuplot ## FILE: graph.gnuplot set xrange [-3:3] set yrange [0:.42] set ytics nomirror autofreq 0, .1 set terminal latex size 3,1.5 set output 'graph.tex' f(x) = .39894228040143267794 * exp(-0.5 * (x ** 2)) set style line 1 linecolor rgb "black" linewidth 1 plot f(x) ls 1 notitle
Here’s the execution:
$ gnuplot graph.gnuplot $ pdflatex basic.tex > /dev/null $ evince basic.pdf &
This makes a really professional-looking graph I can put in a document.
![[]](/images/2010-07-16_graph.png)
Now here’s what I want to see:
![[]](/images/2010-07-16_graph_2.png)
How do I do this with Gnuplot?
Try this:
http://www.mail-archive.com/debian-user@lists.debian.org/msg43491.html
Lucas