gnuplot tips
![]()
I found out some interesting tricks using gnuplot:
first, run the interactive program:
$gnuplot
type, in the shell, the following command
gnuplot> splot sin(x)+cos(y) with lines palette linewidth 4
Cool 3d output! You can even play with it making rotations and scales.
If you want to export it to a vector graphic and then edit it with Inkscape, type:
gnuplot> set terminal svg
gnuplot> set output "/path/to/your_file.svg" # Don't forget the quotes
gnuplot> splot sin(x)+cos(y) with lines palette linewidth 4
Another Kaiser’s tip: exporting the output to LaTeX format:
gnuplot> set terminal latex
gnuplot> set output "/path/to/your_file.tex"
gnuplot> splot sin(x)+cos(y) with lines linewidth 4
#No "palette" option: terminal "latex" does not support continuous colors.
And then, add to the header of your LaTeX document:
\usepackage{graphicx}
And to the part where you want to include the graphic:
\input{/path/to/your_file.tex}

October 14th, 2005 at 1:31 am
I”ve recently started playing around with GNUplot too. THat’s such a nice little app.
October 14th, 2005 at 12:11 pm
“little”??
It’s a drug to be consumed without moderation!