Gnuplot
From NA-Wiki
(Difference between revisions)
(→Gnuplot) |
|||
Line 1: | Line 1: | ||
+ | Gnuplot makes it very easy to produce nice looking eps plots from the numerical output of your simulation. A good starting points is the following snippet. Either type in following on the gnuplot prompt, or save it in a file and run it from gnuplot with ''load "file.p"''. | ||
- | + | <pre> | |
- | + | set terminal postscript enhanced color size 5,4 "Helvetica,10" | |
- | + | set out "test.eps" | |
+ | set pointsize 2 | ||
+ | set border linewidth 0.5 | ||
+ | unset key | ||
+ | set title "Some plot" | ||
+ | set xlabel "{/Symbol s}" | ||
+ | set ylabel "field" | ||
+ | plot "data1d.txt" with points, \ | ||
+ | "data1d.txt" smooth csplines with lines | ||
+ | </pre> |
Revision as of 13:33, 31 May 2008
Gnuplot makes it very easy to produce nice looking eps plots from the numerical output of your simulation. A good starting points is the following snippet. Either type in following on the gnuplot prompt, or save it in a file and run it from gnuplot with load "file.p".
set terminal postscript enhanced color size 5,4 "Helvetica,10" set out "test.eps" set pointsize 2 set border linewidth 0.5 unset key set title "Some plot" set xlabel "{/Symbol s}" set ylabel "field" plot "data1d.txt" with points, \ "data1d.txt" smooth csplines with lines