Too Cool for Internet Explorer


Swobodin's Profile | Swobodin's Blog | Back to Fedora Tunisia

gnuplot tips

gnuplot sample
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}

Related posts

(sometimes, the plugin foolishes)
QCMGen ain’t dead, OpenSource neither!
Mathematical Draw Art
Google loves me
Hyper-Reference with LaTeX
Inserting < and > symbols in LaTeX

Technorati tags

2 Responses to “gnuplot tips”

  1. Peter Says:

    I”ve recently started playing around with GNUplot too. THat’s such a nice little app. :D

  2. Swobodin Says:

    “little”??
    It’s a drug to be consumed without moderation!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a


Top Tunisie Blogs