gnuplot gnuplot 1 gnuplot exit 2 10 10 2.1 2 plot x plot sin(x) plot [-20:20] sin(x) plot [-20:20][0.5:1] sin(x), x, cos(x) + - * / ** 5 ** plot 2**x y =2 x sin(x) cos(x) exp(x) e x abs(x) log(x) log10(x) gamma(x) Γ pi π 2.2 3 splot x**2 + y**2 splot [-1:1] sqrt( x**2 + y**2 ) splot [-5:5][10:15] sqrt( x**2 + y**2 ) splot [][][-5:5] sqrt( x**2 + y**2 ) splot [-pi:pi][-1:1][-5:5] sin(x*y) / cos(x**2) 3 1
3.1 2 sample.dat # sample.dat # 2d plotting sample 1.22592 1.82792 1.85960 1.98634 2.01802 3.22201 3.25370 3.28538 3.31707 3.34875 3.38043 3.41212 3.44380 5.85179 5.88347 6.45378 7.40431 7.43599 1.18449 1.21617 8 "sample.dat" 7 6 5 4 3 2 1 0 2 4 6 8 10 12 14 16 18 20 # x 1, 2, 3,... sample.dat gnuplot plot "sample.dat" 3.2 2 x y 1.9775390625 2.566405136567 2.0019531250 2.598089182820 3.0761718750 3.992185849578 3.1005859375 4.023869806568 3.1250000000 4.055553761317 3.1494140625 4.087237713960 3.1738281250 4.118921664640 3.1982421875 4.150605613509 7 6 5 4 3 2 "sample.dat" 2 1 0 1 2 3 4 5 6 7 8 9
3.2226562500 4.182289560721 (x, y) 3.3 3 3 x, y, z 3 2 z (x, y, z) 2 z x y 2 2 3 2 3 xyz 1 1.0 1.0 3.0 1.0 1.2 4.1 2.2 1.3 3.1 3.0 1.5 2.0 2.5 1.2 2.5 2.4 3.1 2.5 splot "sample.dat" with lines "sample.dat" 4.5 4 3.5 3 2.5 2 3.5 3 1 2.5 1.5 2 2 1.5 2.5 3 1 x, y z x x =1 x =2 y 1 y =1 y =2 3.4 x y z 3
plot "sample.dat" using 3:1 using x, y, z splot 1 2 3 plot "sample.dat" using 4:($2*$3) 3.5 gnuplot pwd pwd cd cd C:Y=Documents and SettingsY=FOOY=My DocumentsY=data Y= / Unix / cd "C:/Documents and Settings/FOO/My Documents/data" / 4 test lines points linepoints dots plot splot with... with... rotated ce+ntred text Terminal Test left justified centre+d text right justified 12345678901234567890 test tics -1 01 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 test Windows plot "sample.dat" with lines 2 6 4
5 5.1 windows gif png postscript latex eepic tpic x11 aqua Windows Windows GIF PNG PostScript L A TEX picture L A TEX eepic L A TEX tpic X-Window Unix MacOSX Macintosh 5.2 set output "foo.gif" foo.gif GIF PNG foo.png EPS foo.eps foo sample report gnuplot set output sample.dat report.png PNG set terminal png set output "report.png" plot "sample.dat" with lines set output set terminal x11 aqua, windows 5
report.png MacOSX aqua x11 x11 5.3 Postscript TEX PDF EPS Encapsupated PostScript PDF EPS 1 set terminal postscript eps enhanced color solid "Times-Roman" 10 enhanced enhanced color solid font-name font-size PostScript noenhanced monochrome dashed PostScript Helvetica 10 Times-Roman Helvetica Courier dashlength 1.0 linewidth 1.0 EPS 5 3.5 5.4 TEX TEX EPS EPS TEX set terminal latex TEX set terminal eepic L A TEX Y=usepackage{eepic} Tpic dviout eepic set terminal tpic Tpic 5.5 PNG GIF PNG GIF WEB PNG GIF 1 PDF PostScript EPS PostScript 6
BMP GIF set terminal gif set terminal png 6 2 x y 3 x, y, z 6.1 plot [x-min:x-max][y-min :y-max]... plot splot set xrange [x-min:x-max] set yrange [y-min:y-max] set zrange [z-min:z-max] set x2range [x2-min:x2-max] set y2range [y2-min:y2-max] x2 y2 set xrange [0:1] reverse reverse x plot set autoscale set autoscale x x x y z x2 y xy x y z x x 6.2 set xtics start, incr, end start incr end set xtics -10, 1, 10 10 1 10 x y x2 y2 7
set xtics nomirror x2 x set x2tics mirror set xtics (0, 1, 2, 4, 8) set xtics ("min" 0, "center" 4, "max" 8) y set xtics axis set xtics border y 90 set xtics rotate axis mirror rotate 1 set xtics set tics in set tics out xtics set noxtics gnuplot 4.0 unset xtics set xtics set mxtics number number 10 set nomxtics gnuplot 4.0 unset mxtics set ticscale size m-size size 1.0 m-size 0.5 6.3 set xlabel "LABEL" 8
2 x y 3 x y z set xlabel "LABEL" r-shift, t-shift r-shift t-shift 6.4 x y =0 set xzeroaxis set zeroaxis x y 2 set noxzeroaxis gnuplot 4.0 unset xzero axis 6.5 set noborder gnuplot 4.0 unset border set border 2 set border 3 6.6 set grid set grid mxtics x set grid xtics mxtics 7 plot splot plot splot 9
7.1 plot title plot expression title "LABEL" expression LABEL 7.2 set key place place left right outside top bottom below (x,y) (x, y) set key top right (x,y) (x, y) 3 (x,y,z) 7.3 set key reverse 4 8 set key samplen 8 7.4 1 0 2 10
set key spacing 2 set key box linetype 1 linewidth 3 linetype 1 linewidth 1 test set nokey gnuplot 4.0 unset key 8 8.1 set title "TITLE" r-shift, t-shift TITLE Y=n r-shift t-shift 8.2 set size square x y set size ratio 0.5 0.5 y /x 8.3 100 set samples 200 11
8.4 set logscale x x xy x2 set logscale x 10 8.5 2 x 3 x, y set parametric x, y 3 z 2 t 3 u, v plot cos(t), sin(t) splot cos(u)*cos(v), cos(u)*sin(v), sin(u) 8.6 set contour base 3 x-y base surface both set nosurface 8.7 gnuplot 4 set pm3d x-y set pm3d at b b t s bs 12
8.8 3 2 set hidden3d 9 9.1 help help splot 9.2 "" 9.3 gnuplot load "script-file" load "sample.plt" "arg0" "arg1" $0, $1,... 10 gnuplot save set "save-name" set var function plot 13
9.4 reset 9.5 print 2*3 print log10(3) 9.6 ftp://ftp.u-aizu.ac.jp/pub/gnu/gnuplot/gnuplot/ Windows gp400win32.zip Windows Windows bin wgnuplot.exe wgnuplot.exe 9.6.1 http://takeno.iee.niit.ac.jp/~foo/gp-jman/gp-jman.html http://takeno.iee.niit. ac.jp/~foo/gp-jman/data/wgp-jp/wgp400-20050625.zip wgnuplot.hlp wgnuplot.mnu 2 bin 9.6.2 Options Choose font Terminal 14 Options Update wgnuplot.ini 9.7 gnuplot 2 2004 14