gnuplot documentation
|
|
|
- ゆきひら やたけ
- 7 years ago
- Views:
Transcription
1 gnuplot 4.6 An Interactive Plotting Program Thomas Williams & Colin Kelley Version 4.6 organized by: Hans-Bernhard Bröker, Ethan A Merritt, and others Major contributors (alphabetic order): Hans-Bernhard Bröker, John Campbell, Robert Cunningham, David Denholm, Gershon Elber, Roger Fearick, Carsten Grammes, Lucas Hart, Lars Hecking, Péter Juhász, Thomas Koenig, David Kotz, Ed Kubaitis, Russell Lang, Timothée Lecomte, Alexander Lehmann, Alexander Mai, Bastian Märkisch, Ethan A Merritt, Petr Mikulík, Carsten Steger, Shigeharu Takeno, Tom Tkacik, Jos Van der Woude, James R. Van Zandt, Alex Woo, Johannes Zellner Copyright c , 1998, 2004 Thomas Williams, Colin Kelley Copyright c various authors Mailing list for comments: [email protected] Mailing list for bug reports: [email protected] Web access (preferred): This manual was originally prepared by Dick Crawford Version 4.6.6
2 2 gnuplot 4.6 CONTENTS Contents I Gnuplot 16 (Copyright) 16 (Introduction) 17 (Seeking-assistance) 18 (New features) 19 (New syntax) (Local customization of linetypes) (New plot styles) (Revised polar axes) (time/date) / (Backwards compatibility) 21 / (Batch/Interactive) 21 (Canvas size) 22 (Command-line-editing) 22 (Comments) 23 (Coordinates) 23 (Datastrings) 24 (Enhanced text mode) 24 (Environment) 25 (Expressions) 26 (Functions) (elliptic integrals) (random) Value (Operators) (Unary) (Binary) (Ternary)
3 CONTENTS gnuplot (Summation) (Gnuplot-defined variables) (User-defined) Cairo (pdfcairo, pngcairo, epscairo, wxt ) Gd (png, gif, jpeg terminals) Postscript ( postscript *.eps ) (Glossary) 34 (linetypes) 34 (colorspec) Background color Linecolor variable Rgbcolor variable Linestyles linetypes (mouse input) 37 Bind Bind space (Mouse variables) (Persist) 39 (Plotting) 39 (Startup (initialization)) 39 (Strings) 40 (Substitution) 40 (Substitution backquotes) (Substitution macros) (mixing macros backquotes) (Syntax) 42 (Quotes) / (Time/Date) 43 II (plotting styles) 44 Boxerrorbars 44 Boxes 45
4 4 gnuplot 4.6 CONTENTS Boxplot 46 Boxxyerrorbars 46 Candlesticks 47 Circles 48 Ellipses 48 Dots 49 Filledcurves 49 Financebars 50 Fsteps 51 Fillsteps 51 Histeps 51 Histograms 51 Newhistogram (automated) Image 54 (transparency) Image failsafe Impulses 56 Labels 56 Lines 56 Linespoints 57 Points 57 Polar 57 Steps 58 Rgbalpha 58 Rgbimage 58 Vectors 58 Xerrorbars 59
5 CONTENTS gnuplot Xyerrorbars 59 Yerrorbars 59 Xerrorlines 60 Xyerrorlines 60 Yerrorlines 61 3 ( ) (3D (surface) plots) 61 2 (set view map) III (Commands) 61 Cd 62 Call 62 Clear 63 Do 63 Evaluate 63 Exit 64 Fit 64 (adjustable parameters) Fit (fit beginners guide) (error estimates) (statistical overview) (practical guidelines) (control) (control variables) (control environment) (multi-branch) (starting values) (tips) Help 71 History 71 If 71 If-old (iteration) 72
6 6 gnuplot 4.6 CONTENTS Load 72 Lower 73 Pause 73 Plot 74 (axes) Binary General Array Record Skip Format Endian Filetype Avs Edf Png Keywords Scan Transpose Dx, dy, dz Flipx, flipy, flipz Origin Center Rotate Perpendicular (data) Every (example) Index Skip Smooth Acsplines Bezier Csplines Mcsplines Sbezier Unique Unwrap Frequency Cumulative
7 CONTENTS gnuplot Cnormal Kdensity (special-filenames) Thru Using Using (using examples) (pseudocolumns) Xticlabels X2ticlabels Yticlabels Y2ticlabels Zticlabels Volatile Errorbars Errorlines (functions) (parametric) (ranges) (iteration) Title With Print 95 Pwd 95 Quit 95 Raise 96 Refresh 96 Replot 96 Reread 97 Reset 97 Save 98 Set-show 98 Angles Arrow Autoscale (parametric) (polar)
8 8 gnuplot 4.6 CONTENTS Bars Bind Bmargin Border Boxwidth Clabel Clip Cntrparam (colorbox) (colornames) (contour) Data style Datafile Set datafile fortran Set datafile nofpe trap Set datafile missing Set datafile separator Set datafile commentschars Set datafile binary Decimalsign Dgrid3d Dummy Encoding Fit Fontpath Format Gprintf (format specifiers) (time/date specifiers) Function style Functions Grid Hidden3d Historysize Isosamples Key (key placement) (key samples) (label) (linetype) Lmargin Loadpath
9 CONTENTS gnuplot Locale Logscale Macros Mapping Margin Mouse Doubleclick Mouseformat (scrolling) X11 (X11 mouse) Zoom Multiplot Mx2tics Mxtics My2tics Mytics Mztics Object Rectangle Ellipse Circle Polygon Offsets Origin Output Parametric Plot Pm3d Pm3d (algorithm) Pm3d (position) (scanorder) (clipping) Hidden3d Interpolate Palette Rgbformulae Defined Functions Cubehelix File
10 10 gnuplot 4.6 CONTENTS (gamma correction) Postscript Pointintervalbox Pointsize Polar Print Psdir Raxis Rmargin Rrange Rtics Samples Size Style Set style arrow Boxplot Set style data Set style fill Set style fill transparent Set style function Set style increment Set style line Set style circle Set style rectangle Set style ellipse Surface Table Terminal Termoption Tics Ticslevel Ticscale Timestamp Timefmt Title Tmargin Trange Urange Variables Version View Equal axes
11 CONTENTS gnuplot Vrange X2data X2dtics X2label X2mtics X2range X2tics X2zeroaxis Xdata Xdtics Xlabel Xmtics Xrange Xtics Xtics time data Xtics rangelimited Xyplane Xzeroaxis Y2data Y2dtics Y2label Y2mtics Y2range Y2tics Y2zeroaxis Ydata Ydtics Ylabel Ymtics Yrange Ytics Yzeroaxis Zdata Zdtics Zzeroaxis Cbdata Cbdtics Zero Zeroaxis Zlabel Zmtics Zrange
12 12 gnuplot 4.6 CONTENTS Ztics Cblabel Cbmtics Cbrange Cbtics Shell 170 Splot 171 (datafile) Matrix (grid data) Splot (splot surfaces) Stats ( ) 174 System 175 Test 176 Undefine 176 Unset 176 Terminal Update 177 While 177 IV (Terminal) Aed Aifm Aqua Be (command-line options) (monochrome options) (color resources) (grayscale resources) (line resources) Cairolatex Canvas Cgi
13 CONTENTS gnuplot Cgm CGM (font) CGM (fontsize) Cgm linewidth Cgm rotate Cgm solid CGM (size) Cgm width Cgm nofontlist Context Requirements Calling gnuplot from ConTeXt Corel Debug Dumb Dxf Dxy800a Eepic Emf Emxvga Epscairo Epslatex Epson 180dpi Excl Fig Ggi Gif Gpic Grass Hp2623a Hp Hp500c Hpgl Hpljii Hppj Imagen Jpeg Kyo Latex Linux Lua
14 14 gnuplot 4.6 CONTENTS Lua tikz Macintosh Mf METAFONT Mif Mp Metapost Next Openstep (next) Pbm Pdf Pdfcairo Pm Png Pngcairo Postscript PostScript (editing postscript) Postscript fontfile PostScript prologue Postscript adobeglyphnames Pslatex and pstex Pstricks Qms Qt Regis Sun Svg Svga Tek Tek410x Texdraw Tgif Tikz Tkcanvas Tpic Vgagl VWS Vx Windows (graph-menu) (printing)
15 CONTENTS gnuplot (text-menu) wgnuplot.mnu Wgnuplot.ini Wxt X X11 (x11 fonts) (command-line options) (monochrome options) (color resources) (grayscale resources) (line resources) X11 pm3d (pm3d resources) X11 (other resources) Xlib V (Bugs) 236 (limitations) 237 (External libraries) 237 VI Index 237
16 16 gnuplot 4.6 Part I Gnuplot (Copyright) Copyright (C) , 1998, 2004, 2007 Thomas Williams, Colin Kelley Permission to use, copy, and distribute this software and its documentation for any purpose with or without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Permission to modify the software is granted, but not the right to distribute the complete modified source code. Modifications are to be distributed as patches to the released version. Permission to distribute binaries produced by compiling modified sources is granted, provided you 1. distribute the corresponding source modifications from the released version in the form of a patch file along with the binaries, 2. add special version identification to distinguish your version in addition to the base release version number, 3. provide your name and address as the primary contact for the support of your modified version, and 4. retain our contact information in regard to use of the base software. Permission to distribute the released version of the source code along with corresponding source modifications in the form of a patch file is granted with same provisions 2 through 4 for binary distributions. This software is provided "as is" without express or implied warranty to the extent permitted by applicable law. AUTHORS Original Software: Thomas Williams, Colin Kelley. Gnuplot 2.0 additions: Russell Lang, Dave Kotz, John Campbell. Gnuplot 3.0 additions: Gershon Elber and many others. Gnuplot 4.0 additions: See list of contributors at head of this document. ( ; ) Copyright (C) , 1998, 2004, 2007 Thomas Williams, Colin Kelley (copyright)
17 gnuplot " " Thomas Williams, Colin Kelley. Gnuplot 2.0 Russell Lang, Dave Kotz, John Campbell. Gnuplot 3.0 Gershon Elber Gnuplot 4.0 (contributors) (Introduction) gnuplot Linux, OS/2, MS Windows, OSX, VMS, ( ) Web Octave gnuplot 1986 gnuplot 2 3 gnuplot ( ) (eps, emf, fig, jpeg, LaTeX, pdf, png, postscript,...) gnuplot wxwidgets ( ), Qt svg HTML5 canvas Web gnuplot 1 (;) ( syntax (p. 42)) load "filename" cd dir (\) * * ( comments (p. 23)) ({}) ( ) gnuplot help ( ) boldface ( ) (<>)
18 18 gnuplot 4.6 help help? gnuplot plotting ( help plotting ) simple.dem Web gnuplot gnuplot {OPTIONS} file1 file2... file1, file2 local ( ) X11 gnuplot {X11OPTIONS} {OPTIONS} file1 file2... X11 x11 (p. 231) gnuplot -e gnuplot file1.in -e "reset" file2.in "-" gnuplot gnuplot batch/interactive (p. 21) gnuplot gnuplot --help command line options (p. 21) h (hotkeys) (mousing) seeking-assistance FAQ (Seeking-assistance) gnuplot Web FAQ.pdf Web FAQ ( ; Frequently Asked Questions) gnuplot comp.graphics.apps.gnuplot SouceForge gnuplot Web [email protected] trackers upload
19 gnuplot gnuplot gnuplot (New features) 4.4 NEWS (New syntax) gnuplot (iteration) if/else/while/do if (p. 71), while (p. 177),do (p. 63) plot, set iteration (p. 72) summation (p. 31) set multiplot layout 2,2 fourier(k, x) = sin(3./2*k)/k * 2./3*cos(k*x) do for [power = 0:3] { TERMS = 10**power set title sprintf("%g term Fourier series",terms) plot sum [k=1:terms] fourier(k,x) notitle } unset multiplot 1 term Fourier series 10 term Fourier series 100 term Fourier series 1000 term Fourier series 1 columnhead (p. 28) plot for [crop in "Oats Peas Beans"] data using "Year":crop (Local customization of linetypes) ( ) set linetype (p. 126) gnuplotrc /.gnuplot initialization (p. 39) (linetype) bgnd bgnd (p. 36) (New plot styles) boxplot (p. 46), circles (p. 48), ellipses (p. 48),fillsteps (p. 51)
20 20 gnuplot 4.6 (Revised polar axes) x, y set polar (p. 145), set rrange (p. 147) 2 3 plot smooth kdensity smooth cumulative dgrid3d splot (kernel) smooth (p. 82), dgrid3d (p. 112) (time/date) gnuplot time() print strftime("%h:%m:%.3s %d-%b-%y",time(0.0)) 18:15: Apr-2011 stats plot splot column (min) (max) (standard deviation) (correlation) stats (p. 174) / qt Qt Qt qt Web 2 HTML5 canvas version 4.4 svg gnuplot svg svg/xml canvas canvas HTML javascript HTML ( ) / lua lua gnuplot-tikz.lua latex TikZ TeX TeX gnuplot lua set term tikz set term lua tikz lua lua latex context ConTeXt TeX ConTeXt gnuplot epscairo cairo pango EPS (Encapsulated PostScript) postscript EPS wxt EPS
21 gnuplot cairolatex pdfcairo epscairo cairo LaTeX PDF EPS epslatex LaTeX windows EMF HTML (Backwards compatibility) gnuplot 4.0./configure --enable-backwards-compatibility gnuplot ( ) set title "Old" 0,-1 set data linespoints plot # horizontal line at y=1 : TITLE = "New" set title TITLE offset char 0, char -1 set style data linespoints plot 1 linetype 2 pointtype 4 / (Batch/Interactive) gnuplot ( - ) gnuplot -e "command" gnuplot "-" gnuplot gnuplot exit quit load : gnuplot 2 "input1", "input2" gnuplot input1 input2 "header" "tailer" gnuplot header - trailer
22 22 gnuplot 4.6 gnuplot "-persist" gnuplot -persist -e "set title Sine curve ; plot sin(x)" a s gnuplot -e "a=2; s= file.png " input.gpl (Canvas size) gnuplot set size ( ) set size version 4.2 version 4.4 set term <terminal type> size <XX>, <YY> " " set size <XX>, <YY> PostScript gnuplot PostScript : set size 0.5, 0.5 set term png size 600, 400 set output "figure.png" plot "data" with lines "figure.png" multiplot (Command-line-editing) GNU readline BSD libedit gnuplot configure readline DEL GNU readline BSD libedit
23 gnuplot ^B ^F ^A ^E ^H DEL ^D ^K ^L, ^R ^U ^W ^P ^N 1 1 EOF (Comments) # gnuplot ( ) (command substitution) set datafile commentschars (p. 110) \ (Coordinates) set arrow, set key, set label, set object {<system>} <x>, {<system>} <y> {,{<system>} <z>} <system> first, second, graph, screen, character first x,y (3D z ) second 2 ( ) graph 0,0 1,1 (splot 0,0,0 z set xyplane (p. 166)) screen ( set size ) 0,0 1,1 character (screen 0,0) character x first y x ( set arrow... rto 2 ) set logscale x set arrow 100,5 rto 10,2 x y 100,5 1000,7 ( ) timefmt set xdata (p. 160), set timefmt (p. 157) gnuplot
24 24 gnuplot 4.6 (Datastrings) ( ) 2 ( ) "Third column is all of this text" plot datafile using 1:2:4 with labels splot datafile using 1:2:3:4 with labels (X,Y) gnuplot x 1 X x set xtics plot datafile using 3:4:xticlabels(1) with linespoints ( ) (key) 2 2,4 plot datafile using 1:(f($2)/$4) with lines title columnhead(2) plot for [i=2:6] datafile using i title "Results for ".columnhead(i) set style labels (p. 56), using xticlabels (p. 88), plot title (p. 92),using (p. 86) (Enhanced text mode) (enhanced text mode) "x^2" x 2 "set term png enhanced" "set termoption enhanced" / "set label x 2 noenhanced" ^ a^x a x _ a_x a a@^b_{cd} a b cd ( ) & d&{space}b d b ~ ~a{.8-} ã a -.8 ( 2^{10}) {/[fontname][=fontsize *fontscale] text} {/Symbol=20 G} 20 ( ) {/*0.75 K} 3/4 K ( / { ) (phantom box) a@^b c ( iso utf8) set encoding (p. 113) ) &
25 gnuplot abc&{def}ghi (abc ghi 3 ): abc ghi 2 a/ a 2 1 ( {abc}{.5 000} ) ( {abc}{.5 } ) ( a{.5 /*.2 o} ; a 1/5 o ) a{\^} ( ) \ (8 ) {/Symbol \245} UTF-8 UTF-8 \\ \{ \ 2 ( ): set xlabel Time (10^6 {/Symbol m}s) set title {/Symbol=18 \\362@_{/=9.6 0}^{/=12 x}} \\ {/Helvetica e^{-{/symbol m}^2/2} d}{/symbol m} gnuplot /docs/psdoc "ps guide.ps" (Environment) gnuplot GNUTERM (terminal) gnuplot.gnuplot ( ) ( startup (p. 39)) GNUHELP (gnuplot.gih) VMS GNUPLOT$HELP gnuplot gnuplot gnuplot Unix.gnuplot HOME MS-DOS, Windows, OS/2 GNUPLOT Windows NT USERPROFILE VMS SYS$LOGIN help startup Unix PAGER Unix SHELL shell MS-DOS, OS/2 COMSPEC shell FIT SCRIPT (fit) gnuplot fit (p. 64) FIT LOG
26 26 gnuplot 4.6 GNUPLOT LIB Unix : MS-DOS, Windows, OS/2 ; GNUPLOT LIB loadpath save save set gd TrueType GDFONTPATH GNUPLOT DEFAULT GDFONT postscript GNU- PLOT FONTPATH GNUPLOT LIB GNUPLOT FONTPATH fontpath save save set PostScript ( ) GNUPLOT PS DIR gnuplot postscript prologue postscript prologue (p. 218) (Expressions) C, FORTRAN, Pascal, BASIC C {<real>,<imag>} <real> <imag> ( ) {3,2} 3 + 2i {0,1} i gnuplot " " " " FORTRAN C "1", "-10" "1.0", "-10.0", "1e1", 3.5e-1 2 5/2 = 2 5.0/2.0 = 2.5 " " 5/2e0 = 2.5 "print -5/2" -2-3 "1/0" " (undefined)" NaN using (p. 86) {3,2} "3" "2" gnuplot ("A". "B" eq "AB") ("3" + "4" == 7) (6.78 == "6.78") ("file". 4 eq "file4") [beg:end] "ABCDEF"[3:4] == "CD" "ABCDEF"[4:*] == "DEF" "string"[beg:end] substr("strings",beg,end) beg, end (Functions) gnuplot Unix ( sin(x), cos(x), arg(z)) set angles
27 gnuplot abs(x) x, x ; abs(x) x, real(x) 2 + imag(x) 2 acos(x) cos 1 x ( ) acosh(x) cosh 1 x ( ) airy(x) Ai(x) arg(x) x asin(x) sin 1 x ( ) asinh(x) sinh 1 x ( ) atan(x) tan 1 x ( ) atan2(y,x) tan 1 (y/x) ( ) atanh(x) tanh 1 x ( ) EllipticK(k) k (-1:1) K(k) 1 EllipticE(k) k [-1:1] E(k) 2 EllipticPi(n,k) n<1, k (-1:1) Π(n, k) 3 besj0(x) j 0 (0 ) besj1(x) j 1 (1 ) besy0(x) y 0 (0 ) besy1(x) y 1 (1 ) ceil(x) x, x ( ) cos(x) x cos x cosh(x) cosh x, x erf(x) erf(real(x)), x erfc(x) erfc(real(x)), (x ) exp(x) e x, x expint(n,x) n 0, x 0 E n (x) = t n e xt dt, x 1 floor(x) x, x ( ) gamma(x) gamma(real(x)), x ibeta(p,q,x) ibeta(real(p, q, x)), p,q,x inverf(x) x igamma(a,x) igamma(real(a, x)), a,x imag(x) x ( ) invnorm(x) x int(x) x (0 ) lambertw(x) Lambert W lgamma(x) lgamma(real(x)), x log(x) log e x, x ( e) log10(x) log 10 x, x ( 10) norm(x) x ( ) rand(x) [0:1] real(x) x sgn(x) x > 0 1, x < 0-1, x = 0 0. x sin(x) sin x, x sinh(x) sinh x, x sqrt(x) x, x tan(x) tan x, x tanh(x) tanh x, x voigt(x,y) Voigt/Faddeeva y exp(t 2 ) π (x t) 2 +y dt 2
28 28 gnuplot 4.6 gprintf( format,x,...) gnuplot sprintf( format,x,...) C sprintf strlen( string ) ( ) strstrt( string, key ) key substr( string,beg,end) string [beg:end] strftime( timeformat,t) gnuplot strptime( timeformat,s) s 2000 system( command ) word( string,n), string n words( string ) string gnuplot column(x) x column(x) x columnhead(x) x defined(x) [ ] X 1, 0 exists( X ) X 1, 0 stringcolumn(x) x timecolumn(x) x tm hour(x) tm mday(x) tm min(x) tm mon(x) tm sec(x) tm wday(x) tm yday(x) tm year(x) time(x) valid(x) column(x) value( name ) name (elliptic integrals) EllipticK(k) 1 (1-(k*sin(p))**2)**(-0.5) 0 /2 k -1 1 ( ) EllipticE(k) 2 (1-(k*sin(p))**2)**0.5 0 /2 k -1 1 ( ) EllipticPi(n,k) 3 (1-(k*sin(p))**2)**(-0.5)/(1-n*sin(p)**2) 0 /2 n 1 k -1 1 ( ) k EllipticPi(0,k) == EllipticK(k) (random) rand() 0 1 P. L Ecuyer and S. Cote, "Implementing arandom number package with splitting facilities", ACM Transactions onmathematical Software, 17: (1991). rand(0) 2 32bit (seed) [0:1] rand(-1) 2 rand(x) 0 < x < 2^31-1 x rand({x,y}) 0 < x,y < 2^31-1 seed1 x seed2 y
29 gnuplot Value A B = value("a") B = A user-defined variables (p. 31) value() value() NaN (Operators) gnuplot C FORTRAN ** ( ) (Unary) - -a + +a ( ) ~ ~a * 1 ( )!!a *! a! * $ $3 * using / (*) Fortran C -2**2 = -4 (-2)**2 = 4 (Binary)
30 30 gnuplot 4.6 ** a**b * a*b / a/b % a%b * + a+b - a-b == a==b!= a!=b < a<b <= a<=b > a>b >= a>=b & a&b * (AND) ^ a^b * (XOR) a b * (OR) && a&&b * AND a b * OR = a = b, (a,b). A.B eq A eq B ne A ne B (*) A,B AND (&&) OR ( ) C && (,) (Ternary)?: a?b:c C (a) ( ) 2 (b) 3 (c) : 0 <= x < 1 sin(x) 1 <= x < 2 1/x x f(x) = 0<=x && x<1? sin(x) : 1<=x && x<2? 1/x : 1/0 plot f(x) gnuplot (1/0) lines ( ) (x=1) 2 ( )
31 gnuplot file plot file using 1:( $4<0? 1/0 : ($2+$3)/2 ) using plot datafile using (p. 86) (Summation) sum [<var> = <start> : <end>] <expression> <var> <start> <end> <expression> print sum [i=1:10] i 55. # plot data using 1:($2+$3+$4+$5+$6+...) plot data using 1 : (sum [col=2:maxcol] column(col)) <expression> <var> <start> <end> <end> <start> 0 (Gnuplot-defined variables) gnuplot GPVAL TERM, GPVAL X MIN, GPVAL X MAX, GPVAL Y MIN "GPVAL " show variables all ( ) set : [X,Y] GRAPH_X = (X - GPVAL_X_MIN) / (GPVAL_X_MAX - GPVAL_X_MIN) GRAPH_Y = (Y - GPVAL_Y_MIN) / (GPVAL_Y_MAX - GPVAL_Y_MIN) SCREEN_X = GPVAL_TERM_XMIN + GRAPH_X * (GPVAL_TERM_XMAX - GPVAL_TERM_XMIN) SCREEN_Y = GPVAL_TERM_YMIN + GRAPH_Y * (GPVAL_TERM_YMAX - GPVAL_TERM_YMIN) FRAC_X = SCREEN_X / GPVAL_TERM_XSIZE FRAC_Y = SCREEN_Y / GPVAL_TERM_YSIZE GPVAL ERRNO gnuplot 0 GPVAL ERRMSG GPVAL ERRNO GPVAL ERRMSG reset errors mouse "MOUSE " mouse variables (p. 38) fit "FIT " fit "FIT LIMIT" set fit errorvariables " err" fit (p. 64) user-defined variables (p. 31), reset errors (p. 97),mouse variables (p. 38), fit (p. 64) (User-defined) 1 12 plot <func-name>( <dummy1> {,<dummy2>}... {,<dummy12>} ) = <expression>
32 32 gnuplot 4.6 <expression> <dummy1> <dummy12> <variable-name> = <constant-expression> : w = 2 q = floor(tan(pi/2-0.1)) f(x) = sin(w*x) sinc(x) = sin(pi*x)/(pi*x) delta(t) = (t == 0) ramp(t) = (t > 0)? t : 0 min(a,b) = (a < b)? a : b comb(n,k) = n!/(k!*(n-k)!) len3d(x,y,z) = sqrt(x*x+y*y+z*z) plot f(x) = sin(x*a), a = 0.2, f(x), a = 0.4, f(x) file = "mydata.inp" file(n) = sprintf("run_%d.dat",n) 2 pi ( ) NaN (IEEE ("Not a Number")) NaN = GPVAL_NaN pi = GPVAL_pi (fit) gnuplot gnuplot-defined variables (p. 31) V exists("v") a = 10 if (exists("a")) print "a is defined" if (!exists("b")) print "b is not defined" " " GPFUN : set label GPFUN_sinc at graph.05,.95 show functions (p. 117), functions (p. 90), gnuplot-defined variables (p. 31),macros (p. 41), value (p. 29) gnuplot Cairo (pdfcairo, pngcairo, epscairo, wxt ) fontconfig fontconfig gnuplot fontconfig
33 gnuplot set term pdfcairo font "sans,12" set term pdfcairo font "Times,12" set term pdfcairo font "Times-New-Roman,12" Gd (png, gif, jpeg terminals) png, gif, jpeg libgd libgd 5 tiny (5x8 ), small (6x12 ), medium, (7x13 Bold), large (8x16), giant (9x15 ) font set term png tiny libgd Adobe Type 1 (*.pfa) TrueType "<face> {,<pointsize>}" <face> GDFONTPATH set term png font "Face" < >/Face.ttf < >/Face.pfa GDFONTPATH /usr/local/fonts/ttf:/usr/local/fonts/pfa 2 set term png font "arial" set term png font "/usr/local/fonts/ttf/arial.ttf" set term png font "Helvetica" set term png font "/usr/local/fonts/pfa/helvetica.pfa" set term png font "arial,11" TrueType Adobe Type 1 "set term" gnuplot GNUPLOT DEFAULT GDFONT Postscript ( postscript *.eps ) PostScript gnuplot PostScript PostScript (*.eps) gnuplot PostScript Adobe Times-Roman, Helvetica, Courier, Symbol gnuplot gnuplot *.ps *.eps set term postscript eps font "Times-Roman,12" set term postscript eps font "Garamond-Premier-Pro-Italic" PostScript postscript fontfile (p. 217)
34 34 gnuplot 4.6 (Glossary) gnuplot " (page)" " (screen)" " (canvas)" gnuplot svga " (plot)" (margin) (text) " " " (line)" "line" " (a line of text)" "( ) key" "( ) legend" " (title)" gnuplot " (plot)" " (line)" " (key)" "x" "y" "x2" "y2" axes (p. 75) 3 3 (axes) "x","y","z" set view " (record)" " (point)" " (datablock)" "line" ( ) (linetypes) gnuplot " (linetype)" / / (set terminal) test / -1 ( ) "bgnd" (linetype) gnuplot set linetype (p. 126) : plot "foo", "bar" # 1, 2 2 plot sin(x) linetype 4 # 4
35 gnuplot plot sin(x) lt -1 # rgb ( ) pm3d : plot sin(x) lt rgb "violet" plot sin(x) lt rgb "#FF00FF" plot sin(x) lt palette cb -45 plot sin(x) lt palette frac 0.3 # gnuplot # 16 RGB 3 # cbrange # -45 # show colornames (p. 108), set palette (p. 140), cbrange (p. 170) / / gnuplot / (linetype) linecolor ( lc) postscript 3 3 ( ) ( 1 ) : set term postscript dashed color plot foo lt 3, baz lt 3 linecolor 1, bar lt 3 lc rgb gold (colorspec) RGB pm3d... {linecolor lc} {<colorspec> <n>}... {textcolor tc} {<colorspec> {linetype lt} <n>} <colorspec> rgbcolor "colorname" rgbcolor "#RRGGBB" rgbcolor variable # palette frac <val> # <val> 0 1 palette cb <value> # <val> cbrange palette z variable # <n> (linetype) test (p. 176) "colorname" gnuplot show colornames (p. 108) "#RRGGBB" "#" 16 RRGGBB ( ) = + #FF00FF 16 (255 << 16) + (0 << 8) + (255) 2 palette frac 0 1 palette cb set cbrange (p. 170), set colorbox (p. 107) "palette z" z cbrange 3 2 ( 2 )
36 36 gnuplot 4.6 Background color (linetype) bgnd bgnd # set term wxt background rgb "gray75" set object 1 rectangle from x0,y0 to x1,y1 fillstyle solid fillcolor bgnd # x plot 0 lt bgnd Linecolor variable lc variable (linetype) using tc variable : # 3 plot data using 1:2:3 with points lc variable # # 2 # index ( index ) using # column(-2) pseudocolumns # -2 column # plot data using 1:2:(column(-2)) with lines lc variable Rgbcolor variable lc rgbcolor variable RGB using 24-bit RGB 3 16 ( rgbcolor (p. 35)) 24-bit RGB using tc rgbcolor variable : # 3 x,y,z # rgb(r,g,b) = * int(r) * int(g) + int(b) splot "data" using 1:2:3:(rgb($1,$2,$3)) with points lc rgb variable Linestyles linetypes (point) set style line " (linestyle)" linestyle plot linetypes ( ) linestyles : # cyan 3 # 6 ( ) set style line 5 lt rgb "cyan" lw 3 pt 6 plot sin(x) with linespoints ls 5 # 5
37 gnuplot (mouse input) batch pause mouse bind (p. 37),mouse variables (p. 38) set mouse (p. 129) Bind bind {allwindows} [<key-sequence>] ["<gnuplot commands>"] bind <key-sequence> "" reset bind bind gnuplot bind gnuplot mouse (binding) (builtin) <space> q bind space (p. 38) 1 2D show bind, bind h reset bind bind allwindows <key>... (bind all <key>... ) <key> gnuplot gnuplot MOUSE KEY WINDOW ID : - bind a "replot" bind "ctrl-a" "plot x*x" bind "ctrl-alt-a" print "great" bind Home "set view 60,30; replot" bind all Home print "This is window ",MOUSE_KEY_WINDOW - bind "ctrl-a" bind show bind - bind "ctrl-alt-a" "" reset bind bind! # ctrl-a # # # ctrl-alt-a ( ) # ( ) # "reset bind" ( ) - v=0 bind "ctrl-r" "v=v+1;if(v%2)set term x11 noraise; else set term x11 raise"
38 38 gnuplot 4.6 (ctrl / alt) ctrl-alt-a == CtRl-alT-a ctrl-alt-a!= ctrl-alt-a (alt == meta) ctrl, alt "BackSpace", "Tab", "Linefeed", "Clear", "Return", "Pause", "Scroll_Lock", "Sys_Req", "Escape", "Delete", "Home", "Left", "Up", "Right", "Down", "PageUp", "PageDown", "End", "Begin", "KP_Space", "KP_Tab", "KP_Enter", "KP_F1", "KP_F2", "KP_F3", "KP_F4", "KP_Home", "KP_Left", "KP_Up", "KP_Right", "KP_Down", "KP_PageUp", "KP_PageDown", "KP_End", "KP_Begin", "KP_Insert", "KP_Delete", "KP_Equal", "KP_Multiply", "KP_Add", "KP_Separator", "KP_Subtract", "KP_Decimal", "KP_Divide", "KP_1" - "KP_9", "F1" - "F12" "Button1" "Close" mouse (p. 129) Bind space gnuplot configure enable-rase-console <space> gnuplot gnuplot -ctrlq gnuplot X gnuplot*ctrlq ctrl-space x11 command-line-options (p. 233) (Mouse variables) mousing ( ) gnuplot MOUSE X, MOUSE Y, MOUSE X2, MOUSE Y2 MOUSE BUTTON, MOUSE SHIFT, MOUSE ALT, MOUSE CTRL plot something pause mouse if (defined(mouse_button)) call something_else ; \ else print "No mouse click." plot something pause mouse keypress print "Keystroke ", MOUSE_KEY, " at ", MOUSE_X, " ", MOUSE_Y pause mouse keypress MOUSE KEY ASCII MOUSE CHAR pause ( ctrl-c ) MOUSE KEY -1 GPVAL X MIN, GPVAL X MAX, GPVAL Y MIN, GP- VAL Y MAX gnuplot-defined variables (p. 31)
39 gnuplot (Persist) gnuplot (aqua, pm, qt, x11, windows, wxt,...) persist gnuplot gnuplot -persist -e plot [-5:5] sinh(x) gnuplot ( ) persist nopersist set term qt persist size 700,500 (Plotting) gnuplot 3 plot, splot, replot plot 2 splot 3 ( 2 ) replot plot splot plot 3 splot plot xy set polar (p. 145) splot xyz set mapping 2, 3 using plot splot plot 4 x ( ), x2 ( ), y ( ), y2 ( ) axes set set xlabel set logscale xy 1 z 2 splot 3 set isosamples (p. 120) 3 splot datafile (p. 171) set contour (p. 108), set cntrparam (p. 105) splot x2 y2 z plot (Startup (initialization)) gnuplot gnuplotrc gnuplot show loadpath Unix.gnuplot GNUPLOT.INI (Windows OS/2 GNUPLOT ; Windows GNUPLOT USEPROFILE ) gnuplot
40 40 gnuplot 4.6 (Strings) gnuplot 4 plot four = "4" graph4 = "Title for plot #4" graph(n) = sprintf("title for plot #%d",n) plot data.4 title "Title for plot #4" plot data.4 title graph4 plot data.4 title "Title for plot #".four plot data.4 title graph(4) N = 4 plot data..n title "Title for plot #".N gnuplot plot = "my_datafile.dat" title = "My Title" plot plot title title 3 ".", "eq", "ne" TRUE if ("A"."B" eq "AB") print "TRUE" 2 gprintf (p. 116), sprintf (p. 28) [begin:end] begin end 1 * str[:] str[*:*] str (Substitution) gnuplot 2 (ASCII (ASCII 64) (Substitution backquotes) plot datafile special-filenames (p. 84) gnuplot : leastsq leastsq ( )
41 gnuplot f(x) = leastsq VMS f(x) = run leastsq set label "generated on date +%Y-%m-%d by whoami " at 1,1 set timestamp "generated on %Y-%m-%d by whoami " (Substitution macros) set set macros style1 = "lines lt 4 lw 2" style2 = "points lt 3 pt 5 ps 2" range1 = "using 1:3" range2 = "using 1:5" plot with plot "foo" using 1:3 with lines lt 4 lw 2, \ "bar" using 1:5 with points lt 3 pt 5 ps 2 exists() C C = "pi" if (exists(c)) print C," = gnuplot gnuplot A = A = # will not expand to c=1 evaluate (mixing macros backquotes) filename = "mydata.inp" lines = wc sed "s/.*//"
42 42 gnuplot 4.6 mydata.ipn lines mycomputer = " uname -n " uname -n mycomputer machine_id = "uname -n" mycomputer = " id sprintf 3 machine_id = sprintf( " uname -n " ) mycomputer (Syntax) (,) ( ) (:) ([]) (()) set arrow, key, label ; (fit) ( fit via ); set cntrparam ; set dgrid3d dummy, isosamples, offsets, origin, samples, size, time, view ; ; ; plot, replot, splot x,y,z ; plot, replot, splot ( ) ( ) ( ) fit, plot, replot, splot using ( ) set, plot, splot range ( ) (set, plot, splot ) plot, replot, splot, fit using (;) ({}) (enhanced text mode) if/then/else {3,2} = 3 + 2i EEPIC, Imagen, Uniplex, LaTeX, TPIC \\ \\\\ (Quotes) gnuplot (ASCII 34 ) (ASCII 39 ) (ASCII 96 ) 3 (label) (title)
43 gnuplot \n ( ) \345 (8 ) (\) 2 (ASCII 39 ) "d\" s b\\" d" s b\ 1 "This is the first line of text.\nthis is the second line." This is the first line of text. This is the second line. This is the first line of text.\nthis is the second line. This is the first line of text.\nthis is the second line. (enhanced text processing) enhanced text (p. 24) ( ) substitution (p. 40) / (Time/Date) gnuplot / set xdata time, set ydata time Unix ( ) 2 EPOCH OFFSET = unix gnuplot gnuplot 5 set timefmt / x y / ( ) (UT; (GMT) ) ( ) UT show xrange timefmt timefmt show timefmt (set xdata ) set format set tics format / / plot, splot using plot, splot / time strftime timecolumn time() ( ) ( )
44 44 gnuplot 4.6 strftime / "data" 03/21/95 10: e23 set xdata time set timefmt "%m/%d/%y" set xrange ["03/21/95":"03/22/95"] set format x "%m/%d" set timefmt "%m/%d/%y %H:%M" plot "data" using 1:3 x "03/21" time specifiers (p. 117) Part II (plotting styles) gnuplot set style data set style function plot splot plot splot : plot data with boxes, sin(x) with lines lines y 1 (x ) x, y 2 using (p. 86) Boxerrorbars boxerrorbars 2 boxes yerrorbars : x y ydelta 4 : x y ydelta xdelta #!= -2 4 : x y ylow yhigh # == -2 5 : x y ylow yhigh xdelta
45 gnuplot y "ydelta" -2.0 (set boxwidth -2.0) 4 y "ylow yhigh" 5 "ylow yhigh" 4 boxwidth = with boxerrorbars (4,5,6 ) variable color ( linecolor (p. 35), rgbcolor variable (p. 36)) yerrorbars y y-ydelta y+ydelta ylow yhigh errorbar Boxes boxes 2 x x ( ) y 2 3 variable ( rgbcolor variable (p. 36)) 2 : x y 3 : x y x_width with boxes 3 3 set boxwidth (fillstyle) set style fill (p. 150) plot empty solid <density> 0 1 pattern : ( ): set boxwidth 0.9 relative set style fill solid 1.0 plot file.dat with boxes sin cos set style fill pattern plot sin(x) with boxes, cos(x) with boxes sin 0 cos 1
46 46 gnuplot 4.6 plot file1 with boxes fs solid 0.25, \ file2 with boxes fs solid 0.50, \ file3 with boxes fs solid 0.75, \ file4 with boxes fill pattern 1, \ file5 with boxes fill empty Boxplot boxplot 1/4 1/2 ( ) : # x 1.0 y 5 boxplot plot data using (1.0): A B # boxplot 0.3 set style boxplot nooutliers plot data using (1.0):5:(0.3) using 2 y boxplot 1 (4 ) boxplot boxplot 1.0 set style boxplot separation boxplot ( ) # data 2 "control" "treatment" # 2 boxplot plot data using (1.0):5:(0):2 set boxwidth <width> plot using (x ) y 1.5 (outlier) (pointtype 7) set bars set style boxplot set style boxplot (p. 149), bars (p. 102), boxwidth (p. 104), fillstyle (p. 150),candlesticks (p. 47) Boxxyerrorbars
47 gnuplot boxxyerrorbars 2 xyerrorbars 4 6 variable ( rgbcolor variable (p. 36)) 4 : x y xdelta ydelta 6 : x y xlow xhigh ylow yhigh with boxxyerrorbars xyerrorbars x, y xlow xhigh ylow yhigh x-xdelta x+xdelta y-ydelta y+ydelta (5,7 ) variable color ( linecolor (p. 35), rgbcolor variable (p. 36)) (fillstyle) set style fill (p. 150), boxes (p. 45) plot Candlesticks candlesticks 2 x (open) (close) x (high) (low) 5 date open low high close x box_min whisker_min whisker_high box_high with candlesticks set boxwidth gnuplot boxwidth set bars <width> (box-and-whisker) 6 x (6 6 7 ) variable color ( linecolor (p. 35), rgbcolor variable (p. 36)) (box-and-whisker plot) whiskerbars (candlestick) ( ) < ( ) ( ) < ( ) fillstyle "empty" fillstyle (p. 150) fillstyle set bars (p. 102),financebars (p. 50) candlestick finance
48 48 gnuplot 4.6 # X 1/4 3/4 set bars 4.0 set style fill empty plot stat.dat using 1:3:2:6:5 with candlesticks title Quartiles, \ using 1:4:4:4:4 with candlesticks lt -1 notitle # 50% plot stat.dat using 1:3:2:6:5 with candlesticks whiskerbars 0.5 set boxwidth (p. 104), set bars (p. 102), set style fill (p. 150), boxplot (p. 46) Circles circles 3 x, y, (x x2) y 2 set style circle graph screen : # 3 set style fill transparent solid 0.2 noborder plot data using 1:2:(sqrt($3)) with circles, \ data using 1:2 with linespoints # plot data using 1:2:(10):(40):(320) with circles # set xrange [-15:15] set style fill transparent solid 0.9 noborder plot - using 1:2:3:4:5:6 with circles lc var e pointstyle 7 variable points circles x set object circle (p. 134), fillstyle (p. 150) Ellipses
49 gnuplot ellipses (ellipse) 2 x 2 : x y 3 : x y major_diam 4 : x y major_diam minor_diam 5 : x y major_diam minor_diam angle with ellipses 2 ( set style ellipse (p. 154)) x ellipse ( set style ellipse (p. 154)) 3 3 ( ) 0 4 ( ) 5 5 3,4,5 variable color (3,4,5,6 ) colorspec (p. 35) (x x2) (y y2) x y units 3 units xy units xx x units yy y 2 units units xy set style ellipse ( ): plot data using 1:2:3:4:(0):0 with ellipses set object ellipse (p. 134), set style ellipse (p. 154), fillstyle (p. 150) Dots dots (post, pdf ) linewidth 1 : y # x 2 : x y 3 : x y z # 3D (splot) Filledcurves
50 50 gnuplot 4.6 filledcurves plot... with filledcurves [option] with filledcurves above below curve 1 curve 2 [closed {above below} {x1 x2 y1 y2 r}[=<a>] xy=<x>,<y>] closed 2 2 filledcurves closed... filledcurves x1... x1 filledcurves x2... x2 (y1, y2 ) filledcurves y1=0... (y1 ) y=0 i.e. x1 filledcurves y2=42... (y2 ) y=42 i.e. x2 filledcurves xy=10,20... x1,y1 10,20 ( ) filledcurves above r= x 2 y x 2 y : x y1 y2 2 plot data using 1:2:3 with filledcurves above below... filledcurves above {x1 x2 y1 y2 r}=<val>... using 1:2:3 with filledcurves below gnuplot <a>, <x>, <y> xy=<x>,<y> xrange yrange Financebars financebars 2 x 1 ( ) 4 y ( ) 5 : date open low high close (6 ) variable color ( linecolor (p. 35), rgbcolor variable (p. 36))
51 gnuplot x (high) (low) (open) (close) set bars : set bars (p. 102), candlesticks (p. 47) with financebars Fsteps fsteps (x1,y1) (x1,y2) 2 (x1,y2) (x2,y2) lines points fsteps steps fsteps y x steps x y steps with fsteps Fillsteps fillsteps steps y=0 fillstyle steps (p. 58) Histeps histeps 2 y x x1 ((x0+x1)/2,y1) ((x1+x2)/2,y1) x ((x1+x2)/2,y1) ((x1+x2)/2,y2) lines points with histeps autoscale x steps histeps gnuplot Histograms histograms 2 plot
52 52 gnuplot 4.6 ( 1 ) 4 set style histogram clustered {gap <gapsize>} set style histogram errorbars {gap <gapsize>} {<linewidth>} set style histogram rowstacked set style histogram columnstacked set style histogram clustered gap 2 ( ) x <n> x=1 <n> <n> (1 ) (gap) (2 ) x=2 (gap) 2 2 ( set style fill (p. 150)) 1 ( ) ( ) using xticlabels x errorbars clustered clustered (y ) 2 : y yerr # y-yerr y+err 3 : y ymin ymax # ymin ymax set bars <linewidth> 2 set style histogram {rowstacked columnstacked} y=0 rowstacked rowstacked x 1 x=1 2 x=2 2 x=1 (1 ) x=2 2 ( set style fill (p. 150)) columnstacked ( ) x=1 2 x=2 ( ) set boxwidth set style fill histograms x x1 y y1 y2 plot histograms histogram x1 x2 :
53 gnuplot , 4, 6,... 3, 5, 7, (clustered; ) plot (iteration) iteration (p. 72) set boxwidth 0.9 relative set style data histograms set style histogram cluster set style fill solid 1.0 border lt -1 plot for [COL=2:4:2] file.dat using COL ClassB ClassA x 2 ( ) x plot for [COL=2:4:2] file.dat using COL:xticlabels(1) (y-<error>) (y+<error>) 2 set bars fullwidth set style fill solid 1 border lt -1 set style histogram errorbars gap 2 lw 2 2 plot for [COL=2:4:2] file.dat using COL:COL Histogram with error bars (rowstacked) set style histogram rowstacked plot file.dat using 2, using 4:xtic(1) B A Rowstacked ClassB ClassA set style histogram columnstacked plot file.dat using 2, using x=1 2 x=2 4 gnuplot key x set style histogram columnstacked 0 plot u 5:key(1) # 1 key plot u 5 title columnhead # ClassA Columnstacked 2 ClassB
54 54 gnuplot 4.6 Newhistogram newhistogram {"<title>"} {lt <linetype>} {fs <fillstyle>} {at <x-coord>} 2 newhistogram set style histogram cluster plot newhistogram "Set A", a using 1, using 2, using 3, \ newhistogram "Set B", b using 1, using 2, using 3 "Set A" "Set B" x newhistogram (linetype) plot newhistogram "Set A" lt 4, a using 1, using 2, using 3, \ newhistogram "Set B" lt 4, b using 1, using 2, using 3 fillstyle fillstyle pattern at <x-coord> x <x-coord> set style histogram cluster set style data histogram set style fill solid 1.0 border -1 set xtic 1 offset character 0,0.3 plot newhistogram "Set A", \ file.dat u 1 t 1, u 2 t 2, \ newhistogram "Set B" at 8, \ file.dat u 2 t 2, u 2 t ClassA ClassB ClassA ClassB Set A Set B 2 x=8 (automated) plot (iteration) iteration (p. 72) 3 8 set style histogram columnstacked plot for [i=3:8] "datafile" using i title columnhead Image image, rgbimage, rgbalpha 2 3 (PNG )
55 gnuplot plot - matrix with image e e D Heat map from in-line array of values ( ) M x N M x N M x N (M-1) x (N-1) pm3d binary keywords flipx (p. 78),keywords center (p. 78), keywords rotate (p. 79) x y 2 binary keywords dx (p. 78), dy (p. 78) dx, dy, origin PNG 50x128 dx=0.5 dy=1.5 dx=0.5 dy=0.35 ( pdflatex ) RGB image mapped onto a plane in 3D Rescaled image used as plot element Downtown S NE Suburbs Building Heights by Neighborhood image ( ) 2 (plot ) 3 (x,y,value) 3 (splot ) 4 (x,y,z,value) rgbimage 3 (RGB) plot 5 (x,y,r,g,b) splot 6 (x,y,z,r,g,b) [0:255] rgbalpha RGB ( ) plot 6 (x,y,r,g,b,a) splot 7 (x,y,z,r,g,b,a) [0:255] (transparency) rgbalpha [0:255] alpha = 0 ( ) alpha = < alpha < 255 2, Image failsafe 2
56 Saint-Lô Cahors Foix Guéret Tulle Mende Privas Bar-le-Duc Lons-le-Saunier Vesoul Digne-les-Bains 56 gnuplot 4.6 failsafe plot data with image failsafe Impulses impulses 2 y=0 y 3 z=0 z y z 3 (linewidth > 1) 3 1 : y 2 : x y # [x,0] [x,y] (2D) 3 : x y z # [x,y,0] [x,y,z] (3D) with impulses Labels labels ( rgbcolor variable (p. 36)) 3 : x y string # 2 4 : x y z string # 3 Amiens Charleville-Mézières Laon Le HavreRouen Beauvais Caen Reims Évreux Pontoise Châlons-en-Champagne Boulogne-Billancourt Périgueux Bordeaux Lille Arras Nanterre Bobigny Versailles Créteil Paris Évry Saint-Brieuc Melun Alençon Chartres Brest Troyes Rennes Laval Quimper Le Mans Orléans Auxerre Vannes Blois Angers Tours Nantes BourgesNevers Châteauroux La Roche-sur-Yon Poitiers Moulins Niort La Rochelle Limoges Angoulême Chaumont Dijon Besançon Mâcon Bourg-en-Bresse Annecy Clermont-FerrandVilleurbanne Lyon Chambéry Saint-Étienne Grenoble Le Puy-en-Velay Aurillac Valence Metz Nancy Strasbourg Épinal Colmar Belfort Mulhouse Rodez Agen Montauban Mont-de-Marsan Albi Avignon Nîmes Auch Toulouse Montpellier Aix-en-Provence Nice PauTarbes Carcassonne Marseille Toulon Gap Perpignan Bastia Ajaccio ( set label (p. 124)) 1 4, 5 3 CityName(String,Size) = sprintf("{/=%d %s}", Scale(Size), String) plot cities.dat using 5:4:(CityName(stringcolumn(1),$3)) with labels plot cities.dat using 5:4:1 with labels font "Times,8" labels 3 X,Y,Z 4 splot datafile using 1:2:3:4 with labels datastrings (p. 24), set style data (p. 150) Lines
57 gnuplot lines ( rgbcolor variable (p. 36)) 2 1 : y # x 2 : x y with lines 3 1 : z # x y index 3 : x y z linetype (p. 126), linewidth (p. 152), linestyle (p. 152) Linespoints linespoints set pointsize style lines (p. 56) with linespoints pointinterval -2 (linetype) pointinterval ( pi) with lp pi 3 3 pointinterval set pointintervalbox linespoints lp Points points set pointsize style lines (p. 56) with points ps variable Polar
58 58 gnuplot 4.6 (polar) set polar 2 <x>,<y> < >,< > gnuplot 2 lines filledcurves ( pdflatex ) : set polar (p. 145), set rrange (p. 147),set size square (p. 147) bounding radius sin(t)*cos(5*t) Steps steps (x1,y1) (x2,y1) 2 (x2,y1) (x2,y2) lines points fsteps steps fsteps y x steps x y y=0 fillsteps steps with fillsteps with steps Rgbalpha image (p. 54) Rgbimage image (p. 54) Vectors 2 vectors (x,y) (x+xdelta,y+ydelta) 3 vectors 6 4 : x y xdelta ydelta 6 : x y z xdelta ydelta zdelta (2D 5 3D 7 ) variable color ( linecolor (p. 35),rgbcolor variable (p. 36)) vectors splot set mapping cartesian "with vectors" arrow arrow arrow "arrowstyle variable" arrow plot arrow plot... with vectors filled heads
59 gnuplot plot... with vectors arrowstyle 3 plot... using 1:2:3:4:5 with vectors arrowstyle variable arrowstyle (p. 148) : plot file.dat using 1:2:3:4 with vectors head filled lt 2 splot file.dat using 1:2:3:(1):(1):(1) with vectors filled head lw 2 set clip one set clip two 2 set clip (p. 105), arrowstyle (p. 148) Xerrorbars xerrorbars 2 xerrorbars (error bar) points (x,y) (xlow,y) (xhigh,y) (x-xdelta,y) (x+xdelta,y) (set bars set bars (p. 102)) : x y xdelta 4 : x y xlow xhigh with xerrorbars (4,5 ) variable color Xyerrorbars xyerrorbars 2 xyerrorbars (error bar) points (x,y) (x,y-ydelta) (x,y+ydelta) (x-xdelta,y) (x+xdelta,y) (x,ylow) (x,yhigh) (xlow,y) (xhigh,y) (set bars set bars (p. 102)) : x y xdelta ydelta 6 : x y xlow xhigh ylow yhigh with xyerrorbars plot using (x,y,xdelta,ylow,yhigh) plot data using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars (5,7 ) variable color Yerrorbars
60 60 gnuplot 4.6 yerrorbars ( errorbars) 2 yerrorbars (error bar) points (x,y) (x,y-ydelta) (x,y+ydelta) (x,ylow) (x,yhigh) (set bars set bars (p. 102)) : x y ydelta 4 : x y ylow yhigh with yerrorbars (4,5 ) variable color errorbar Xerrorlines xerrorlines 2 xerrorlines linespoints (x,y) (xlow,y) (xhigh,y) (x-xdelta,y) (x+xdelta,y) (set bars set bars (p. 102)) : x y xdelta 4 : x y xlow xhigh with xerrorlines (4,5 ) variable color Xyerrorlines xyerrorlines 2 xyerrorlines linespoints (x,y) (x,y-ydelta) (x,y+ydelta) (x-xdelta,y) (x+xdelta,y) (x,ylow) (x,yhigh) (xlow,y) (xhigh,y) (set bars set bars (p. 102)) : x y xdelta ydelta 6 : x y xlow xhigh ylow yhigh with xyerrorlines plot using (x,y,xdelta,ylow,yhigh) plot data using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines (5,7 ) variable color
61 gnuplot Yerrorlines yerrorlines ( errorlines) 2 yerrorlines linespoints (x,y) (x,yydelta) (x,y+ydelta) (x,ylow) (x,yhigh) ( set bars (p. 102)) : x y ydelta 4 : x y ylow yhigh with yerrorlines (4,5 ) variable color 3 ( ) (3D (surface) plots) plot splot with lines with pm3d 3 X, Y, Z 3 hidden3d (p. 118), pm3d depthorder (p. 138) splot Z XY set contour (p. 108) 2 (set view map) Z axis Z axis 3D surface plot with hidden line removal X axis 3D surface with projected contours Y axis splot Z Z 2 (map) set view map (p. 159) X axis projected contours using 'set view map' Y axis Part III (Commands) Y axis X axis gnuplot
62 62 gnuplot 4.6 "plot f(x) with lines" "p f(x) w li" ({}) ( ) Cd cd cd < > : cd subdir cd.. (\) (") Windows cd "c:\newdata" cd c:\newdata cd "c:\\newdata" Call call 1 load 10 ( ) call $ ( ) (0 9) call call $# $ $ $$ call 10 call load call call "< >" < 0> < 1>... < 9> (gnuplot ) : calltest.gp print "argc=$# p0=$0 p1=$1 p2=$2 p3=$3 p4=$4 p5=$5 p6=$6 p7=x$7x" call calltest.gp "abcd" " quoted " -- "$2"
63 gnuplot argc=7 p0=abcd p1=1.2 p2=+ p3= quoted p4=- p5=- p6=$2 p7=xx using call n $$n column(n) Clear clear set output set terminal clear set size set multiplot : set multiplot plot sin(x) set origin 0.5,0.5 set size 0.4,0.4 clear plot cos(x) unset multiplot set multiplot (p. 130),set size (p. 147), set origin (p. 135) Do do for <iteration-spec> { <commands> <commands> } {} "{" do ( ) if/else <iteration-spec> iteration (p. 72) set multiplot layout 2,2 do for [name in "A B C D"] { filename = name. ".dat" set title sprintf("condition %s",name) plot filename title name } unset multiplot Evaluate evaluate eval <string expression> :
64 64 gnuplot 4.6 set_label(x, y, text) \ = sprintf("set label %s at %f, %f point pt 5", text, x, y) eval set_label(1., 1., one/one ) eval set_label(2., 1., two/one ) eval set_label(1., 2., one/two ) substitution macros (p. 41) Exit exit quit END-OF-FILE ( Ctrl-D) ( ) ( load ) exit gnuplot gnuplot bind "ctrl-x" "unset output; exit gnuplot" batch/interactive (p. 21) Fit fit (x,y) (x,y,z) Marquardt-Levenberg (NLLS) fit {<ranges>} <expression> <datafile> {datafile-modifiers} via <parameter file> <var1>{,<var2>,...} (xrange,yrange) plot [{dummy_variable=}{<min>}{:<max>}], plot ranges (p. 90) <expression> f(x) f(x,y) gnuplot <datafile> plot plot datafile (using, every,...) smooth thru fit plot datafile (p. 79) 1 z=f(x) z x:z 1 ( ) ( ) using z 3 using ( ) z (=1/s**2) (1) using 3 z 1 2 z=f(x,y) using 4 x:y:z:s
65 gnuplot s ( plot datafile using (p. 86)) using 1:2:3:(1) using z x:z x:z:s x:y:z:s x:y:t:z:s x:y:t:u:z:s x:y:t:u:v:z:s using z ( ) 1 y 2 fit multi-branch (p. 69) via : f(x) = a*x**2 + b*x + c g(x,y) = a*x**2 + b*y**2 + c*x*y FIT_LIMIT = 1e-6 fit f(x) measured.dat via start.par fit f(x) measured.dat using 3:($7-5) via start.par fit f(x)./data/trash.dat using 1:2:3 via a, b, c fit g(x,y) surface.dat using 1:2:3:(1) via a, b, c fit a0 + a1*x/(1 + a2*x/(1 + a3*x)) measured.dat via a0,a1,a2,a3 fit a*x + b*y surface.dat using 1:2:3:(1) via a,b fit [*:*][yaks=*:*] a*x+b*yaks surface.dat u 1:2:3:(1) via a,b fit a*x + b*y + c*t foo.dat using 1:2:3:4:(1) via a,b,c h(x,y,t,u,v) = a*x + b*y + c*t + d*u + e*v fit h(x,y,t,u,v) foo.dat using 1:2:3:4:5:6:(1) via a,b,c,d,e "fit.log" set fit logfile gnuplot set fit errorvariables (" err" ) set fit prescale Marquardt-Levenberg Ctrl-C (wgnuplot Ctrl-Break) (1) (2) (3) FIT SCRIPT gnuplot FIT SCRIPT replot fit update update (p. 177)
66 66 gnuplot 4.6 (adjustable parameters) via 2 2 via = # = # FIXED fit # FIXED Fit (fit beginners guide) fit (SSR:Sum of the Squared Residuals) ( ) SSR ( 1.0) (WSSR) fit error estimates (p. 67) ( ) 1 z=f(x), 2 z=f(x,y) z fit / z fit z x ( x y) ( 2 ( ) 0 ) (LLS) (NLLS) z=a*sin(c*x) + b*cos(c*x). a b c c LLS gnuplot NLLS fit WSSR Marquardt- Levenberg (1) " " (WSSR FIT LIMIT ) (2) FIT MAXITER ( fit control variables (p. 68)) ( fit (p. 64)) FIT CONVERGED fit 1 0 ( ) fit fit error estimates (p. 67)
67 gnuplot ( ) fit plot smooth (error estimates) fit " " 2 WSSR fit statistical overview fit practical guidelines (statistical overview) (Non-Linear Least-Squares; NLLS) ( ) ( ) 1.0 = fit stdfit RMS ( ) ( ) FIT_NDF = FIT_WSSR = FIT_STDFIT = sqrt(wssr/ndf) fit - ( ) " " " "
68 68 gnuplot 4.6 (practical guidelines) fit 1 WSSR ( * WSSR ) sum of squares of residuals ( ) chisquare ( ) WSSR fit (= - ) WSSR (WSSR/ndf; ndf = ) (stdfit = sqrt(wssr/ndf)) WSSR stdfit RMS ( ) 1 ( ) 1 (outliers) plot datafile using 1:($2-f($1)) 1.0 WSSR fit fit (y-f(x))**2 x " " y " " ( ) (control) fit gnuplot gnuplot control variable gnuplot environment variables (control variables) (1e-5) FIT_LIMIT 2 FIT_MAXITER
69 gnuplot ( ) Marquardt-Levenberg lambda ( ) ML FIT_START_LAMBDA FIT START LAMBDA 0 FIT_LAMBDA_FACTOR lambda FIT LAMBDA FACTOR fit FIT FIT SKIP FIT INDEX gnuplot gnufit fit FIT SKIP every FIT INDEX (multi-branch fitting) using fit multi-branch (p. 69) (control environment) gnuplot FIT_LOG ( ) "fit.log" set fit logfile FIT_SCRIPT replot plot load (multi-branch) (multi-branch fitting) 1 WSSR ( ) (-1; ) (-2) 2 : 2 z=f(x) x:z:s f(x,y) = (y==0)? a*exp(-x/tau) : b*exp(-x/tau) fit f(x,y) datafile using 1:-2:2:3 via a, b, tau "fit.dem" "hexa.fnc" 1 (starting values) ( (SSR) )
70 70 gnuplot 4.6 fit SSR ( ) " (undefined value)" gnuplot replot " " ( ) fit (tips) fit fit via 2 2 via "file" ( ) ( ) update via var1, var2, a*exp(x+b) a*exp(x+b)=a*exp(b)*exp(x) a*exp(x) exp(x+b) parameter 1e9*parameter 1e9 set fit prescale fit 1 "singular matrix" Marquardt-Levenberg (fudgit) "Nonlinear fitting is an art! (!)"
71 gnuplot Help help help {< >} < > gnuplot 1 gnuplot (?) History history (history) history # history 5 # 5 history quiet 5 # 5 history "hist.gp" # hist.gp history "hist.gp" append # hist.gp history 10 "hist.gp" # 10 hist.gp history 10 " head -5 >>diary.gp" # 5 history?load # "load" history?"set c" # ( ) hi!reread # "reread" hist!"set xr" # ( ) hi!hi # :-)) popen (Unix ) If if (<condition>) { <command>; <command> <commands> <commands> } else { <commands> } if (< >) < > [; else if (< >)...; else...] gnuplot if/else if, else "{" "}" ( ) if 1 if/else if-old (p. 72)
72 72 gnuplot 4.6 If-old gnuplot 4.4 if/else 1 { } if "{" < > ( ) < > ( ) ( ) else ; (if ) : pi=3 if (pi!=acos(-1)) print "?Fixing pi!"; pi=acos(-1); print pi?fixing pi! if (1==2) print "Never see this"; print "Or this either" v=0 v=v+1; if (v%2) print "2" ; else if (v%3) print "3" ; else print "fred" (!) if reread reread (p. 97) (iteration) plot, splot, set, unset do 2 for [intvar = start:end{:increment}] for [stringvar in "A B C D"] : plot for [filename in "A.dat B.dat C.dat"] filename using 1:2 with lines plot for [basename in "A B C"] basename.".dat" using 1:2 with lines set for [i = 1:10] style line i lc rgb "blue" unset for [tag = 100:200] label tag set for [i=1:9] for [j=1:9] label i*10+j sprintf("%d",i*10+j) at i,j plot iteration (p. 91), do (p. 63) Load load save load load load load call comments (p. 23) load call (p. 62)
73 gnuplot load "< >" load "-" gnuplot batch/interactive (p. 21) Unix popen < : load work.gnu load "func.dat" load "< loadfile_generator.sh" gnuplot load gnuplot Lower lower {plot_window_nb} lower (raise ) pm, win, wxt, x11 gnuplot ( ) z x11 wxt pm win Pause pause pause load pause <time> {"<string>"} pause mouse {<endcondition>}{, <endcondition>} {"<string>"} <time> -1 0 pause 0 print mousing ( ) pause mouse ctrl-c pause mouse pause -1 (endcondition) pause mouse pause keypress, button1, button2, button3, close, any pause ASCII MOUSE KEY 1 MOUSE CHAR keypress ( ) buttons3 MOUSE X, MOUSE Y, MOUSE X2, MOUSE Y2 mouse variables (p. 38)
74 74 gnuplot 4.6 pause OS ( ) : pause -1 # pause 3 # 3 pause -1 " return " pause 10 "? 3 spline " pause mouse " " pause mouse keypress " A-F " pause mouse button1,keypress pause mouse any " " "pause mouse key" reread print " Tab " load "wait_for_tab" "wait for tab" pause mouse key if (MOUSE_KEY!= 9) reread Plot plot gnuplot plot 2 splot 3 2 plot splot splot (p. 171) binary <binary list> plot, splot plot {<ranges>} {<iteration>} {<function> {"<datafile>" {datafile-modifiers}}} {axes <axes>} {<title-spec>} {with <style>} {, {definitions{,}} <function>...} <function> (<datafile>) 1 (parametric) 2 plot 1 data (p. 79), functions (p. 90) : plot sin(x) plot sin(x), cos(x) plot f(x) = sin(x*a), a =.2, f(x), a =.4, f(x) plot "datafile.1" with lines, "datafile.2" with points plot [t=1:10] [-pi:pi*2] tan(t), \ "data.1" using (tan($2)):($3/$4) smooth csplines \ axes x1y2 notitle with lines 5 plot for [datafile in "spinach.dat broccoli.dat"] datafile show plot (p. 136)
75 gnuplot (axes) (axes) 4 ; <axes> x1y1 ; x2y2 ; x1y2 ; x2y1 plot ( ) Binary gnuplot binary filetype 2 binary matrix binary general binary matrix 32 IEEE (float) 2 ASCII matrix using (1 ) using 1 (x ) (1 ) using 2 (y ) using 3 (z ) binary general array, record, format, using (endian) matrix ASCII general 1,2,3 using 1 1 format binary (s)plot <filename> binary... set datafile binary... array, record, format, filetype binary general binary matrix general - gnuplot array binary matrix (p. 172), binary general (p. 75) index 1 1 every using using 3 splot General general general gnuplot plot <file_name> {binary <binary list>}... splot <file_name> {binary <binary list>}... general array, record, format,
76 76 gnuplot 4.6 filetype <binary list> matrix ( binary matrix (p. 172) ) ( gnuplot show datafile binary ) <binary list> filetype filetype show datafile binary filetypes filetype splot binary gnuplot plot <binary list> raw general 2 <binary list> gnuplot gnuplot ASCII using <using list> format gnuplot <using list> using 1:3 3 2 <using list> with image using 1 with rgbimage using 1:2:3 using / /index <binary list> Array gnuplot array=(10,20) 2 (x) 10 2 (y) 20 1 array=25: gnuplot version 4.2 array=(128,128) array=128x128 gnuplot Record array record gnuplot Skip 1024 plot <file_name> binary skip=
77 gnuplot plot <file_name> binary record=356:356:356 skip=512:256: Format (float) format format="%uchar%int%float" using (unsigned char) 2 (int) 3 (float) using * format="%*2int%3float" 3 2 show datafile binary datasizes Endian gnuplot gnuplot endian=little little: big: default: swap (swab): compiler ( ) gnuplot "middle" ( "pdp") Filetype gnuplot "format=edf" ESRF show datafile binary filetypes auto gnuplot ( set datafile binary (p. 111)) Avs avs AVS 2 long (xwidth ywidth) alpha/red/green/blue 4 Edf edf EDF ESRF (ESRF Data Format) edf ehf ( ESRF Header Format)
78 78 gnuplot 4.6 Png gnuplot png/gif/jpeg libgd plot file.png binary filetype=png set datafile binary filetype=auto Keywords (keyword) binary array, matrix, image x,y,z Scan gnuplot gnuplot " " / / / / gnuplot (x/y/z) scan=yx ( ) y ( ) x plot x y 2 splot x, y, z 3 / / x, y, z t ( ), r, z Transpose scan=yx scan=yxz Dx, dy, dz gnuplot dx=10 dy=20 x 10 y 20 dy dx dz dy dx=3.5 gnuplot x y 3.5 matrix Flipx, flipy, flipz gnuplot x, y, z Origin gnuplot (transpose) (flip) 1 origin gnuplot plot 2 splot 3 origin=(100,100):(100,200) origin=(0,0,3.5) 3 Center origin center=(0,0) Inf center
79 gnuplot Rotate (transpose) (flip) 2 rotate, plot, splot 2 pi degrees rotate=1.5708, rotate=0.5pi, rotate=90deg origin (center) Perpendicular splot 3 2 xy (perpendicular) (0,0,1) rotate perpendicular R 2 x 2 P (0,0,1) (xp,yp,zp) 3 x 3 R 3,3 1 0 ( z ) v = P R v v 3 x ( z 0 xy 2 ) (data) plot (<datafile>) plot <file_name> {binary <binary list>} {{nonuniform} matrix} {index <index list> index "<name>"} {every <every list>} {thru <thru expression>} {skip <number-of-lines>} {using <using list>} {smooth <option>} {volatile} {noautoscale} binary, index, every, skip, using, smooth binary ( ASCII ) index every using (thru using ) smooth (splot smooth thru ) noautoscale ( ) ASCII (using ) # (VMS!) (x,y) plot ( set style errorbars (p. 59),set style errorlines (p. 61)) (x,y,ydelta), (x,y,ylow,yhigh), (x,y,xdelta), (x,y,xlow,xhigh), (x,y,xlow,xhigh,ylow,yhigh) using ( )
80 80 gnuplot "second column" 3.0 e, E set datafile fortran fortran d, D, q, Q (y ) x gnuplot 0 ( ) 1 plot ; (line style ) 2 index (p. 82) autoscale ( set autoscale (p. 101)) 2 i) splot ii) 2 x x2 x x (x1) x2 reset; plot -, - axes x2y e e set autoscale fixmin/fixmax ( labels (p. 56)) Every every 1 ( glossary (p. 34)) plot file every {< >} {:{< >} {:{< >} {:{< >} {:{< >} {:< >}}}}} < > < > < > < > < > < > 0 ; 1 every : every :
81 gnuplot every :::3::3 every :::::9 every 2:2 every ::5::15 # 4 (0 ) # 10 # 1 1 # # 5 15 #,, plot (simple.dem) splot splot (example) "population.dat" pop(x) = 103*exp((1965-x)/10) set xrange [1960:1990] plot population.dat, pop(x) "population.dat" # Gnu population in Antarctica since binary # 2 float (2 ) # float 1 plot <file_name> binary format="%float%*float" using 1:2 with lines # # EDF plot <file_name> binary filetype=edf with image plot <file_name>.edf binary filetype=auto with image # 3 (unsigned char) RGB # y # ( ) # 2 origin # plot <file_name> binary array=(512,1024):(1024,512) format= %uchar \ dx=2:1 dy=1:2 origin=(0,0):(1024,1024) flipy u 1:2:3 w rgbimage # 4 # gnuplot # splot <file_name> binary record=30:30:29:26 endian=swap u 1:2:3 # 1 3 splot <file_name> binary record=30:26 skip=360:348 endian=swap u 1:2:3 binary matrix (p. 172)
82 82 gnuplot 4.6 Index index plot file index { <m>{:<n>{:<p>}} "<name>" } 2 index <m> <m> ; index <m>:<n> <m> <n> ; index <m>:<n>:<p> <m>, <m>+<p>, <m>+2<p>, <p> <n> C (index) index 0 index <p> <n> <p> index : plot file index 4:5 index column(-2) 1 index pseudocolumns (p. 88), lc variable (p. 36) : plot file using 1:(column(-2)==4? $2 : NaN) # plot file using 1:2:(column(-2)) linecolor variable #! index <name> <name> <name> <name> : plot file index Population <name> == Popolation == [Population] Skip skip ( ) every every ::N skip N binary skip (p. 76) Smooth gnuplot smooth fit smooth {unique frequency cumulative cnormal kdensity unwrap csplines acsplines mcsplines bezier sbezier} unique, frequency, cumulative, cnormal plot unwrap y
83 gnuplot x ( set samples (p. 147)) ( line style ) autoscale autoscale smooth acsplines csplines x set xrange unique frequency 1 acsplines 4 3 smooth Acsplines acsplines x ( smooth unique (p. 83)) using 3 plot data-file using 1:2:(1.0) smooth acsplines ( ) : sw(x,s)=1/(x*x*s) plot data_file using 1:2:(sw($3,100)) smooth acsplines Bezier bezier n ( ) Csplines csplines ( smooth unique (p. 83)) 3 Mcsplines mcsplines 3 FN Fritsch & RE Carlson (1980) "Monotone Piecewise Cubic Interpolation", SIAM Journal on Numerical Analysis 17: Sbezier sbezier ( unique (p. 83)) bezier Unique unique x x y Unwrap unwrap 2 y 2
84 84 gnuplot 4.6 Frequency frequency x x y y smooth.dem Cumulative cumulative x x x ( ) y y smooth.dem Cnormal cnormal x y [0:1] x x ( ) y y ( ) smooth.dem Kdensity kdensity ( ) 1 2 ( 1/( ) ) gnuplot ( ) (special-filenames), -, +, ++ plot gnuplot 2 plot filename using 1:2, using 1: using y ( z) + using 1 set samples plot + using ($1):(sin($1)):(sin($1)**2) with filledcurves ++ x set samples y set isosamples [x,y] 2 x y u v ++ xrange yrange ( urange vrange) splot ++ using 1:2:(sin($1)*sin($2)) with pm3d plot ++ using 1:2:(sin($1)*sin($2)) with image - plot plot unix << ( ) VMS DCL $DECK "e" using
85 gnuplot gnuplot index every plot plot - index 0, - index e e plot -, e e replot - 1 : replot (p. 96), refresh (p. 96) ( ) plot / / / using 1:2, using 1:3, using 1:4 ( plot - 2 ) popen < pop(x) = 103*exp(-x/10) plot "< awk {print $1-1965, $2} population.dat", pop(x) x 1965 ( ): plot "< awk $0!~ /^#/ {print $1-1965, $2} population.dat"
86 86 gnuplot 4.6 using thru fdopen() n <&n 1 POSIX shell $ gnuplot -p -e "plot <&3, <&4 " 3<data-3 4<data-4 $./gnuplot 5< <(myprogram -with -options) gnuplot> plot <&5 Thru thru plot file thru f(x) plot file using 1:(f($2)) plot file thru f(y) ( y ) thru splot fit Using using plot file using <entry> {:<entry> {:<entry>...}} { format } format C scanf ( ) ( ) datafile separator (p. 110) <entry> xticlabels(2) N column(n) column(1) column(2) column(1), column(2),... $1, $2,... valid(n) N plot column() Height Weight Age val1 val1 val plot plot datafile using 3:1, using 3:2 plot datafile using (column("age")):(column(1)), \ using (column("age")):(column(2)) plot datafile using "Age":"Height", using "Age":"Weight"
87 gnuplot plot set key autotitle columnhead 1...N gnuplot " " $0 column(0) :pseudocolumns (p. 88) <entry> using ::4 using 1:2:4 using <entry> y ( $0) x "plot file using 1" "plot file using 0:1" using 2 x, y set style (p. 148), fit (p. 64) scanf gnuplot gnuplot %lf 7 scanf ("\t") ("\n") ("\f") "\t", "\n", "\f" Using (using examples) plot set datafile separator "," plot file using 1:($2+$3) %lf,%lf,%lf "MyData" plot MyData using "%*lf%lf%*20[^\n]%lf" %*lf %lf %*20[^\n] %lf ( x ) 20 ( y ) 3?: plot file using 1:($3>10? $2 : 1/0) plot 1/0 gnuplot NaN using 0+( ) y 3 plot file plot file using 1:2 plot file using ($1):($2) 1) file x 2 3 ( plot (plot with lines) ) 2) 1 plot 2 3
88 88 gnuplot 4.6 plot file using 1:2 plot (#) (pseudocolumns) plot using " " (pseudocolumns) column(0) column(-1) column(-2) 0 2 $0 0 1 index index Xticlabels (ticlabel) xticlabels(n) xticlabels(stringcolumn(n)) 3 x plot datafile using <xcol>:<ycol>:xticlabels(3) with <plotstyle> x,x2,y,y2,z ticlabels(<labelcol>) using X,Y[,Z] xticlabels() x x xticlabels() xtic() : splot "data" using 2:4:6:xtic(1):ytic(3):ztic(6) x y x,y z z : plot "data" using 1:2:xtic( $3 > 10.? "A" : "B" ) x x 3 "A" "B" X2ticlabels plot using xticlabels (p. 88) Yticlabels plot using xticlabels (p. 88) Y2ticlabels plot using xticlabels (p. 88) Zticlabels plot using xticlabels (p. 88) Volatile plot volatile replot refresh gnuplot refresh (p. 96)
89 gnuplot Errorbars 1 4 ( using ) 2 gnuplot (x, y, ydelta), (x, y, ylow, yhigh), (x, y, xdelta), (x, y, xlow, xhigh), (x, y, xdelta, ydelta), (x, y, xlow, xhigh, ylow, yhigh) x using plot file with errorbars plot file using 1:2:(sqrt($1)) with xerrorbars plot file using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars x y using x x y (x, ylow) (x, yhigh) ylow yhigh ydelta ylow = y - ydelta, yhigh = y + ydelta 2 ylow yhight y x with errorbars with lines 2 plot ( 2 notitle ) errorlines ( errorlines (p. 89)) set bars ( set bars (p. 102)) plot using (p. 86), plot with (p. 93), set style (p. 148) Errorlines (errorbar) ( using ) errorline gnuplot (x, y, ydelta), (x, y, ylow, yhigh), (x, y, xdelta), (x, y, xlow, xhigh), (x, y, xdelta, ydelta), (x, y, xlow, xhigh, ylow, yhigh) x using plot file with errorlines plot file using 1:2:(sqrt($1)) with xerrorlines plot file using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines
90 90 gnuplot 4.6 x y using x y (x, ylow) (x, yhigh) ylow, yhigh ydelta ylow = y - ydelta, yhigh = y + ydelta 2 yhigh, ylow y x set bars ( set bars (p. 102)) (autoscaling) ON plot using (p. 86), plot with (p. 93), set style (p. 148) (functions) plot, splot set samples (p. 147), set isosamples (p. 120) : approx(ang) = ang - ang**3 / (3*2) plot sin(x) title "sin(x)", approx(x) title "approximation" set style function (p. 151) expressions functions (p. 26) user-defined (p. 31) (parametric) (set parametric) plot 2 splot 3 : plot sin(t),t**2 splot cos(u)*cos(v),cos(u)*sin(v),sin(u) x ( sin(t)) y ( t**2) with title plot sin(t),t**2 title Parametric example with linespoints (ranges) plot (range) set range [{<dummy-var>=}{{<min>}:{<max>}}] [{{<min>}:{<max>}}] (xrange trange) 2 yrange ( xrange) <dummy-var>
91 gnuplot ( set dummy ) <min>, <max> * xrange, yrange plot trange, xrange, yrange plot trange [-pi:pi], xrange [-1.3:1.3], yrange [-1:1] plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2 x2 y2 set x2range set y2range [] * min ( ) max ( ) (autoscale) set autoscale (p. 101) plot splot set xrange set yrange ( ) gnuplot (timefmt) set timefmt (p. 157) : plot cos(x) x plot [-10:30] sin(pi*x)/(pi*x) t plot [t = -10 :30] sin(pi*t)/(pi*t) x y plot [-pi:pi] [-3:3] tan(x), 1/x y plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x) x y plot [:200] [-pi:] exp(sin(x)) x set timefmt "%d/%m/%y %H:%M" plot ["1/6/93 12:00":"5/6/93 12:00"] timedata.dat (iteration) plot (iteration) plot for [<variable> = <start> : <end> {:<increment>}] plot for [<variable> in "string of words"] (scope) (,) (nest) sin(3x)
92 92 gnuplot 4.6 plot for [i=1:3] j=i, sin(j*x) j 3 plot for [i=1:3] j=i sin(j*x) : plot for [dataset in "apples bananas"] dataset."dat" title dataset : file(n) = sprintf("dataset_%d.dat",n) splot for [i=1:10] file(i) title sprintf("dataset %d",i) 10 ( i ) 2 : set key left plot for [n=1:4] x**n sprintf("%d",n) : list = "apple banana cabbage daikon eggplant" item(n) = word(list,n) plot for [i=1:words(list)] item(i).".dat" title item(i) list = "new stuff" replot replot : list = "apple banana cabbage daikon eggplant" plot for [i in list] i.".dat" title i list = "new stuff" replot Title plot title title <text> notitle [<ignored text>] title columnheader title columnheader(n) <text> ( ) datastrings (p. 24) set key autotitle columnhead notitle (title ) notitle (tilte ) notilte
93 gnuplot key autotitles ( ) title notitle plot set key set key (p. 121) : y=x x plot x x 2 "x^2" "data.1" "measured data" plot x**2 title "x^2", data.1 t "measured data" set polar; plot my_function(t), 1 notitle plot for [i=1:4] data using i title columnhead With with with <style> { {linestyle ls <line_style>} {{linetype lt <line_type>} {linewidth lw <line_width>} {linecolor lc <colorspec>} {pointtype pt <point_type>} {pointsize ps <point_size>} {fill fs <fillstyle>} {nohidden3d} {nocontours} {nosurface} {palette}} } <style> lines dots steps errorbars xerrorbar xyerrorlines points impulses fsteps errorlines xerrorlines yerrorbars linespoints labels histeps financebars xyerrorbars yerrorlines vectors boxes candlesticks image circles boxerrorbars filledcurves rgbimage ellipses boxxyerrorbars histograms rgbalpha pm3d boxplot 2 fillstyle (p. 150) plotting styles (p. 44) set style function set style data 6 test
94 94 gnuplot 4.6 <line type> <point type> ( ) test <line width> <point size> set pointsize (p. 145) <point size> set pointsize set pointsize 2; plot x w p ps plot pointsize variable 1 2D 3 3D 4 pointsize set style line / / <line style> gnuplot pm3d splots lines, points, dots palette set palette z using (plot splot ) using colors (p. 34), set palette (p. 140), linetype (p. 126) nohidden3d splot set hidden3d nohidden3d hidden3d nohidden3d ( ) nocontours set contour plot nosurface set surface plot 3 linewidth, pointsize, palette : sin(x) plot sin(x) with impulses x x**2 plot x w points, x**2 tan(x) "data.1" plot [ ] [-2:5] tan(x), data.1 with l "leastsq.dat" plot leastsq.dat w i "population" plot population with boxes "exper.dat" ( 3 4 ): plot exper.dat w lines, exper.dat notitle w errorbars
95 gnuplot "exper.dat" (errorlines) ( 3 4 ): plot exper.dat w errorlines sin(x) cos(x) plot sin(x) with linesp lt 1 pt 3, cos(x) with linesp lt 1 pt 4 "data" 3 2 plot data with points pointtype 3 pointsize 2 "data" 4 pointsize plot data using 1:2:4 with points pt 5 pointsize variable 2 plot d1 t "good" w l lt 2 lw 3, d2 t "bad" w l lt 2 lw 1 x*x plot x*x with filledcurve closed, 40 with filledcurve y1=10 x*x plot x*x, (x>=-5 && x<=5? 40 : 1/0) with filledcurve y1=10 lt 8 splot x*x-y*y with line palette 2 splot x*x-y*y with pm3d, x*x+y*y with pm3d at t Print print < > pause 0 < > gnuplot print < > {, < >,...} expressions (p. 26) set print Pwd pwd GPVAL PWD show variables all (p. 158) Quit exit quit END-OF-FILE gnuplot (clear )
96 96 gnuplot 4.6 Raise raise {plot_window_nb} raise (lower ) pm, win, wxt, x11 gnuplot ( ) z ( ) x11 wxt pm win X11 X11 ( telnet ssh ) Refresh refresh replot 2 refresh refresh ( - ) refresh replot refresh plot datafile volatile with lines, - with labels "Special point" e # set title "Zoomed in view" set term post set output zoom.ps refresh Replot replot plot splot set replot plot splot (, ) replot (range) plot splot splot plot replot plot - ;... ; replot refresh replot multiplot
97 gnuplot plot (splot) command-line-editing (p. 22) history : show plot (p. 136) Reread reread load gnuplot reread ( reread if ) reread : "looper" a=a+1 plot sin(x*a) pause -1 if(a<5) reread gnuplot a=0 load looper pause 5 "data" 0 10 (yrange) 6 x 5 x "plotter" c_p = c_p+1 plot "$0" using 1:c_p with lines linetype c_p if(c_p < n_p) reread gnuplot n_p=6 c_p=1 unset key set yrange [0:10] set multiplot call plotter data unset multiplot 5 1 yrange multiplot 5 demo animate.dem Reset reset set set reset set term set output set loadpath set fontpath set linetype set encoding set decimalsign set locale set psdir
98 98 gnuplot 4.6 reset errors GPVAL ERRNO GPVAL ERRMSG reset bind Save save set term set plot ( splot) save {< >} < > < > functions, variables, terminal, set gnuplot set plot ( splot) save load set save terminal output gnuplot save terminal terminal terminal terminal terminal gnuplot terminal / set term push set term pop :set term (p. 155) "-" save popen (Unix ) save gnuplot gnuplot batch/interactive (p. 21) : save work.gnu save functions func.dat save var var.dat save set options.dat save term myterm.gnu save - save grep title >t.gp Set-show set plot, splot, replot show show all set unset reset (p. 97) show set timefmt set unset iteration (p. 72)
99 gnuplot Angles gnuplot set polar set angles degrees [0:360] set mapping 3 set angles {degrees radians} show angles set grid polar set angles set angles sin(x), cos(x), tan(x) asin(x), acos(x), atan8x), atan2(x), arg(x) set angles radians x={1.0,0.1} set angles radians y=sinh(x) print y #{ , } print asinh(y) #{1.0, 0.1} set angles degrees y=sinh(x) print y #{ , } print asinh(y) #{ , } poldat.dem: set angles Arrow set arrow set arrow {<tag>} {from <position>} {to rto <position>} { {arrowstyle as <arrow_style>} { {nohead head backhead heads} {size <length>,<angle>{,<backangle>}} {filled empty nofilled} {front back} { {linestyle ls <line_style>} {linetype lt <line_type>} {linewidth lw <line_width} } } } unset arrow {<tag>} show arrow {<tag>} <tag> set arrow <position> x,y x,y,z first, second, graph, screen, character 0 5 first second graph, screen, character 1 coordinates (p. 23) "from" "to"
100 100 gnuplot 4.6 "to" "rto" ( ) graph, screen 0 nohead 1 1 backhead heads size <length>,<angle> size <length>,<angle>,<backangle> <length> <angle> ( ) <length> x <length> first, second, graph, screen, character coordinates (p. 23) <backangle> filled empty <backangle> (<angle> ; ) fig filled (heads ) pm3d (p. 137) ( ) empty metafont, metapost, latex, tgif ( set style line (p. 152)) <line type> ( ) <linewidth> ( ) ( ) set arrow lt, lw front back ( ) front : (1,2) 5 set arrow to 1,2 ls 5 (-5,5,3) 3 set arrow 3 from graph 0,0 to -5,5,3 1,1,1 2 set arrow 3 to 1,1,1 nohead lw 2 x=3 set arrow from 3, graph 0 to 3, graph 1 nohead T set arrow 3 from 0,-5 to 0,5 heads size screen 0.1,90 set arrow from 0,-5 rto graph 0.1,0.1 x set logscale x set arrow from 100,-5 rto 10,10 100, ,5 (y) 10 " 10" (x) 10 " 10" 2
101 gnuplot unset arrow 2 unset arrow ( ) show arrow Autoscale (autoscale) x, y, z (plot) autoscale plot noautoscale datafile (p. 79) set autoscale {<axes>{ min max fixmin fixmax fix} fix keepfix} unset autoscale {<axes>} show autoscale <axes> ( ) x, y, z, cb, x2, y2, xy min max (xy ) gnuplot fixmin fixmax fix gnuplot set autoscale fix set autoscale keepfix fix (plot y splot z ) (y z) y z (plot x splot x,y ) 1 x (z = f(x,y) y ) set xrange (p. 162) (parametric) ( set parametric (p. 136)) x, y, z ( ) plot t splot u, v (t, u, v, x, y, z) x, y, z (polar mode) plot set dummy t ( set dummy (p. 113)) x2range y2range xrange yrange xrange yrange fixmin, fixmax : y ( ): set autoscale y y (y ): set autoscale ymin
102 102 gnuplot 4.6 x2 set autoscale x2fixmin set autoscale x2fixmax x, y set autoscale xy x, y, z, x2, y2 set autoscale x, y, z, x2, y2 unset autoscale z unset autoscale z (parametric) (set parametric) xrange yrange x y x x x set autoscale t gnuplot t set autoscale t splot x, y, z (polar) (set polar) xrange yrange set rrange xrange yrange xrange yrange set rrange (p. 147) trange trange ( ) 1 2 Bars set bars (errorbar) boxplot set bars {small large fullwidth <size>} {front back} unset bars show bars
103 gnuplot small 0.0, large fullwidth errorbar boxplots histograms errorbar front, back errorbar (boxes, candlesticks, histograms) Bind (binding) bind (p. 37) Bmargin set bmargin set margin (p. 128) Border set border unset border plot splot plot splot set border {<integer>} {front back} {linewidth lw <line_width>} {{linestyle ls <line_style>} {linetype lt <line_type>}} unset border show border set view 56,103 splot x-y 4 (front), (back), (left), (right) 4 x-y " (bottom right back)" " (front vertical)" ( ) 12 4 plot splot 4 splot 4 splot < > plot splot plot 4 splot z 2 (front) set border back
104 104 gnuplot 4.6 <line style>, <line type>, <line width> ( ) plot 2 : xtics (p. 164) "unset surface; set contour base" splot set grid back, front, layerdefault : set border plot splot set border 3 splot set border 4095 set border # set border plot unset xtics; unset ytics; set x2tics; set y2tics; set border 12 Boxwidth set boxwidth boxes, boxerrorbars, boxplot, candlesticks, histograms set boxwidth {<width>} {absolute relative} show boxwidth set boxwidth relative relative (boxwidth) x (absolute) x ( set log (p. 127)) boxwidth x=1 " " ( x ) x x=1 boxes boxerrorbars style boxes (p. 45),style boxerrorbars (p. 44) set boxwidth 4 set boxwidth -2 plot using plot file using 1:2:3:4:(-2) set boxwidth 0.5 relative 2 set boxwidth 2 absolute
105 gnuplot Clabel gnuplot clabel ( ) z set clabel { <format> } unset clabel show clabel %8.3g 3 key clabel ( +1) set contour (p. 108) Clip gnuplot set clip <clip-type> unset clip <clip-type> show clip gnuplot (clip-type) points, one, two 3 pm3d set pm3d clip1in set pm3d clip4in points ( ) gnuplot points x y (xrange, yrange) one gnuplot two noclip points, clip one, noclip two show clip set clip unset clip set clip set clip points unset clip 3 Cntrparam set cntrparam show contour contour cntrparam
106 106 gnuplot 4.6 set cntrparam { { linear cubicspline bspline points <n> order <n> levels { auto {<n>} <n> discrete <z1> {,<z2>{,<z3>...}} incremental <start>, <incr> {,<end>} } } } show contour 2 ( (isosample) ) z z <n> <z1>, <z2>... linear, cubicspline, bspline ( ) linear cubicspline (3 ) bspline (B-spline) z points bspline cubicspline cubicspline bspline ( ) points order bspline ( bspline ) bspline 2 ( ) 10 levels auto ( ), discrete, incremental <n> auto <n> z zmin zman dz dz 10 1, 2, 5 (2 ) levels discrete z = <z1>, <z2>... discrete set cntrparams levels <n> incremental z = <start> <increment> <end> set cntrparam levels <n> z set ztics <increment> set cntrparam linear, 5 points, order 4, 5 auto levels : set cntrparam bspline set cntrparam points 7 set cntrparam order 10 5 set cntrparam levels auto 5.1,.37,.9 set cntrparam levels discrete.1,1/exp(1), set cntrparam levels incremental 0,1,4
107 gnuplot ( (end) ): set cntrparam levels 10 set cntrparam levels incremental 100,50 set contour (p. 108) set clabel (p. 105) (contours.dem) (discrete.dem). (colorbox) pm3d palette min z max z unset colorbox (colorbox) set colorbox set colorbox { { vertical horizontal } { default user } { origin x, y } { size x, y } { front back } { noborder bdefault border [line style] } } show colorbox unset colorbox default user origin size (front) (back) vertical horizontal origin x, y size x, y user x, y 3 set view map splot 2 set colorbox horiz user origin.1,.02 size.8,.04 border ON ( ) noborder OFF border line style set style line 2604 linetype -1 linewidth.4 set colorbox border 2604 line style 2604 (-1) bdefault ( ) line style cb set/unset/show cbrange, [m]cbtics, format cb, grid [m]cb, cblabel cbdata, [no]cbdtics, [no]cbmtics set colorbox unset colorbox OFF set pm3d (p. 137), set palette (p. 140), x11 pm3d (p. 235), set style line (p. 152)
108 108 gnuplot 4.6 (colornames) gnuplot pm3d gnuplot show colornames set style line 1 linecolor rgb "sea-green" (contour) set contour splot (grid data) grid data (p. 174) set dgrid3d set contour {base surface both} unset contour show contour 3 base x/y surface both base set cntrparam (p. 105) set clabel (p. 105) ( set surface (p. 154)) set size 2 unset surface set contour set cntrparam... set table filename splot... unset table # contour info now in filename set term <whatever> plot filename ("grid data") y- y- y- ( ) splot datafile (p. 171) (contours.dem) (discrete.dem). Data style set style data (p. 150) Datafile set datafile plot, splot, fit (field) 6
109 gnuplot Set datafile fortran set datafile fortran Fortran D Q Fortran D Q unset datafile fortran Set datafile nofpe trap set datafile nofpe trap gnuplot Set datafile missing set datafile missing gnuplot (missing data) plot splot using set datafile missing {"<string>"} show datafile missing unset datafile : : # IEEE NaN ("Not a Number") set datafile missing "NaN" set style data linespoints plot ? e set datafile missing "?" plot ? e plot - using 1: ? e plot - using 1:($2) ?
110 110 gnuplot e plot "3?" 1 1 "x" "y" (2,3) ( ) 2 3 plot (2,20) (4,40) 4 plot (2,20) (4,40) missing (missing data) Set datafile separator set datafile separator "<char>" gnuplot (whitespace) <char> csv ( ) (whitespace) set datafile separator {"<char>" whitespace} : # set datafile separator "\t" # set datafile separator "," Set datafile commentschars set datafile commentschars gnuplot gnuplot set datafile commentschars {"<string>"} show datafile commentschars unset commentschars string VMS "#!" "#" # # 3 4 set datafile missing # : set datafile commentschars "#!%"
111 gnuplot Set datafile binary set datafile binary plot splot <binary list> binary matrix (p. 172),binary general (p. 75) set datafile binary <binary list> show datafile binary show datafile unset datafile : set datafile binary filetype=auto set datafile binary array=(512,512) format="%uchar" show datafile binary # Decimalsign set decimalsign set label set decimalsign {<value> locale {"<locale>"}} unset decimalsign show decimalsign <value>., <value> ( ) unset decimalsign <value> : set decimalsign, gnuplot gprintf() sprintf() set decimalsign locale gnuplot LC ALL, LC NUMERIC, LANG set decimalsign locale "foo" gnuplot "foo" "foo" linux "locale -a" linux "sl SI.UTF-8" Windows "Slovenian Slovenia.1250" "slovenian" C C ( 3 ) set decimalsign locale; set decimalsign "." gnuplot gprintf(). ( )
112 112 gnuplot 4.6 Dgrid3d set dgrid3d splot grid data (p. 174) set dgrid3d {<rows>} {,{<cols>}} { splines qnorm {<norm>} (gauss cauchy exp box hann) {kdensity} {<dx>} {,<dy>} } unset dgrid3d show dgrid3d dgrid3d 3 ( ) row size/col size x ( ) y ( ) z z 10 splines " " qnorm norm ( dx, dy dx^norm + dy^norm 2 4, 8, 16 (dx^2+dy^2)^norm/2 ) (kernel) z = Sum i w(d i) * z i / Sum i w(d i), z i i d i i gauss : w(d) = exp(-d*d) cauchy : w(d) = 1/(1 + d*d) exp : w(d) = exp(-d) box : w(d) = 1 d<1 = 0 hann : w(d) = 0.5*(1-cos(2*pi*d)) d<1 w(d) = dx dy d i = sqrt( ((x-x i)/dx)**2 + ((y-y i)/dy)**2 ), x,y x i,y i i dy dx 1 dx dy kdensity2d ( ) ( z = Sum i w(d i) * z i ) z i 2 ( 5 ) 1 smooth kdensity ( kdensity2d.dem )
113 gnuplot qnorm 3 (,) norm dgrid3d gnuplot dgrid3d.dem: scatter.dem: dgrid3d dgrid3d Dummy set dummy set dummy {<dummy-var>} {,<dummy-var>} show dummy gnuplot plot "t", "x" ( ) splot (splot ) "u" "v", "x" "y" set dummy t plot sin(t), cos(t) set dummy : set dummy u,v set dummy,s 2 s Encoding set encoding (encoding) set encoding {<value>} set encoding locale show encoding (value) default - iso_8859_1 - Unix MS-Windows PostScript ISO-Latin1 iso_8859_15 - iso_8859_1 iso_8859_2 - / iso_8859_9 - (Latin5 ) koi8r - Unix koi8u - Unix cp437 - MS-DOS
114 114 gnuplot 4.6 cp850 cp852 cp950 cp1250 cp1251 cp1254 sjis utf8 - OS/2 - / OS/2 - MS Big5 (emf terminal ) - / MS Windows - (8 ) - MS Windows (Latin5 ) - Shift_JIS - Unicode ( ) set encoding locale LC ALL, LC CTYPE, LANG wxt, cairopdf UTF-8 EUC-JP set locale (p. 127), set decimalsign (p. 111) Fit set fit fit set fit {logfile {"<filename>"}} {{no}quiet} {{no}errorvariables} {{no}prescale} unset fit show fit <filename> unset fit "fit.log" FIT LOG / \ "fit.log" errorvariables ON fit " err" set fit errorvariables fit f(x) datafile using 1:2 via a, b print "error of a is:", a_err set label a=%6.2f, a, +/- %6.2f, a_err plot datafile using 1:2, f(x) prescale Marquardt-Levenberg 0 set fit quiet Fontpath fontpath postscript fontpath
115 gnuplot fontpath terminal postscript set fontpath {"pathlist1" {"pathlist2"...}} show fontpath OS Unix ( : ), MS-DOS, Windows, OS/2 ( ; ) show fontpath, save, save set OS ( ) (! ) GNUPLOT FONTPATH fontpath set fontpath, show fontpath, save fontpath plot, splot GNUPLOT FONTPATH OFF show fontpath show fontpath fontpath fontpath save, save set fontpath gd GDFONTPATH Format set format set tics format set { }tics format set format {<axes>} {"<format-string>"} set format {<axes>} { <format-string> } show format <axes> ( ) x, y, xy, x2, y2, z, cb ( ) 2 set format y "%.2f" set ytics format "%.2f" 100 "% g" "%.2f" "%3.0em" LaTeX "$%g$" format "" unset xtics set tics scale 0 (\n) (enhanced text) ( ) (") syntax (p. 42) "%" "%g m" " m" "%" "%g %%" 2 set xtics (p. 164) set decimalsign (p. 111) ( ) (electron.dem).
116 116 gnuplot 4.6 Gprintf gprintf("format",x) gnuplot set format, set timestamp gnuplot C sprintf() gprintf() gnuplot sprintf("format",x1,x2,...) gnuplot :format specifiers (p. 116) (format specifiers) ( / ) %f %e, %E ; e, E %g, %G %e ( %E) %f %x, %X 16 %o, %O 8 %t 10 %l %s ; (scientific power) %T 10 %L %S (scientific power) %c %b ISO/IEC (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) %B ISO/IEC (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) %P ( scientific power) 3 ("%c") ("%" ) "-" "+" " " ( ) "-" "#" 0 "0" ( ) 0 ( ) OS OS : set format y "%t"; set ytics (5,10) # "5.0" "1.0" set format y "%s"; set ytics (500,1000) # "500" "1.0" set format y "%+-12.3f"; set ytics(12345) # " " set format y "%.2t*10^%+03T"; set ytic(12345)# "1.23*10^+04" set format y "%s*10^{%s}"; set ytic(12345) # "12.345*10^{3}" set format y "%s %cg"; set ytic(12345) # " kg" set format y "%.0P pi"; set ytic( ) # "2 pi" set format y "%.0f%%"; set ytic(50) # "50%" set log y 2; set format y %l ; set ytics (1,2,3) #"1.0", "1.0", "1.5" (3 1.5 * 2^1 ) (time/date) strftime ( gnuplot "man strftime" ) set timefmt (p. 157)
117 gnuplot (time/date specifiers) (time/date mode) %a (Sun,Mon,...) %A (Sunday,Monday,...) %b, %h (Jan,Feb,...) %B (January,February,...) %d (01 31) %D "%m/%d/%y" ( ) %F "%Y-%m-%d" ( ) %k (0 23; 1 2 ) %H (00 23; 2 ) %l (1 12; 1 2 ) %I (01 12; 2 ) %j (1 366) %m (01 12) %M (0 60) %p am pm %r "%I:%M:%S %p" ( ) %R "%H:%M" ( ) %S ( 0 60 ) %s 2000 %T "%H:%M:%S" ( ) %U ( ) %w (0 6, = 0) %W ( ) %y ( ) %Y (4 ) (% ) "0" (" " " ") 0 ( ) %S 24 : "76/12/25 23:11:11" set format x # "12/25/76" \n "23:11" set format x "%A, %d %b %Y" # "Saturday, 25 Dec 1976" set format x "%r %D" # "11:11:11 pm 12/25/76" "98/07/06 05:04: " set format x "%1y/%2m/%3d %01H:%02M:%06.3S" # "98/ 7/ 6 5:04:03.123" Function style set style function (p. 151) Functions show functions
118 118 gnuplot 4.6 show functions gnuplot expressions (p. 26) (spline.dem) (airfoil.dem) Grid set grid set grid {{no}{m}xtics} {{no}{m}ytics} {{no}{m}ztics} {{no}{m}x2tics} {{no}{m}y2tics} {{no}{m}cbtics} {polar {<angle>}} {layerdefault front back} { {linestyle <major_linestyle>} {linetype lt <major_linetype>} {linewidth lw <major_linewidth>} {, {linestyle ls <minor_linestyle>} {linetype lt <minor_linetype>} {linewidth lw <minor_linewidth>} } } unset grid show grid / / 2 ( set angles ) set grid gnuplot 30 front back front layerdefault 2D back 3D 2 hidden3d set border ( set xtics (p. 164)) z set border (p. 103) Hidden3d set hidden3d ( splot (p. 171)) set hidden3d {defaults}
119 gnuplot { {front back} {{offset <offset>} {nooffset}} {trianglepattern <bitpattern>} {{undefined <level>} {noundefined}} {{no}altdiagonal} {{no}bentover} } unset hidden3d show hidden3d gnuplot ( splot datafile (p. 171)) with lines with linespoints hidden3d ( set contour (p. 108)) (set contour surface) (key) gnuplot 4.6 hidden3d points, labels, vectors, impulses 3 with nohidden3d hidden3d pm3d pm3d set pm3d depthorder pm3d hidden3d hidden3d set hidden3d front 2 with lines lt -2 2 with pm3d hidden3d nohidden3d set samples (p. 147), set isosamples (p. 120) defaults defaults set {no}hidden3d / offset offset <offset> 1 nooffset offset 0 trianglepattern <bitpattern> <bitpattern> undefined <level> ( ) x,y,z <level> = 3 noundefined <level> = 2 <level> = 1 noaltdiagonal undefined ( <level> 3 ) 2
120 120 gnuplot undefined altdiagonal bentover trianglepattern ASCII 1 2 ( ( bent over ) ) C----B 4 A--B 4 \ ("set view 0,0") / ("set view 75,75" perhaps) \ / \ C--D \ A D <bitpattern> 2 bit CB bentover nobentover (hidden.dem) (singulr.dem). Historysize set historysize gnuplot GNU readline configure set historysize <int> unset historysize historysize gnuplot history 500 unset historysize history history Isosamples ( ) set isosamples set isosamples <iso_1> {,<iso_2>} show isosamples <iso 1> u- <iso 2> v- <iso 1> <iso 2> <iso 1> u, v 10 s(u,v) u u- c(v) = s(u0,v) v v- c(u) = s(u,v0) set samples set samples (p. 147),set hidden3d (p. 118) isosamples samples
121 gnuplot Key set key (key) plot ( splot) title, with plot title (p. 92),plot with (p. 93) set key {on off} {default} {{inside outside} {lmargin rmargin tmargin bmargin} {at <position>}} {left right center} {top bottom center} {vertical horizontal} {Left Right} {{no}opaque} {{no}reverse} {{no}invert} {samplen <sample_length>} {spacing <vertical_spacing>} {width <width_increment>} {height <height_increment>} {{no}autotitles {columnheader}} {title "<text>"} {{no}enhanced} {font "<face>,<size>"} {textcolor <colorspec>} {{no}box { {linestyle ls <line_style>} {linetype lt <line_type>} {linewidth lw <line_width>}}} {maxcols {<max no. of columns> auto}} {maxrows {<max no. of rows> auto}} unset key show key ( ) ( ; ) set key off unset key plot notitle vertical ( ) horizontal ( ) vertical key 2,3 1 maxrows horizontal key maxcols key left, right, top, bottom, center, inside, outside, lmargin, rmargin, tmargin, bmargin (, above, over, below, under) key at <position> left, right, top, bottom, center key placement (p. 122) Left, Right ( ) (reverse) (box {...}) (linetype), (linewidth) (linestyle) key key key set key opaque key key key key set key noopaque invert (histograms) <height increment> ( )
122 122 gnuplot 4.6 plot splot autotitles (title) noautotaitle (s)plot... title... set key autotitle columnheader gnuplot plot plot "datafile" using (($2+$3)/$4) title columnhead(3) with lines (title "<text>") ( ) (") syntax (p. 42) set key on, right, top, vertical, Right, noreverse, noinvert, samplen 4, spacing 1.25, title "", nobox set key default 1 1 (reverse ) plot (title) set key plot x y splot x, y, z 2 2 TeX gnuplot set key left Left reverse splot set clabel (p. 105) : set key default unset key ( ) (2,3.5,2) set key at 2,3.5,2 set key below 3 set key left bottom Left title Legend box 3 (key placement) (margin) left/center/right (l/c/r) top/center/bottom (t/c/b) key inside key left (l), right (r), top (t), bottom (b), center (c) t/l t/c t/r c/l c c/r
123 gnuplot b/l b/c b/r outside key key key 4 (center) vertical horizontal (margin) lmargin (lm), rmargin (rm), tmargin (tm), bmargin (bm) 1 key l/tm c/tm r/tm t/lm t/rm c/lm c/rm b/lm b/rm l/bm c/bm r/bm above over tmargin above over l/c/r center horizontal below under bmargin below under l/c/r center horizontal outside t/b/c top, right, vertical ( t/rm ) (<position>) x,y,z 5 (first, second, graph, screen, character) coordinates (p. 23) <position> left, right, top, bottom, center label left key <position> (key samples) / / font textcolor textcolor "variable" gnuplot samplen <sample length>*( ) sapmlen ( ) spacing (pointsize) <vertical spacing> <width increment> ( ) gnuplot
124 124 gnuplot 4.6 (label) set label (label) set label {<tag>} {"<label text>"} {at <position>} {left center right} {norotate rotate {by <degrees>}} {font "<name>{,<size>}"} {noenhanced} {front back} {textcolor <colorspec>} {point <pointstyle> nopoint} {offset <offset>} unset label {<tag>} show label (<position>) x,y x,y,z first, second, graph, screen, character coordinates (p. 23) (<tag>) set label <label text> strings (p. 40), sprintf (p. 28), gprintf (p. 116) x,y,z x,y,z <justification> left, right, center rotate ( ) rotate by <degrees> font "<name>{,<size>}" (enhanced text mode) noenhanced ( ) enhanced text (p. 24) front back ( ) front textcolor <colorspec> <colorspec> rgb colorspec (p. 35), palette (p. 140) textcolor tc tc default tc lt <n> <n> (line type) tc ls <n> line style <n> tc palette z z tc palette cb <val> (colorbar) <val> tc palette fraction <val> (0<=val<=1) [0:1] palette / tc rgb "#RRGGBB" 24-bit RGB <pointstyle> lt, pt, ps ( style (p. 93)) (point) mouse off ( ) nopoint
125 gnuplot <pointstyle> pointsize 1,1 <pointstyle> 0,0 offset <offset> <offset> x,y x,y,z first, second, graph, screen, character coordinates (p. 23) ( ) timefmt set xdata (p. 160), set timefmt (p. 157) EEPIC, Imagen, LaTeX, TPIC \\ ( labels (p. 56)) : (1,2) "y=x" set label "y=x" at 1,2 Symbol 24 " " ( ) set label "S" at graph 0.5,0.5 center font "Symbol,24" "y=x^2" (2,3,4) 3 set label 3 "y=x^2" at 2,3,4 right set label 3 center 2 unset label 2 unset label show label x set timefmt "%d/%m/%y,%h:%m" set label "Harvest" at "25/8/93",1 fit plot set label sprintf("a = %3.5g",par_a) at 30,15 bfit = gprintf("b = %s*10^%s",par_b) set label bfit at 30,20 f(x)=a+b*x fit f(x) datafile via a,b set label GPFUN_f at graph.05,.95 set label sprintf("a = %g", a) at graph.05,.90 set label sprintf("b = %g", b) at graph.05,.85 set label origin at 0,0 point lt 1 pt 2 ps 3 offset 1,-1 pm3d 3 z ( 5.5) set label text at 0,0,5.5 tc palette z
126 126 gnuplot 4.6 (linetype) set linetype (linetype) "set style line" set linetype reset 1 2 set linetype 1 lw 2 lc rgb "blue" pointtype 6 set linetype 2 lw 2 lc rgb "forest-green" pointtype 8 lt 1 (lt 1 ) lt 1 gnuplot "set style increment user" gnuplot /.gnuplot if ((GPVAL_VERSION < 4.5) \ (!strstrt(gpval_compile_options,"+user_linetypes"))) \ exit set linetype 1 lc rgb "dark-violet" lw 2 pt 0 set linetype 2 lc rgb "sea-green" lw 2 pt 7 set linetype 3 lc rgb "cyan" lw 2 pt 6 pi -1 set linetype 4 lc rgb "dark-red" lw 2 pt 5 pi -1 set linetype 5 lc rgb "blue" lw 2 pt 8 set linetype 6 lc rgb "dark-orange" lw 2 pt 3 set linetype 7 lc rgb "black" lw 2 pt 11 set linetype 8 lc rgb "goldenrod" lw 2 set linetype cycle 8 gnuplot 3 pt 3, lw 1 2,3 gnuplot set linetype cycle 8 gnuplot (linetype) 9-16, (pointtype, pointsize, pointinterval) unset linetype cycle Lmargin set lmargin set margin (p. 128) Loadpath loadpath call, load, plot, splot loadpath set loadpath {"pathlist1" {"pathlist2"...}} show loadpath
127 gnuplot OS Unix ( : ), MS-DOS, Windows, OS/2 ( ; ) show loadpath, save, save set OS ( ) GNUPLOT LIB loadpath show loadpath set loadpath GNUPLOT LIB save, save set GNU- PLOT LIB Locale locale {x,y,z}{d,m}tics set locale {"<locale>"} <locale> set locale "" LC TIME, LC ALL, LANG locale set decimalsign (p. 111) set encoding (p. 113) Logscale set logscale <axes> {<base>} unset logscale <axes> show logscale <axes> ( ) x, x2, y, y2, z, cb, r <base> ( 10) r unset logscale set xtics (p. 164) : x, z set logscale xz y 2 set logscale y 2 pm3d plot z set logscale zcb z unset logscale z <stringvariablename> substitution (p. 40) set macros
128 128 gnuplot 4.6 Mapping splot set mapping gnuplot set mapping {cartesian spherical cylindrical} ( x,y,z ) 2 3 ( using ) 2 set angles (theta) (phi) ( " " " ") r 3 1 x,y,z x = r * cos(theta) * cos(phi) y = r * sin(theta) * cos(phi) z = r * sin(phi) " " " " ( ) ( phi z ) theta (set angle ) z r 3 1 x,y,z x = r * cos(theta) y = r * sin(theta) z = z mapping splot using mapping mapping using mapping plot world.dem: mapping Margin margin ( ) set margin show margin set offsets (p. 135) set bmargin {{at screen} <margin>} set lmargin {{at screen} <margin>} set rmargin {{at screen} <margin>} set tmargin {{at screen} <margin>} show margin <margin> ( ) gnuplot 3 (lmargin) at screen (multiplot) 2D, 3D set origin set size key ( ) ( set xtics axis )
129 gnuplot Mouse set mouse 2 2 plot splot 2 ( z 0, 90, 180, 270, 360 set view set view map) key / splot 3 (view) 1 2 ( ) 2 shift z (xyplane) <ctrl> (multiplot) unset multiplot ON multiplot (replot ) set mouse {doubleclick <ms>} {nodoubleclick} \ {{no}zoomcoordinates} \ {noruler ruler {at x,y}} \ {polardistance{deg tan} nopolardistance} \ {format <string>} \ {clipboardformat <int>/<string>} \ {mouseformat <int>/<string>} \ {{no}labels {"labeloptions"}} \ {{no}zoomjump} {{no}verbose} unset mouse noruler ruler (ruler) off, on ruler ruler on ruler ruler r polardistance (ruler) ( ) 5 2 gnuplot labels nolabels 2 mouseformat labeloptions set label "point pointstyle 1" (+) replot Ctrl 2 pointsize verbose ON 6 ON/OFF verbose OFF h bind hotkeys ( bind (p. 37)) hotkeys bind (p. 37), label (p. 124) Doubleclick (ms) 1 (clipboard) 300 ms 0 ms
130 130 gnuplot 4.6 Mouseformat set mouse format sprintf() [x,y] "% #g" set mouse clipboardformat set mouse mouseformat 1 2 ( ) 6 sprintf() 2 set mouse mouseformat "mouse x,y = %5.2g, %10.3f". set mouse mouseformat "" 0 (1 ) , (0 1 ) /0.00, 1.00/ 3 x = timefmt y = [( set timefmt ), 2.45] 4 x = y = [ , 2.45] 5 x = y = [23:59, 2.45] 6 x = / y = [ :59, 2.45] 7 set mouse mouseformat "mouse x,y = 1.23, 2.450" (scrolling) 2 3 X Y <wheelup> (YMIN YMAX Y 10 Y2MIN Y2MAX ) <wheel-down> <shift-wheel-up> (XMIN XMAX X2MIN X2MAX ) <shift-wheel-down> <control-wheel-up> <control-wheel-down> <shift-control-wheel-up> X X2 <shift-control-wheel-down> X X2 X11 (X11 mouse) x11 set term x11 <n> X11 Zoom (zoom) u p n zoomcoordinates ON zoomjump ON 3 ( ) zoomjump OFF Multiplot set multiplot gnuplot
131 gnuplot set multiplot { title <page title> {font <fontspec>} {enhanced noenhanced} } { layout <rows>,<cols> {rowsfirst columnsfirst} {downwards upwards} {scale <xscale>{,<yscale>}} {offset <xoff>{,<yoff>}} } unset multiplot (terminal) unset multiplot gnuplot plot " " clear ( screen ) set 1 (timestamp) set multiplot unset multiplot plot ( splot, replot) set time unset time multiplot layout set origin set size set origin (p. 135), set size (p. 147) : set multiplot set size 0.4,0.4 set origin 0.1,0.1 plot sin(x) set size 0.2,0.2 set origin 0.5,0.5 plot cos(x) unset multiplot cos(x) sin(x) set size set origin set term size (p. 22) set margin set margin (p. 128) layout set size set origin layout <rows> <cols> (rowsfirst) (columnsfirst) (downwards) (upwards) rowsfirst downwards scale offset scale offset y x unset multiplot set size set origin set multiplot layout : set size 1,1 set origin 0,0 set multiplot layout 3,2 columnsfirst scale 1.1,0.9
132 132 gnuplot 4.6 [ 6 ] unset multiplot /2 0.9/3 multiplot (multiplt.dem) Mx2tics x2 ( ) set mx2tics set mxtics (p. 132) Mxtics x set mxtics unset mxtics set mxtics {<freq> default} unset mxtics show mxtics mytics, mztics, mx2tics, my2tics, mcbtics <freq> ( ) default (10 ) <freq> ( , 3,..., 8, 9 ) 9 <freq> 10 ("<label>" <pos> <level>,...) set {x x2 y y2 z}tics <label> ("") <level> 1 set m{x x2 y y2 z}tics set {x x2 y y2 z}tics set {x x2 y y2 z}tics set {x x2 y y2 z}tics add : set xtics 0, 5, 10 set xtics add (7.5) set mxtics 5 0,5,7.5,10 1,2,3,4,6,7,8,9 set logscale y set ytics format "" set ytics 1e-6, 10, 1 set ytics add ("1" 1, ".1" 0.1, ".01" 0.01, "10^-3" 0.001, \ "10^-4" ) set mytics 10 axis border {no}mirror set xtics (p. 164)
133 gnuplot My2tics y2 ( ) set my2tics set mxtics (p. 132) Mytics y set mytics set mxtics (p. 132) Mztics z set mztics set mxtics (p. 132) Object set object 2 rectangle ( ) circle ( ) ellipse ( ) set style rectangle ( ) set style fill set object <index> <object-type> <object-properties> {front back behind} {clip noclip} {fc fillcolor <colorspec>} {fs <fillstyle>} {default} {lw linewidth <width>} <object-type> rectangle, ellipse, circle, polygon front ( ) front ( ) back behind back set object rectangle from screen 0,0 to screen 1,1 behind 1 noclip <colorspec> fillcolor fc <fillstyle> colorspec (p. 35), fillstyle (p. 150) default set style rectangle (p. 153) Rectangle set object <index> rectangle {from <position> {to rto} <position> center <position> size <w>,<h> at <position> size <w>,<h>} 2 ( ) (<w>) (<h>) (first, second) (graph) (screen) ( coordinates (p. 23)) at center :
134 134 gnuplot 4.6 # set object 1 rect from graph 0, graph 0 to graph 1, graph 1 back set object 1 rect fc rgb "cyan" fillstyle solid 1.0 # 0,0, 2,3 set object 2 rect from 0,0 to 2,3 fc lt 1 # ( ) set object 3 rect from 0,0 to 2,3 fs empty border rgb "blue" # set object 2 rect default Ellipse set object <index> ellipse {at center} <position> size <w>,<h> {angle <orientation>} {units xy xx yy} {<other-object-properties>} ( ) at center (first, second) (graph) (screen) ( coordinates (p. 23)) (orientation) ( set style ellipse (p. 154)) units units xy x y units xx x units yy y xy set style ellipse units x y ( units xy ) set object ellipse size <2r>,<2r> set object circle <r> circle x x y 1 units xy set object ellipse <2r> x <2r> y x y 1 units xx yy set object Circle set object <index> circle {at center} <position> size <radius> {arc [<begin>:<end>]} {<other-object-properties>} at center x (graph) (screen) ( coordinates (p. 23)) arc
135 gnuplot Polygon set object <index> polygon from <position> to <position>... {to <position>} from <position> rto <position>... {rto <position>} (first, second) (graph) (screen) (rto) coordinates (p. 23) : set object 1 polygon from 0,0 to 1,1 to 2,0 set object 1 fc rgb "cyan" fillstyle solid 1.0 border lt -1 Offsets x1,y1 2 plot set offsets <left>, <right>, <top>, <bottom> unset offsets show offsets 0 x1 y1 "graph" y "set auto fix" : set auto fix set offsets graph 0.05, 0, 2, 2 plot sin(x) sin(x) y [-3:3] y [-1:1] 2 x [-11:10] [-10:10] 0.05 Origin set origin ( ) (screen) :coordinates (p. 23) set origin <x-origin>,<y-origin> Output set output
136 136 gnuplot 4.6 set output {"<filename>"} show output set output (STDOUT) ( set output "STDOUT" "STDOUT"! [" " x11 wxt terminal ( ) set output ]) set terminal set output set terminal terminal OS OS ( ) OS popen (Unix ) set output " lpr -Plaser filename" set output " lp -dlaser filename" MS-DOS set output "PRN" VMS DECnet Parametric set parametric plot splot (parametric) unset parametric set parametric unset parametric show parametric 2 2 plot sin(t),cos(t) ( :set size (p. 147)) gnuplot plot 3 x = f(u,v), y = g(u,v), z = h(u,v) 3 cos(u)*cos(v),cos(u)*sin(v),sin(u) gnuplot 3 splot f(x) 2 (3 ) x, y (, z) t,f(t) x f(x) 3 u,v,f(u,v) f(x,y) x y ( z ) set parametric f(x) f(x,y) xrange yrange ( zrange) trange, urange, vrange set trange, set urange, set vrange plot splot [-5:5] Plot show plot replot plot splot
137 gnuplot show plot add2history history replot Pm3d pm3d splot 3 4 / / ( ): set pm3d set pm3d { { at <position> } { interpolate <steps/points in scan, between scans> } { scansautomatic scansforward scansbackward depthorder } { flush { begin center end } } { ftriangles noftriangles } { clip1in clip4in } { corners2color { mean geomean median min max c1 c2 c3 c4 } } { hidden3d {<linestyle>} nohidden3d } { implicit explicit } { map } } show pm3d unset pm3d splot with pm3d (style) pm3d pm3d set pm3d implicit pm3d 2 plot p3md splot fred.dat with lines, lola.dat with lines pm3d explicit ON ( implicit OFF) with pm3d pm3d splot fred.dat with lines, lola.dat with pm3d freq.dat ( ) lola.dat pm3d gnuplot explicit set pm3d; ( ) set pm3d at X... ( at ) implicit set pm3d; / pm3d set style data pm3d implicit explicit p3md 3 top, bottom, surface : pm3d position (p. 138) 3 set border 4095 set pm3d at s splot 10*x with pm3d at b, x*x-y*y, x*x+y*y with pm3d at t set palette (p. 140), set cbrange (p. 170), set colorbox (p. 107) demo/pm3d.dem
138 138 gnuplot 4.6 Pm3d (algorithm) / splot data file ( ) pm3d z ( color using (p. 86)) ( ) 4 corners2color 2 ( ) pm3d ( ) splot: 4 z ( corners2color) [0:1] zrange cbrange [min color z,max color z] / set palette (p. 140) splot: / z z 4 1. gnuplot iso curve ( ) (scan) 1 2. gray color (scale) " (colorbox)" set colorbox (p. 107),set cbrange (p. 170) 3. pm3d 3 2 set view map set pm3d map Pm3d (position) ( / ) z ( / ) at b, t, s 6 at b at st at bstbst... (at s) ( ) (gnuplot ) scansforward scansbackward scansautomatic gnuplot depthorder pm3d depthorder (p. 138) (scanorder) pm3d scansautomatic scansforward scansbackward (scan) 2 (flush begin) (flush end) (flush center) flush (center end) scansautomatic flush center flush end scansautomatic scansforward
139 gnuplot ftriangles gnuplot set pm3d depthorder hidden3d depthorder hidden3d ( ) set hidden3d pm3d (clipping) x,y 2 clip1in: 4 1 x, y clip4in: 4 x, y 3 (x,y,z) set palette origin size mutiplot set palette maxcolors pm3d / (4 ) corners2color <option> z <option> mean ( ) geomean, median min, max c1, c2, c3, c4 z c1 pm3d c<j> 2 pm3d 4x4 demo/pm3d.dem ( ) (4-1)x(4-1)=9 4 (x,y,z,color) 4 z 4 RGB rgbcolor variable (p. 36) splot... using 1:2:3:4 with pm3d lc rgb variable 4 (x,y) (2 ) image rgbimage z z cb set log set zrange set cbrange cb set view map (p. 159),set colorbox (p. 107) Hidden3d set pm3d hidden3d depthorder
140 140 gnuplot 4.6 set hidden3d plot set pm3d at s hidden3d depthorder unset hidden3d unset surf splot x*x+y*y linecolor rgb "black" linewidth 0.5 Interpolate interpolate m,n samples isosamples m, n m n m, n m, n 0 interpolate 0,0 {transparent solid} set grid {front layerdefault} set pm3d map set pm3d at b;set view map; set style data pm3d; set style func pm3d; set view map zrange cbrange set (no)surface (?) Palette pm3d " " pm3d set cbrange set log cb colorbox set palette set palette { { gray color } { gamma <gamma> } { rgbformulae <r>,<g>,<b> defined { ( <gray1> <color1> {, <grayn> <colorn>}... ) } file <filename> {datafile-modifiers} functions <R>,<G>,<B> } { cubehelix {start <val>} {cycles <val>} {saturation <val>} } { model { RGB HSV CMY YIQ XYZ } } { positive negative } { nops_allcf ps_allcf } { maxcolors <maxcolors> } } show palette show palette palette <n> {{float int}} show palette gradient
141 gnuplot show palette fit2rgbformulae show palette rgbformulae show colornames set palette ( ) show palette show palette gradient (gradient) ( ) show palette rgbformulae show colornames show palette palette <n> <n> RGB set print float int 3 [0..1] [0..255] gnuplot Octave RGB test palette R,G,B gray color pm3d [min z,max z] [0:1] 4 z (gray) (R,G,B) [0:1] ([0:1],[0:1],[0:1]) 2 1 palette rgbformulae palette functions palette defined palette file palette rgbformulae postscript show palette fit2rgbformulae set palette set palette rgbformulae rgbformulae rgbformulae gnuplot zimg ( ) set palette gray set palette rgbformulae, set palette defined, set palette file, set palette functions set palette color set palette gamma <gamma> (set palette gray) cubehelix gamma = 1 :test palette (p. 176) ( gif 256 ) gnuplot pm3d multiplot N set palette maxcolors <N> N N set palette defined RGB model RGB, HSV, CMY, YIQ, XYZ RGB set palette defined RGB R H, C, Y, X (G, B ) [0,1] RGB CMY (Cyan) (Magenta) (Yellow) HSV (Hue) (Saturation) (Value) YIQ (the U.S. Commercial
142 142 gnuplot 4.6 Color Television Broadcasting) RGB XYZ CIE ( Commission Internationale de l Eclairage ; ) 3 space Rgbformulae rgbformulae 3 rgbformulae <r>,<g>,<b> show palette rgbformulae 7,5,15 3,11,6, 21,23,3, 3,23,21 3,-11,-6 ( 1-gray ) RGB 7,5,15... pm3d ( ) 3,11, ,28,3... ( - - ); 21,22,23... ( ) 30,31,32... ( ) 33,13,10... ( ) 34,35,36... AFM ( ) HSV 3,2, rgbformulae <H>,<S>,<V> <X>,<Y>,<Z>,... positive negative rgbformulae show palette fit2rgbformulae Defined RGB palette defined (gradient) RGB [0,1] [0,1]x[0,1]x[0,1] RGB RGB set palette defined { ( <gray1> <color1> {, <grayn> <colorn>}... ) } <grayx> [0,1] <colorx> RGB 3 <color> := { <r> <g> <b> <color-name> #rrggbb } 3 ( [0,1] ) X 3 RGB "red" show colornames <r> HSV <H> CIE-XYZ <X> <gray> [0,1] set palette defined RGB show palette gradient : ( )
143 gnuplot set palette model RGB set palette defined ( 0 "black", 1 "white" ) ( ) set palette defined ( 0 "blue", 1 "yellow", 2 "red" ) set palette defined ( , , ) set palette defined ( 0 "#0000ff", 1 "#ffff00", 2 "#ff0000" ) set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" ) HSV set palette model HSV set palette defined ( , ) set palette defined ( , , , ) MATLAB set pal defined (1 #00008f, 8 #0000ff, 24 #00ffff, \ 40 #ffff00, 56 #ff0000, 64 # ) set palette model RGB maxcolors 4 set palette defined ( 0 "yellow", 1 "red" ) ( gray = 1/3, 2/3 ): set palette model RGB set palette defined (0 "dark-green", 1 "green", \ 1 "yellow", 2 "dark-yellow", \ 2 "red", 3 "dark-red" ) Functions R(gray), G(gray), B(gray) 3 set palette functions <Rexpr>, <Gexpr>, <Bexpr> 3 [0,1] gray [0,1] <Rexpr> HSV H ( ) : set palette model HSV functions gray, 1, 1 set palette model XYZ functions gray**0.35, gray**0.5, gray**0.8 gamma = 2.2 color(gray) = gray**(1./gamma) set palette model RGB functions color(gray), color(gray), color(gray) Cubehelix "cubehelix" 0 1 (hue) D A Green (2011) start cycles saturation ( ) 1 RGB set palette gamma set palette cubehelix start 0.5 cycles -1.5 saturation 1 set palette gamma 1.5
144 144 gnuplot 4.6 File set palette file set palette defined (<gradient>) <gradient> 4 (gray, R,G,B) 3 (R,G,B) using 3 gray gray [0,1] HSV R H <filename> - e (gradient) show palette gradient : RGB [0,255] set palette file some-palette using ($1/255):($2/255):($3/255) ( ) set palette model RGB file "-" e binary general (p. 75) R,G,B double 64 3 palette.bin set palette file "palette.bin" binary record=64 using 1:2:3 (gamma correction) set palatte gamma <gamma> ON <gamma> 1.5 cubehelix : set palette model RGB set palette functions gray**0.64, gray**0.67, gray**0.70 set palette defined ( , ) set palette defined ( , , ) " " Postscript postscript RGB postscript pm3d /g /cf 3 multiplot postscript nops allcf ps allcf postscript
145 gnuplot postscript origin size multiplot pm3d postscript gnuplot awk pm3dcompress.awk postscript 50% awk -f pm3dcompress.awk thefile.ps >smallerfile.ps pm3d postscript awk pm3dconverttoimage.awk awk -f pm3dconverttoimage.awk <thefile.ps >smallerfile.ps postscript <maxcolors> Pointintervalbox pointinterval linespoints pointinterval -N N ( ) set pointintervalbox ( ) (= pointsize) Pointsize set pointsize set pointsize <multiplier> show pointsize 1.0 plot plot with (p. 93) Polar set polar xy set polar unset polar show polar (t) t [0:2*pi] [0:360] ( set angles (p. 99)) unset polar xy set polar splot splot set mapping (p. 128) t r=f(t) t trange ( ) rrange, xrange, yrange x,y
146 146 gnuplot 4.6 rrange set rrange (p. 147), set xrange (p. 162) : set polar plot t*sin(t) set trange [-2*pi:2*pi] set rrange [0:3] plot t*sin(t) plot 0 2*pi 2 plot 3 x,y [-3:3] set size square gnuplot ( ) 1 ( ) (polar.dem) (poldat.dem) Print set print print set print set print "-" set print "<filename>" set print "<filename>" append set print " <shell_command>" "<filename>" <STDERR> "-" <filename> <STDOUT> append (append) <filename> " " <shell command> Psdir set psdir <directory> postscript prologue.ps prolog 1) set psdir 2) GNUPLOT_PS_DIR 3) 4) set loadpath Raxis set raxis unset raxis x rrange 0 ( ) : polar (p. 145), rrange (p. 147), rtics (p. 147), set grid (p. 118) Rmargin set rmargin set margin (p. 128)
147 gnuplot Rrange set rrange xrange yrange [-(rmax-rmin) : +(rmax-rmin)] xrange yrange ( ) rrange rrange rmin rmin = 0 Rtics set rtics mirror polar (p. 145), set xtics (p. 164) Samples set samples set samples <samples_1> {,<samples_2>} show samples 100 / 2 plot smooth 3 set dgrid3d (p. 112) 2 <samples 1> samples v- <samples 1> u- <samples 2> <samples 1> <samples 2> <samples 1> : set isosamples (p. 120) Size set size {{no}square ratio <r> noratio} {<xscale>,<yscale>} show size <xscale> <yscale> gnuplot set size ( ) version 4.6 set term <terminal type> size <XX>, <YY> " " set size <XX>, <YY> ratio <xscale>, <yscale> ( ) <r> (<r> x y )
148 148 gnuplot 4.6 <r> <r>=-1 x y ( 1) set view equal xy set view equal (p. 159) <r>=-2 y x 2 <r> gnuplot <r> ( ) square ratio 1 noratio nosquare (terminal) <xscale> <yscale> (1.0) ratio square 3 set view map 3 2 set view equal (p. 159) 3 x y : set size 1,1 set size square 0.5,0.5 2 set size ratio 2 Style set style data set style function plot with (p. 93) plotting styles (p. 44) set style function <style> set style data <style> show style function show style data set style arrow <n> <arrowstyle> set style fill <fillstyle> set style histogram <histogram style options> set style line <n> <linestyle> gnuplot object set style rectangle <object options> <linestyle> <fillstyle> set style circle radius <size> {clip noclip} set style ellipse size <size> units {xy xx yy} {clip noclip} Set style arrow test set style arrow
149 gnuplot set style arrow <index> default set style arrow <index> {nohead head heads} {size <length>,<angle>{,<backangle>}} {filled empty nofilled} {front back} { {linestyle ls <line_style>} {linetype lt <line_type>} {linewidth lw <line_width} } unset style arrow show style arrow <index> (arrowstyle) default arrow <index> arrowstyle <index> nohead 1 heads size <length>,<angle> size <length>,<angle>,<backangle> <length> <angle> ( ) <length> x <length> first, second, graph, screen, character coordinates (p. 23) <backangle> filled empty <backangle> (<angle> ; ) fig filled (heads ) pm3d (p. 137) ( ) empty metafont, metapost, latex, tgif ( set style line (p. 152)) <line type> ( ) <linewidth> ( ) ( ) set style arrow lt, lw front back ( ) front : set style arrow 1 nohead lw 2 set arrow arrowstyle 1 set arrow (p. 99) Boxplot set style boxplot boxplot set style boxplot {range <r> fraction <f>} {{no}outliers} {pointtype <p>} {candlesticks financebars}
150 150 gnuplot 4.6 {separation <x>} {labels off auto x x2} {sorted unsorted} boxplot ( ) y 1.5 set style boxplot range 1.5 (fraction) 95% set style boxplot fraction 0.95 outliers (pointtype 7) nooutliers boxplot candlesticks financebars boxplot using 4 boxplot boxplot 1.0 (x ) separation labels boxplot ( ) (x x2 plot ) labels auto labels x, labels x2 x x2 labels off boxplot unsorted sorted boxplot separation, labels, sorted, unsorted plot 4 boxplot (p. 46), candlesticks (p. 47), financebars (p. 50) Set style data set style data set style data <plotting-style> show style data plotting styles (p. 44) show style data Set style fill set style fill boxes, histograms, candlesticks, filledcurves (fillstyle) set style rectangle (p. 153)
151 gnuplot set style fill {empty {transparent} solid {<density>} {transparent} pattern {<n>}} {border {lt} {lc <colorspec>} noborder} (fillstyle) empty solid <density> <density> 0.0 <density> 1.0 <density> 1 pattern boxes <n> empty border border <colorspec> noborder Set style fill transparent transparent ( ) transparent solid density ( ) 0 1 transparent pattern solid pattern pm3d gif no yes no jpeg yes no yes pdf yes yes yes png TrueColor index yes post no yes no svg yes no yes win yes yes yes wxt yes yes yes x11 no yes no png "truecolor" PDF PDF PostScript Ghostscript/gv Set style function set style function (lines, points, filledcurves ) plotting styles (p. 44) set style function <plotting-style> show style function Set style increment set linetype set linetype (p. 126)
152 152 gnuplot 4.6 set style increment {default userstyles} show style increment set style increment user : set style line 1 lw 2 lc rgb "gold" set style line 2 lw 2 lc rgb "purple" set style line 4 lw 1 lc rgb "sea-green" set style increment user plot f1(x), f2(x), f3(x), f4(x) f1, f2, f4 f3(x) 3 Set style line test set style line set style line <index> default set style line <index> {{linetype unset style line show style line lt} <line_type> <colorspec>} {{linecolor lc} <colorspec>} {{linewidth lw} <line_width>} {{pointtype pt} <point_type>} {{pointsize ps} <point_size>} {{pointinterval pi} <interval>} {palette} default index (linetype) <index> linestyle <index> (, ) reset set linetype (p. 126) index index ( <point size> set pointsize ) pointinterval linespoints 0 ( ) set style line N pi 3 N with linespoints 3 ( ) linewidth pointsize
153 gnuplot linecolor <colorspec> linetype <colorspec> ( lc, lt) RGB 3 gnuplot cbrange colors (p. 34), colorspec (p. 35),set palette (p. 140), colornames (p. 108), cbrange (p. 170) set style line <n> linetype <lt> / set style line <n> linecolor <colorspec> set style line <n> linetype <colorspec> / 3 (splot ) "linetype palette z" palette splot z ( ) : 1, 2, 3 set style line 1 lt 2 lw 2 pt 3 ps set style function lines plot f(x) lt 3, g(x) ls 1 f(x) g(x) set style function linespoints plot p(x) lt 1 pt 3, q(x) ls 1 p(x) q(x) splot sin(sqrt(x*x+y*y))/sqrt(x*x+y*y) w l pal palette set palette (p. 140), set pm3d (p. 137) set style line 10 linetype 1 linecolor rgb "cyan" RGB 10 Set style circle set style circle {radius {graph screen} <R>} {clip noclip} "with circles" 2 (x,y) "noclip" "set style circle radius graph 0.02 clip" Set style rectangle set object set style rectangle set style rectangle {front back} {lw linewidth <lw>} {fillcolor <colorspec>} {fs <fillstyle>} colorspec (p. 35), fillstyle (p. 150) fillcolor fc : set style rectangle back fc rgb "white" fs solid 1.0 border lt -1 set style rectangle fc linsestyle 3 fs pattern 2 noborder
154 154 gnuplot 4.6 Set style ellipse set style ellipse {units xx xy yy} {clip noclip} {size {graph screen} <a>, {{graph screen} <b>}} {angle <angle>} xy ( 1 ) x ( x2) ( 2 ) y ( y2) xx yy object plot units size 2 plot 2 (2 2 ) "set style ellipse size graph 0.05,0.03" angle x "noclip" object set object ellipse (p. 134) 2 ellipses (p. 48) Surface set surface splot set surface unset surface show surface with unset surface splot splot nosurface set contour unset surface; set contour base :set contour (p. 108) Table table plot splot X Y {Z} R R 3 "i" "o" (undefined) "u" ( set format (p. 115)) plot set contour (p. 108) ( set samples (p. 147), set dgrid3d (p. 112)) set table {"outfile"} plot <whatever> unset table
155 gnuplot set output unset table Terminal gnuplot set terminal gnuplot set output set terminal {<terminal-type> push pop} show terminal <terminal-type> gnuplot <terminal-type> set terminal set output set terminal OS <term> set term <term> <options> set term <term> set term push set term pop save term, load term gnuplot startup (push) set term pop complete list of terminals (p. 177) Termoption set termoption set terminal set termoption {no}enhanced set termoption font "<fontname>{,<fontsize>}" set termoption fontscale <scale> set termoption {solid dashed} set termoption {linewidth <lw>}{lw <lw>} Tics ( ) set tics ( ) set tics unset tics set tics ( ) (tics ) set tics {axis border} {{no}mirror} {in out} {scale {default <major> {,<minor>}}} {{no}rotate {by <ang>}} {offset <offset> nooffset} {left right center autojustify}
156 156 gnuplot 4.6 { format "formatstring" } { font "name{,<size>}" } { textcolor <colorspec> } set tics {front back} unset tics show tics (x, y, z, x2, y2, cb) tics front back 2D (splot ) 1 axis border gnuplot ( ) axis ( :set border (p. 103)) mirror gnuplot nomirror in out scale <minor> 0.5*<major> scale default rotate 90 (terminal) norotate rotate by <ang> <ang> (terminal) x y border mirror norotate x2, y2 border nomirror norotate z nomirror <offset> x,y x,y,z first, second, graph, screen, character <offset> character coordinates (p. 23) nooffset offset OFF left, right, center autojustify set tics ( ) set xtics (p. 164) set mxtics (p. 132) Ticslevel set xyplane (p. 166) Ticscale set ticscale set tics scale Timestamp set timestamp set timestamp {"<format>"} {top bottom} {{no}rotate} {offset <xoff>{,<yoff>}} {font "<fontspec>"}
157 gnuplot unset timestamp show timestamp (format) asctime() "%a %b %d %H:%M:%S %Y" ( 4 ) top bottom ( ) rotate <xoff> <yoff> (offset) <font> timestamp time : set timestamp "%d/%m/%y %H:%M" offset 80,-2 font "Helvetica" set timefmt (p. 157) Timefmt set xdata time set timefmt "<format string>" show timefmt (<format string>) gnuplot %d, 1 31 %m, 1 12 %y, 0 99 %Y, 4 %j 1, %H, 0 24 %M, 0 60 %s Unix epoch ( , 00:00 UTC) %S ( 0 60 ) %b ( ) 3 %B ( ) \t ( ) + 8 (\nnn) %d, %m, %y, %H, %M, %S 2 %S %Y 4 %j 3 %b 3 %B ( ) "%H %M" "1220" "12 20" "12 20" using n:n 11:11 25/12/ gnuplot using "%a", "%A", "%b", "%B" gnuplot set format (p. 115) 2 %y UNIX98 2
158 158 gnuplot 4.6 set xdata (p. 160), time/date (p. 43) : set timefmt "%d/%m/%y\t%h:%m" gnuplot (? ) (time data) Title set title set title set label set title {"<title-text>"} {offset <offset>} {font "<font>{,<size>}"} {{textcolor tc} {<colorspec> default}} {{no}enhanced} show title <offset> x,y x,y,z first, second, graph, screen, character coordinates (p. 23) character "set title offset 0,-1" y 1 1 <font> <size> (terminal) textcolor <colorspec> <colorspec> rgb colorspec (p. 35), palette (p. 140) noenhanced (enhanced text) set title syntax (p. 42) Tmargin set tmargin set margin (p. 128) Trange set trange x,y set xrange (p. 162) Urange set urange set vrange splot x,y,z set xrange (p. 162) Variables show variables gnuplot GPVAL, MOUSE, FIT, TERM
159 gnuplot show variables # GPVAL_ show variables all # GPVAL_ show variables NAME # NAME Version show version gnuplot FAQ infognuplot show version {long} long gnuplot ( ) View set view splot 3 2 (screen) set view <rot_x>{,{<rot_z>}{,{<scale>}{,<scale_z>}}} set view map set view {no}equal {xy xyz} show view <rot x> <rot z> 3 ( ) ( ) x, y, z x <rot x> z <rot z> set view map (contour) (pm3d) zrange cbrange <rot x> [0:180] 60 <rot z> [0:360] 30 <scale> splot <scale z> z 1.0 : set view 60, 30, 1, 1 set view,, Equal axes set view equal xy x y set view equal xyz z x y z 3 set xyplane (p. 166)
160 160 gnuplot 4.6 Vrange set urange set vrange splot ( ) x, y, z set xrange (p. 162) X2data set x2data x2 ( ) ( ) set xdata (p. 160) X2dtics set x2dtics x2 ( ) set xdtics (p. 161) X2label set x2label x2 ( ) set xlabel (p. 161) X2mtics set x2mtics x2 ( ) 1 set xmtics (p. 162) X2range set x2range x2 ( ) set xrange (p. 162) X2tics set x2tics x2 ( ) set xtics (p. 164) X2zeroaxis set x2zeroaxis x2 ( ) (y2 = 0) set zeroaxis (p. 169) Xdata x set xdata {time} show xdata ydata, zdata, x2data, y2data, cbdata time gnuplot set timefmt (p. 157) ( ) (timefmt)
161 gnuplot (label) strftime (unix "man strftime" ) set format x "string" 10 (2 % %f %g ) gnuplot time/date (p. 43) Xdtics set xdtics x (0=Sun, 6=Sat) 6 7 unset xdtics set xdtics unset xdtics show xdtics ydtics, zdtics, x2dtics, y2dtics, cbdtics set format (p. 115) Xlabel set xlabel x set xlabel {"<label>"} {offset <offset>} {font "<font>{,<size>}"} {textcolor <colorspec>} {{no}enhanced} {rotate by <degrees> rotate parallel norotate} show xlabel x2label, ylabel, y2label, zlabel, cblabel <offset> x,y x,y,z first, second, graph, screen, character coordinates (p. 23) character "set xlabel offset -1,0" x 1 1 <font> <size> ( ) noenhanced (enhanced text) "set y2label" xlabel: x ylabel: y zlabel: z z cblabel: (color box) y2label: y2 y2 y x2label: x2 x2 set title "This is the title\n\nthis is the x2label"
162 162 gnuplot x, x2, y, y2 ( ) rotate by < > 3 x, y rotate parallel set label syntax (p. 42) Xmtics set xmtics x 1=Jan (1 ) 12=Dec (12 ) unset xmtics set xmtics unset xmtics show xmtics x2mtics, ymtics, y2mtics, zmtics, cbmtics set format (p. 115) Xrange set xrange r, t, u, v set xrange { [{{<min>}:{<max>}}] {{no}reverse} {{no}writeback} } restore show xrange <min> <max> * * set timefmt yrange, zrange, x2range, y2range, cbrange, rrange, trange, urange, vrange reverse set xrange [0:1] reverse 1 0 set xrange [1:0] reverse (autoscale) <min> ( <max> ) "*" <lb> <ub> { <lb> < } * { < <ub> } 0 < * < 200 <lb> = 0, <ub> = 200 <min> ( < ) < <ub> <lb>
163 gnuplot writeback set xrange writeback plot set xrange restore set xrange [-10:10] set yrange [] writeback plot sin(x) set yrange restore replot x/2 y (yrange) sin(x) [-1:1] x/2 [-5:5] show yrange 2 xrange yrange trange 3 xrange, yrange, zrange urange yrange rrange <rmin> <rmax> (clip) <rmax> xrange yrange r(t)-rmin rmin plot plot set splot : x set xrange [-10:10] y set yrange [10:-10] z ( ) 10 set zrange [:10] x set xrange [*:] x 0 set xrange [0<*:] x ( ): set xrange [*<10:50<*] [-1000:1000] set xrange [-1000<*:*<1000] x set xrange [-200<*<100:]
164 164 gnuplot 4.6 Xtics x ( ) set xtics unset xtics set xtics ( ) y,z,x2,y2 set xtics {axis border} {{no}mirror} {in out} {scale {default <major> {,<minor>}}} {{no}rotate {by <ang>}} {offset <offset> nooffset} {left right center autojustify} {add} { autofreq <incr> <start>, <incr> {,<end>} ({"<label>"} <pos> {<level>} {,{"<label>"}...) } { format "formatstring" } { font "name{,<size>}" } { rangelimited } { textcolor <colorspec> } unset xtics show xtics ytics, ztics, x2tics, y2tics, cbtics axis border gnuplot ( ) axis mirror gnuplot nomirror in out scale <minor> 0.5*<major> scale default rotate 90 (terminal) norotate rotate by <ang> <ang> (terminal) x y border mirror norotate x2, y2 border nomirror norotate z {axis border} nomirror z set border <offset> x,y x,y,z first, second, graph, screen, character <offset> character coordinates (p. 23) nooffset : xtics set xtics offset 0,graph 0.05 left, right, center autojustify set xtics ( ) autofreq 2
165 gnuplot <start>, <incr>, <end> <start> <end> <incr> <end> <incr> <start> <end> <start> - <end> + <incr> ( ) <start> <incr> ( rotate by <angle> offset <offset> ) gnuplot <start> <incr> 0-<start> 0-<incr> : set xtics border offset 0,0.5-5,1,5, set xtics border offset 0, ,1,5 set xtics offset 0,0.5 border -5,1,5 0,0.5 start, increment, end -5,1,5 set grid front, back, layerdefault x : 0, 0.5, 1, 1.5,..., 9.5, 10 set xtics 0,.5,10..., -10, -5, 0, 5, 10,... set xtics 5 1, 100, 1e4, 1e6, 1e8 set logscale x; set xtics 1,100,1e8 ("<label>" <pos> <level>,...) (pos) (label) "hello" "%3f clients" "" set format (p. 115) 3 " " (level) 0 1 : set xtics ("low" 0, "medium" 50, "high" 100) set xtics (1,2,4,8,16,32,64,128,256,512,1024) set ytics ("bottom" 0, "" 10, "top" 20) set ytics ("bottom" 0, "" 10 1, "top" 20) ( ) set xtics auto add : set xtics 0,.5,10 set xtics add ("Pi" )
166 166 gnuplot 4.6 x 0.5 ( ) set format set xtics (<label>) ( ) set mxtics set xtics ("" <pos> 1,...) Xtics time data timefmt <start>, <incr>, <end> <start> <end> timefmt <incr> set format : set xdata time set timefmt "%d/%m" set xtics format "%b %d" set xrange ["01/12":"06/12"] set xtics "01/12", , "05/12" set xdata time set timefmt "%d/%m" set xtics format "%b %d" set xrange ["01/12":"06/12"] set xtics ("01/12", "" "03/12", "05/12") "Dec 1", "Dec 3", "Dec 5", 2 "Dec 3" Xtics rangelimited "file.dat" 2 < y < 4 (y ) y ([0:10]) ([2:4]) ([2:4]) y ([0:10]) (range-frame) set border 3 set yrange [0:10] set ytics nomirror rangelimited plot "file.dat" Xyplane set xyplane 3D xy "set ticslevel" set xyplane at <zvalue> set xyplane relative <frac> set ticslevel <frac> show xyplane # set xyplane relative
167 gnuplot set xyplane relative <frac> xy Z <frac> xy z z set ticslevel xy z pos ticslevel (pos - zmin) / (zmin - zmax) z (zrange) set xyplane at <zvalue> z z xy x,y,z set xyplane at 0 set view (p. 159), set zeroaxis (p. 169) Xzeroaxis set xzeroaxis y = 0 set zeroaxis (p. 169) Y2data set y2data y2 ( ) ( ) set xdata (p. 160) Y2dtics set y2dtics y2 ( ) set xdtics (p. 161) Y2label set y2label y2 ( ) set xlabel (p. 161) Y2mtics set y2mtics y2 ( ) 1 set xmtics (p. 162) Y2range set y2range y2 ( ) set xrange (p. 162) Y2tics set y2tics y2 ( ) set xtics (p. 164) Y2zeroaxis set y2zeroaxis y2 ( ) (x2 = 0) set zeroaxis (p. 169) Ydata set ydata y ( ) set xdata (p. 160)
168 168 gnuplot 4.6 Ydtics set ydtics y set xdtics (p. 161) Ylabel y set xlabel (p. 161) Ymtics set ymtics y set xmtics (p. 162) Yrange set yrange y set xrange (p. 162) Ytics set ytics y ( ) set xtics (p. 164) Yzeroaxis set yzeroaxis x = 0 (y ) set zeroaxis (p. 169) Zdata set zdata z ( ) set xdata (p. 160) Zdtics set zdtics z set xdtics (p. 161) Zzeroaxis set zzeroaxis (x=0,y=0) 2D set view map splot set zeroaxis (p. 169), set xyplane (p. 166) Cbdata ( ) set xdata (p. 160) Cbdtics cbdtics set xdtics (p. 161)
169 gnuplot Zero zero 0.0 set zero <expression> show zero gnuplot ( ) zero ( ) gnuplot ( ) zero 1e-8 1e-3 (= ) zero zero 0.0 Zeroaxis x set xzeroaxis unset xzeroaxis y, x2, y2, z set {x x2 y y2 z}zeroaxis { {linestyle ls <line_style>} { linetype lt <line_type>} { linewidth lw <line_width>}} unset {x x2 y y2 z}zeroaxis show {x y z}zeroaxis 0 <line type> <line width> ( ) <line style> ( 0) set zeroaxis set xzeroaxis; set yzeroaxis z set zzeroaxis : y=0 set xzeroaxis set xzeroaxis linetype 3 linewidth 2.5 Zlabel z set xlabel (p. 161) Zmtics set zmtics z set xmtics (p. 162) Zrange set zrange z splot plot set xrange (p. 162)
170 170 gnuplot 4.6 Ztics set ztics z ( ) set xtics (p. 164) Cblabel set xlabel (p. 161) Cbmtics set cbmtics set xmtics (p. 162) Cbrange set cbrange with pm3d, with image with palette (palette) (cb- ) splot zrange splot... pm3d palette zrange cbrange set cbrange set xrange (p. 162) set palette (p. 140), set colorbox (p. 107) Cbtics set cbtics ( ) set xtics (p. 164) Shell shell gnuplot VMS logout Unix exit END-OF-FILE MS-DOS OS/2 exit 2 system! (VMS $) gnuplot gnuplot MS-DOS, OS/2! dir system "dir" gnuplot system system "date"; set time; plot "a.dat" print=1; if (print) replot; set out; system "lpr x.ps"
171 gnuplot Splot splot 3 ( 2 ) plot splot x, y, z plot 2 x2, y2 2 3 plot (p. 74) splot {<ranges>} {<iteration>} <function> "<datafile>" {datafile-modifiers}} {<title-spec>} {with <style>} {, {definitions{,}} <function>...} <function> 3 splot xy z xy set xyplane splot set view :set view (p. 159), set xyplane (p. 166) splot plot xrange, yrange, zrange urange, vrange, xrange, yrange, zrange title plot with plot splot lines, points, linespoints, dots, impulses plot splot datafile show plot (p. 136) (datafile) plot splot splot <file_name> {binary <binary list>} {{nonuniform} matrix} {index <index list>} {every <every list>} {using <using list>} "" "-" plot special-filenames (p. 84) binary matrix index every ( ) using index every plot using using 2 3 thru smooth plot splot cntrparam dgrid3d (x,y,z) 3 plot z y x 2 4 gnuplot pm3d plot 3 (x,y,z) fit splot 1 splot y- 1
172 172 gnuplot 4.6 gnuplot "grid data" (set contour) (set hidden3d) splot grid data (p. 174) 3 splot (parametric) Matrix gnuplot matrix ( ) 2 1 x, y matrix ASCII matrix splot file matrix using 1:2:3 # ASCII splot file binary general using 1:2:3 # matrix z z11 z12 z13 z14... z21 z22 z23 z24... z31 z32 z33 z34... ASCII (mesh) splot index 2 x, y y x 1 (ASCII ) matrix splot file nonuniform matrix using 1:2:3 # ASCII splot file binary matrix using 1:2:3 # matrix <N+1> <y0> <y1> <y2>... <yn> <x0> <z0,0> <z0,1> <z0,2>... <z0,n> <x1> <z1,0> <z1,1> <z1,2>... <z1,n> : : : :... : 3 <x0> <y0> <z0,0> <x0> <y1> <z0,1> <x0> <y2> <z0,2> : : : <x0> <yn> <z0,n> <x1> <y0> <z1,0> <x1> <y1> <z1,1> : : : 3 gnuplot gnuplot (C ) binary.c int fwrite_matrix(file,m,nrl,nrl,ncl,nch,row_title,column_title) bf test.c demo/binary.dem plot
173 gnuplot plot a.dat matrix plot a.dat matrix using 1:3 plot a.gpbin {matrix} binary using 1:3 using 2:3 using 1:2 ( ) every ASCII splot a.dat matrix using (1+$1):(1+$2*10):3 ASCII 3 plot a.dat matrix using 1:3 every 1:999:1:2 ( ) Gnuplot array, record, format, filetype general binary matrix general matrix ( : binary general (p. 75) ) 3 splot datafile.dat "datafile.dat" # The valley of the Gnu "datafile.dat" 4*3 ( 3 4 ) ( ) 1 x y (grid data) x y gnuplot
174 174 gnuplot 4.6 (grid data) 3 ( set isosamples (p. 120)) ( splot datafile (p. 171)) " " x, y u,v set isosamples (p. 120) gnuplot samples isosamples x- 1 y- " " " " " " set dgrid3d { } y- y- z x- y- splot set xrange [-pi/2:pi/2]; set yrange [-pi/2:pi/2] set style function lp set contour set isosamples 10,10; set samples 10,10; splot cos(x)*cos(y) set samples 4,10; replot set samples 10,4; replot Splot (splot surfaces) splot plot set isosamples (p. 120) set surface (p. 154) set hidden3d 3 set view splot ( set contour (p. 108)) ( set cntrparam (p. 105)) set isosamples set samples data-file ( set dgrid3d (p. 112)) plot plot Stats ( ) stats filename [using N[:M]] [name prefix ] [[no]output]] 1 2 using plot index, every, using plot (p. 74) xrange, yrange set xrange (p. 162) set print nooutput
175 gnuplot gnuplot 3 1 STATS_records # STATS_outofrange # STATS_invalid # / / STATS_blank # STATS_blocks # index 2 1 (1 x 2 y ) 2 1 stats " x", " y" STATS mix x 1 STATS min y 2 STATS_min # STATS_max # STATS_index_min # data[i] == STATS_min i STATS_index_max # data[i] == STATS_max i STATS_lo_quartile # ( ) STATS_median # ( ) STATS_up_quartile # ( ) STATS_mean # STATS_stddev # STATS_sum # STATS_sumsq # 3 2 STATS_correlation # x y STATS_slope # y = Ax + B A STATS_intercept # y = Ax + B B STATS_sumxy # (x*y ) STATS_pos_min_y # y x STATS_pos_max_y # y x 2 "STATS" name 2 2 stats "file1.dat" using 2 name "A" stats "file2.dat" using 2 name "B" if (A_mean < B_mean) {...} STATS index xxx plot 0 ($0) 0 N-1 N (N+1)/2 N N/2 (N+2)/2 stats stats.dem X Y System system "command" "command" shell (p. 170) system("command") gnuplot
176 176 gnuplot 4.6 f(x) = real(system(sprintf("somecommand %f", x))) Test test {terminal palette [rgb rbg grb gbr brg bgr]} test test terminal (terminal) test palette R(z),G(z),B(z) (0<=z<=1) (palette) RGB RGB NTSC r,g,b Undefine 1 * undefine : undefine foo foo1 foo2 if (!exists("foo")) load "initialize.gp" bar = 1; bar1 = 2; bar2 = 3 undefine bar* # 3 Unset set unset unset iteration (p. 72) : set xtics mirror rotate by -45 0,10, unset xtics # unset unset for [i=100:200] label i Terminal gnuplot GNUTERM gnuplot GNUTERM unset terminal set terminal GNUTERM
177 gnuplot Update (fit) (fit ) / update <filename> {<filename>} 2 2 gnuplot.old "update fred " "!rename fred fred.old; update fred.old fred " ["filename.ext" 12 MS-DOS "ext" "old" "filename" ( ) VMS ] fit (p. 64) While while (<expr>) { <commands> } <expr> 0 ( ) if/else if (p. 71) Part IV (Terminal) gnuplot set terminal (p. 155) gnuplot set terminal ( terminal ) Aed767 aed512 aed767 AED
178 178 gnuplot 4.6 Aifm Adobe Illustrator 3.0+ Adobe Illustrator 1 PostScript set terminal post level1 set terminal aifm {color monochrome} {"<fontname>"} {<fontsize>} Aqua Mac OS X AquaTerm.app set terminal aqua {<n>} {title "<wintitle>"} {size <x> <y>} {font "<fontname>{,<fontsize>}"} {{no}enhanced} {solid dashed} {dl <dashlength>}} <n> ( 0) <wintitle> ( "Figure <n>"), <x> <y> ( 846x594 pt = 11.75x8.25 ) <fontname> ( "Times-Roman") <fontsize> ( 14.0 pt) aqua (enhanced text mode; enhanced (p. 24)) set encoding iso latin 1, iso latin 2, cp1250 UTF8 (default) ( ) <dashlength> (>0) Be be X beos gnuplot DISPLAY TERM xterm -display set terminal be {reset} {<n>} set terminal be <n> n n>0 gplt <n> ( ) gnuplot q close reset ( -persist ) -persisit gnuplot gnuplot set linestyle be gnuplot ( ) geometry font, name X Toolkit X(1) ( ) be gnuplot gnuplot ".Xdefaults" gnuplot
179 gnuplot (command-line options) X Toolkit gnuplot ".Xdefaults" -mono -gray -clear -raise -noraise -persist ( ) ( ) gnuplot ".Xdefaults" : gnuplot*gray: on gnuplot points (-pointsize <v>) (gnuplot*pointsize: <v>) v (0 < v <= 10) -pointsize 2 2 -pointsize 0.5 (monochrome options) gnuplot (foreground) (background) -rv gnuplot*reversevideo: on (color resources) gnuplot ( ) (greyscale) BE rgb.txt 16 (BE ) (0 1 ) blue, 0.5 gnuplot*background: white gnuplot*textcolor: black gnuplot*bordercolor: black gnuplot*axiscolor: black gnuplot*line1color: red gnuplot*line2color: green gnuplot*line3color: blue gnuplot*line4color: magenta gnuplot*line5color: cyan gnuplot*line6color: sienna gnuplot*line7color: orange gnuplot*line8color: coral : gnuplot -background coral
180 180 gnuplot 4.6 (grayscale resources) -gray gnuplot ( ) gnuplot*background: black gnuplot*textgray: white gnuplot*bordergray: gray50 gnuplot*axisgray: gray50 gnuplot*line1gray: gray100 gnuplot*line2gray: gray60 gnuplot*line3gray: gray80 gnuplot*line4gray: gray40 gnuplot*line5gray: gray90 gnuplot*line6gray: gray50 gnuplot*line7gray: gray70 gnuplot*line8gray: gray30 (line resources) gnuplot ( ) ( ) gnuplot*borderwidth: 2 gnuplot*axiswidth: 0 gnuplot*line1width: 0 gnuplot*line2width: 0 gnuplot*line3width: 0 gnuplot*line4width: 0 gnuplot*line5width: 0 gnuplot*line6width: 0 gnuplot*line7width: 0 gnuplot*line8width: 0 gnuplot jk (j k 1 9 ) j k (grayscale) 0 ( ) axisdashes 16 gnuplot*borderdashes: 0 gnuplot*axisdashes: 16 gnuplot*line1dashes: 0 gnuplot*line2dashes: 42 gnuplot*line3dashes: 13 gnuplot*line4dashes: 44 gnuplot*line5dashes: 15 gnuplot*line6dashes: 4441 gnuplot*line7dashes: 42 gnuplot*line8dashes: 13
181 gnuplot Cairolatex cairolatex cairo pango EPS (Encapsulated PostScript) PDF epslatex LaTeX set terminal cairolatex {eps pdf} {standalone input} {blacktext colortext colourtext} {header <header> noheader} {mono color} {solid dashed} {{no}transparent} {{no}crop} {background <rgbcolor>} {font <font>} {fontscale <scale>} {linewidth <lw>} {rounded butt} {dashlength <dl>} {size <XX>{unit},<YY>{unit}} cairolatex epscairo (termnal epscairo) pdfcairo (terminal pdfcairo) LaTeX pdfcairo (p. 211) eps pdf latex/dvips eps pdflatex pdf blacktext cairolatex (a) { } LaTeX (b) [ (t,b,l,r,c 2 ) ]{ } LaTeX LR-box \rule{}{} pslatex (p. 219) \shortstack set ylabel [r]{\shortstack{first line \\ second line}} set label back back front 2 eps pdf LaTeX LaTeX set output eps/pdf (.tex ).eps.pdf LaTeX multiplot plot LaTeX \input{filename}.eps.pdf \includegraphics{...} LaTeX \usepackage{graphicx} ( colourtext) \usepackage{color} standalone LaTeX LaTeX LaTeX 12pt ", 12" standalone TeX \ifgpcolor \ifgpblacktext \ifgpcolor true \ifgpblacktext false TeX TeX \newif\ifgpblacktext \GPblacktexttrue
182 182 gnuplot 4.6 cairolatex set output TeX ( ",tex") standalone LaTeX LaTeX "-inc" standalone dvips, pdftex, VTeX TeX input LaTeX \input "" "default" LaTeX, 3 fontname,fontseries,fontshape fontshape fontseries {fontname}{,fontseries}{,fontshape} ( gnuplot {<fontname>}{,{<fontseries>}{,<fontshape>}} ) LaTeX (fontname) j x cmr Computer Modern Roman ptm Times-Roman, phv Helvetica font series m ("medium") bx b (bold) font shape n (upright) it (italic) sl (slanted) sc (small caps) series shapes : Times-Roman ( ) set terminal cairolatex font ptm,bx Helvetica, set terminal cairolatex font phv,bx,it set terminal cairolatex font,,sl set terminal cairolatex font,,sc "gnuplot.cfg" header standalone set terminal "size<size>.clo" LaTeX 10pt, 11pt, 12pt "extsizes" 8pt, 9pt, 14pt, 17pt, 20pt header LaTeX standalone \begin{document} input \begingroup : T1 Times-Roman sans-serif Helvetica set terminal cairolatex standalone header \ "\\usepackage[t1]{fontenc}\n\\usepackage{mathptmx}\n\\usepackage{helvet}" (bold) set terminal cairolatex input header "\\bfseries" LaTeX "gnuplot.cfg" standalone ("mathptmx.sty" ) Times-Roman, Helvetica, Courier
183 gnuplot \usepackage{mathptmx} \usepackage[scaled=0.92]{helvet} \usepackage{courier} "gnuplot.cfg" header "gnuplot.cfg" header Canvas canvas HTML5 canvas javascript set terminal canvas {size <xsize>, <ysize>} {background <rgb_color>} {font {<fontname>}{,<fontsize>}} {fsize <fontsize>} {{no}enhanced} {linewidth <lw>} {rounded butt} {solid dashed {dashlength <dl>}} {standalone {mousing} name <funcname> } {jsdir URL/for/javascripts } {title <some string> } <xsize> <ysize> standalone 600x : canvastext.js Hershey simplex Roman canvasmath.js UTF-8 Hershey simplex Greek math symbols font "name,size" name standalone HTML 5 canvas javascript HTML HTML 2 javascript canvastext.js gnuplot common.js gnuplot dashedlines.js Unix /usr/local/share/gnuplot/<version>/js jsdir URL canvas mousing standalone canvastext.js URL gnuplot mouse.js javascript gnuplot mouse.css name javascript javascript canvas id set term canvas name fishplot set output fishplot.js javascript fishplot() id=fishplot canvas javascript HTML canvastext.js fishplot HTML <html> <head> <script src="canvastext.js"></script> <script src="gnuplot_common.js"></script> </head> <body onload="fishplot();"> <script src="fishplot.js"></script> <canvas id="fishplot" width=600 height=400> <div id="err_msg">no support for HTML 5 canvas element</div>
184 184 gnuplot 4.6 </canvas> </body> </html> fishplot plot 1, fishplot plot 2 javascript gnuplot.toggle visibility("fishplot plot 2") Cgi cgi hcgi SCO CGI hcgi CGIPRNT cgi CGIDISP CGIPRNT Cgm cgm CGM (Computer Graphics Metafile Version 1) ANSI X "Computer Graphics - Metafile for the Storage and Transfer of Picture Description Information" set terminal cgm {color monochrome} {solid dashed} {{no}rotate} {<mode>} {width <plot_width>} {linewidth <line_width>} {font "<fontname>,<fontsize>"} {background <rgb_color>} [deprecated] {<color0> <color1> <color2>...} solid ; <mode> landscape, portrait, default ; <plot width> ; <line width> ( 1); <fontname> ( ); <fontsize> ( 12) 6 default set term background set linetype xrrggbb x x rrggbb 16 : set terminal cgm landscape color rotate dashed width 432 \ linewidth 1 Helvetica Bold 12 # set terminal cgm linewidth 2 14 # set terminal cgm portrait "Times Italic" 12 set terminal cgm color solid #! CGM (font) CGM (Computer Graphics Metafile) (font table) 35 Helvetica, Times, Courier italic oblique 6 (Microsoft Office Corel Draw CGM import italic oblique )
185 gnuplot CGM fonts Helvetica Hershey/Cartographic Roman Helvetica Bold Hershey/Cartographic Greek Helvetica Oblique Hershey/Simplex Roman Helvetica Bold Oblique Hershey/Simplex Greek Times Roman Hershey/Simplex Script Times Bold Hershey/Complex Roman Times Italic Hershey/Complex Greek Times Bold Italic Hershey/Complex Italic Courier Hershey/Complex Cyrillic Courier Bold Hershey/Duplex Roman Courier Oblique Hershey/Triplex Roman Courier Bold Oblique Hershey/Triplex Italic Symbol Hershey/Gothic German ZapfDingbats Hershey/Gothic English Script Hershey/Gothic Italian 15 Hershey/Symbol Set 1 Hershey/Symbol Set 2 Hershey/Symbol Math 13 WebCGM Microsoft Office CGM import 13 ZapfDingbats Script (script) 15 Microsoft import font C:\Program Files\Microsoft Office\Office\Cgmimp32.hlp C:\Program Files\Common Files\Microsoft Shared\Grphflt\Cgmimp32.cfg set term CGM (gnuplot MIL-D-28003A ) set term : set terminal cgm Old English set terminal cgm Tengwar set terminal cgm Arabic set output myfile.cgm plot... set output set label CGM (fontsize) 6 size CGM width Cgm linewidth linewidth (pt) 1 pt fontsize width
186 186 gnuplot 4.6 Cgm rotate norotate Word for Windows 6.0c CGM Word DRAW ( ) Y norotate Y rotate Cgm solid solid dashed CGM (size) CGM (landscape) 32599, (portrait) 23457, Cgm width CGM 6 (15.24 cm) width width ( PostScript 1/72 TeX "big point" ) gnuplot : set terminal cgm width 432 set terminal cgm width 6*72 set terminal cgm width 10/2.54*72 # # # 10 cm Cgm nofontlist (font table) WebCGM Microsoft Office Corel Draw CGM (Computer Graphics Metafile) nofontlist (winword6 ) CGM gnuplot Helvetica 1 Helvetica Bold 2 Context ConTeXt ( ) Metapost PDF TeX Metafun ConTeXt + gnuplot Using ConTeXt ConTeXt gnuplot context
187 gnuplot set term context {default} {defaultsize size <scale> size <xsize>{in cm}, <ysize>{in cm}} {input standalone} {timestamp notimestamp} {noheader header "<header>"} {color colour monochrome} {rounded mitered beveled} {round butt squared} {dashed solid} {dashlength dl <dl>} {linewidth lw <lw>} {fontscale <fontscale>} {mppoints texpoints} {inlineimages externalimages} {defaultfont font "{<fontname>}{,<fontsize>}"} standalone (input) size <fontscale> fontscasle font.tex 12pt gnuplot default defaultsize 5in x 3in size <scale> <scale>, 2 2 ( in ), ( cm ) input ( ) ConTeXt standalone header standalone / / header noheader notimestamp ( ) color ( ) monochrome special rounded ( ) mitered, beveled round (default) butt, squared PostScript PDF rounded round ( gnuplot ) dashed ( ) solid dashlength ( dl) <dl> linewidth ( lw) <lw> (lw 1 0.5bp Metapost ) fontscale <fontscale> mppoints Metapost texpoints ConTeXt \defineconversion[my own points][+,{\ss x},\mathematics{\circ}] \setupgnuplotterminal[context][points=tex,pointset=my own points] inlineimages ConTeXt MKIV externalimages PNG ConTeXt MKII gnuplot PNG standalone font standalone (input)
188 188 gnuplot 4.6 set term context font "myfont,ss,10" \setupbodyfont[myfont,ss,10pt] fontscale 0.8 8pt set label... font "myfont,12" 9.6pt ( ) ConTeXt MKII (pdftex) set terminal context standalone header \usetypescript[iwona][ec] \ font "iwona,ss,11" ConTeXt ConTeXt wiki ( ) : set terminal context size 10cm, 5cm set terminal context size 4in, 3in # 10cm, 5cm # 4in, 3in UTF-8 standalone ( ) set terminal context standalone header \enableregime[utf-8] Requirements ConTeXt gnuplot ConTeXt gnuplot write18 TeX texmf.cnf shell escape=t Calling gnuplot from ConTeXt ConTeXt \usemodule[gnuplot] \starttext \title{how to draw nice plots with {\sc gnuplot}?} \startgnuplotscript[sin] set format y "%.1f" plot sin(x) t $\sin(x)$ \stopgnuplotscript \usegnuplotgraphic[sin] \stoptext gnuplot Corel corel CorelDraw set terminal corel { default {monochrome color {"<font>" {<fontsize> {<xsize> <ysize> {<linewidth> }}}}}
189 gnuplot (fontsize) (linewidth) (xsize) (ysize) monochrome, "SwitzerlandLight", 22, 8.2, 10, 1.2 Debug gnuplot Dumb (dumb) ASCII set terminal dumb {size <xchars>,<ychars>} {[no]feed} {[no]enhanced} <xchars>, <ychars> 79 x 24 feed : set term dumb size 60,15 plot [-5:6.5] sin(x) with impulse sin(x) Dxf dxf AutoCad ( 10.x) AutoCad 120x80 set size dxf 7 ( ) AutoCad / Dxy800a Roland DXY800A Eepic eepic LaTeX picture latex
190 190 gnuplot 4.6 LaTeX "eepic.sty" "eepic.sty" "epic.sty" "tpic" \special "tpic" \special "eepicemu.sty" dvips dvipdfm "tpic" \special set terminal eepic {default} {color dashed} {rotate} {size XX,YY} {small tiny <fontsize>} color gnuplot \color{...} latex \usepackage{color} dashed dashed color color dashed rotate (90 ) 1 1 \usepackage{graphicx} small point \scriptsize ( TeX LaTeX2e ) tiny \scriptscriptstyle default color dashed line ( ) <fontsize> picture pt ( ) 10 pt 3.5 mm \footnotesize # ( (La)TeX ) \\ ( 2 ) ( tpic specials eepic.sty dvips/dvipdfm ) eepic 5x3 teminal size (point) LaTeX "\Diamond", "\Box" LaTeX2e latexsym LaTeX latexsym amssymb LaTeX { } [ (t,b,l,r 2 ) ]{ } LaTeX LR-box \rule{}{} : set term eepic picture eepic LaTeX \input set term eepic color tiny rotate 8 eepic \color point \scripscriptsize 8pt gnuplot ( ): set title \LaTeX\ -- $ \gamma $ set label {\LaTeX\ -- $ \gamma $} at 0,0 ( ): set xlabel [t]{\latex\ -- $ \gamma $} set ylabel [r]{\latex\ -- $ \gamma $\rule{7mm}{0pt}}
191 gnuplot Emf emf EMF (Enhanced Metafile Format) MS-Windows set terminal emf {color monochrome} {solid dashed} {enhanced {noproportional}} {rounded butt} {linewidth <LW>} {dashlength <DL>} {size XX,YY} {background <rgb_color>} {font "<fontname>{,<fontsize>}"} {fontscale <scale>} monochorome color 8 solid linewidth <factor> dashlength <factor> <fontname> <fontsize> ( ) 1024x768 size (enhanced text mode) noproportional color solid font "Arial,12" size 1024,768 default : set terminal emf Times Roman Italic, 12 set terminal emf dashed # Emxvga emxvga, emxvesa, vgal SVGA, vesa SVGA, VGA PC DOS OS/2 "emx-gcc" VESA SVGAKIT Johannes Martin ([email protected]) David J. Liu ([email protected]) set terminal emxvga set terminal emxvesa {vesa-mode} set terminal vgal emxvesa vesa G640x480x256 Epscairo epscairo cairo, pango EPS (Encapsulated PostScript) cairo version 1.6 pdfcairo Epslatex epslatex LaTeX
192 192 gnuplot 4.6 set terminal epslatex set terminal epslatex {default} {standalone input} {oldstyle newstyle} {level1 leveldefault} {color colour monochrome} {background <rgbcolor> nobackground} {solid dashed} {dashlength dl <DL>} {linewidth lw <LW>} {rounded butt} {clip noclip} {palfuncparam <samples>{,<maxdeviation>}} {size <XX>{unit},<YY>{unit}} {header <header> noheader} {blacktext colortext colourtext} {{font} "fontname{,fontsize}" {<fontsize>}} {fontscale <scale>} epslatex PostScript LaTeX terminal postscript eps postscript terminal version postscript epslatex 5 x 3 5 x % 60% Postscript oldstyle ( (tics) set tics scale (arrow) postscript ) "Can t find PostScript prologue file... " postscript prologue (p. 218) color monochrome monochrome palette colorspec solid dashlength dl <DL> (0 ) linewidth lw <LW> PostScript filledcurves PostScript Level 2 PostScript Level 2 PostScript Level 1 PostScript Level 1 level1 PostScript Level1 PostScript Level 2 Adobe Illustrator level1 PostScript PostScript Level 1 ON/OFF level 2 PostScript level 2 PostScript rounded butt clip PostScript BoundingBox (PostScript ) ; noclip palfuncparam set palette functions (set palatte functions ) postscript <samples> <maxdeviation> <samples> =2000 <maxdeviation>=0.003 PostScript 10 x 7 EPS 5 x 3.5 size X Y
193 gnuplot ( cm ) BoundingBox (PostScript ) size set size BoundingBox blacktext epslatex (a) { } LaTeX (b) [ (t,b,l,r,c 2 ) ]{ } LaTeX LR-box \rule{}{} pslatex (p. 219) \shortstack set ylabel [r]{\shortstack{first line \\ second line}} set label back front back 2 1 eps LaTeX LaTeX set output eps (.tex).eps LaTeX! multiplot LaTeX \input{filename}.eps \includegraphics{...} LaTeX \usepackage{graphicx} textcolour LaTeX \usepackage{color} eps epstopdf pdf graphics LaTeX pdflatex eps pdf standalone include LaTeX LaTeX LaTeX 12pt "" 12 standalone TeX Bool \ifgpcolor \ifgpblacktext \ifgpcolor true \ifgpblacktext false TeX TeX \newif\ifgpblacktext \GPblacktexttrue epslatex set output TeX ( ".tex") eps ".eps" standalone LaTeX LaTeX eps "-inc" standalone dvips, pdftex, VTeX TeX input \input LaTeX "" "default" LaTeX fontname,fontseries,fontshape 3
194 194 gnuplot 4.6 [fontname][,fontseries][,fontshape] LaTeX fontname j x expert cmr Computer Modern Roman ptm Times-Roman, phv Helvetica m ("medium") bx b (bold) n (upright) it sl (slanted) sc (small caps) : Times-Roman ( ) set terminal epslatex ptm,bx Helvetica set terminal epslatex phv,bx,it set terminal epslatex,,sl (small caps) set terminal epslatex,,sc "gnuplot.cfg" header standalone set terminal LaTeX "size<size>.clo" 10pt, 11pt, 12pt "extsizes" 8pt, 9pt, 14pt, 17pt, 20pt header LaTeX standalone \begin{document} input \begingroup : T1 Times-Roman Helvetica set terminal epslatex standalone header \ "\\usepackage[t1]{fontenc}\n\\usepackage{mathptmx}\n\\usepackage{helvet}" (boldface) set terminal epslatex input header "\\bfseries" "gnuplot.cfg" LaTeX standalone LaTeX TImes-Roman, Helvetica, Courier ("mathptmx.sty" ) \usepackage{mathptmx} \usepackage[scaled=0.92]{helvet} \usepackage{courier} "gnuplot.cfg" header "gnuplot.cfg" header
195 gnuplot Epson 180dpi epson 180dpi epson 60dpi 180dpi ( / ), 60dpi Epson LQ 24 epson lx800 Epson LX-800, Star NL-10 NX-1000, PROPRINTER 9 nec cp6 NEC CP6 Epson LQ okidata 9 OKIDATA 320/321 starc Star tandy 60dpi 9 60dpi Tandy DMP-130 dpu414 Seiko DPU-414 nec cp6 set terminal nec_cp6 {monochrome colour draft} (monochrome) dpu414 set terminal dpu414 {small medium large} {normal draft} medium (= ) normal medium normal small draft Excl excl EXCL 1590 Talaris Fig fig Fig set terminal fig {monochrome color} {landscape portrait} {small big size <xsize> <ysize>} {metric inches} {pointsmax <max_points>} {solid dashed} {font "<fontname>{,<fontsize>}"} {textnormal {textspecial texthidden textrigid}} {{thickness linewidth} <units>} {depth <layer>} {version <number>} monochrome color color small big landscape 5x3 8x5 portrait 3x5 5x8 size <xsize>*<ysize> ( ) inches metric "xfig" pointsmax <max points>
196 196 gnuplot 4.6 solid (solid) linestyle font <fontname> <fontsize> textnormal postscript textspecial LaTeX special texthidden, textrigid depth (depth layer) 10 "xfig" version fig thickness 1 plot linetype 100 ( ) <linetype> 1000 <layer>+<linetype>/1000 (<linetype>%1000) /100 0 linewidth thickness plot point fig (pointtype ) % <pointtype> % 5 (<pointtype> % 10 < 5 ) 50-59: 60-69: 70-79: 80-89: 90-99: 1 <pointtype> 1000 <layer> +<pointtype>/ <pointtype>% (<pointtype>%1000)/100-1 (1 9) ( ) <linetype> <pointtype> plot with (p. 93) big bfig : set terminal fig monochrome small pointsmax 1000 plot file.dat with points linetype 102 pointtype 759 # 1 plot file.dat using 1:2:3 with err linetype 1 pointtype ( 9) plot file.dat using 1:2:3 with err linetype 1 pointtype 2554 Ggi ggi X svgalib set terminal ggi [acceleration <integer>] [[mode] {mode}]
197 gnuplot X mode - V1024x768 - V800x600 - V640x480 - V320x200 ggi (libggi) mode libggi X DGA bash> export GGI_DISPLAY=DGA csh> setenv GGI_DISPLAY DGA acceleration ( DGA) ( ) acceleration 7 : set term ggi acc 10 set term ggi acc 1 mode V1024x768 set term ggi V1024x768 Gif set terminal gif {{no}enhanced} {{no}transparent} {rounded butt} {linewidth <lw>} {dashlength <dl>} {tiny small medium large giant} {font "<face> {,<pointsize>}"} {fontscale <scale>} {size <x>,<y>} {{no}crop} {animate {delay <d>} {loop <n>} {{no}optimize}} {background <rgb_color>} PNG, JPEG, GIF libgd GIF ImageMagick display set term gif set output display gif:- display <space> display save transparent (transparent) notransparent linewidth dashlength butt 1 rounded ( ) set term gif font arial 11 set term gif font "arial,11" fonts animate gd gif 1/100 ( 5)
198 198 gnuplot set output set term optimize 2 1) 2) nooptimize ( ) gnuplot nooptimize <x,y> 640x480 canvas (p. 22), set size (p. 147) crop nocrop set terminal gif medium size 640,480 background #ffffff medium (16 24bit RGB) set terminal gif font arial 14 enhanced arial 14pt fonts (p. 32) set term gif animate transparent opt delay 10 size 200,200 load "animate2.dem" GIF gif animate2.dem Gpic gpic FSF (the Free Software Foundations) "groff" GPIC 5 x 3 (0,0) set terminal gpic {<x> <y>} x y groff -p -mpic -Tps file.pic > file.ps pic eqn set label set {x/y}label set 0 int from 0 to x alpha ( t ) roman d t@ y gpic filename.pic geqn -d@@ -Tps groff -m[macro-package] -Tps > filename.ps
199 gnuplot pic gnuplot pic x+gnuplotx, y+gnuploty x, y 0 x,y 0 ( 5.0x3.0 ):.PS 8.0 x=0;y=3 copy "figa.pic" x=5;y=3 copy "figb.pic" x=0;y=0 copy "figc.pic" x=5;y=0 copy "figd.pic".pe set terminal gpic x y.ps 6.0 copy "trig.pic".pe Grass grass GRASS gnuplot [email protected] GRASS Hp2623a hp2623a (Hewlett Packard) HP2623A Hp2648 hp2648 (Hewlett Packard) HP2647 HP2648 Hp500c hp500c (Hewlett Packard) HP DeskJet 500c set terminal hp500c {<res>} {<comp>} res 75, 100, 150, 300 (DPI; dots per inch) comp "rle" "tiff" 75 dpi
200 200 gnuplot 4.6 Hpgl hpgl HP7475A HPGL 2 eject "eject" 6 ISO CP850 set encoding iso set encoding cp850 ( set encoding (p. 113)) set terminal hpgl {<number_of_pens>} {eject} set terminal hpgl 8 eject hp7550 set terminal hpgl 4 hp7580b pcl5 Hewlett-Packard Designjet 750C Hewlett-Packard Laserjet III, Hewlett-Packard Laserjet IV HPGL-2 set terminal pcl5 {mode <mode>} {<plotsize>} {{color {<number_of_pens>}} monochrome} {solid dashed} {font <font>} {size <fontsize>} {pspoints nopspoints} <mode> landscape portrait <plotsize> letter (8 1/2" X 11") legal (8 1/2" X 14") noextended (36" X 48") (letter ) extended (36" X 55") ( legal ) color ( ) <number of pens> ( ) monochrome 1 ( ) solid dashed <font> stick, univers, cg times, zapf dingbats, antique olive, arial, courier, garamond antigua, letter gothic, cg omega, albertus, times new roman, clarendon, coronet, marigold, truetype symbols, wingdings <fontsize> (point type) nopspoints pspoints postscript terminal HP Laserjet IV HP Laserjet III Designjet 750C 2,3 ( univers, stick) laserjet landscape, noextended, color (6 pens), solid, univers, 12 point, nopspoints pcl5 8-bit set encoding HPGL Hpljii hpljii HP Laserjet Sries II hpdj HP DeskJet 500
201 gnuplot set terminal hpljii hpdj {<res>} res 75, 100, 150, 300 (DPI; dots per inch) 75 hp500c hpdj hp500c Hppj hppj HP PaintJet HP3630 set terminal hppj {FNT5X9 FNT9X17 FNT13X25} (FNT9X17) Imagen imagen Imagen 1 set terminal imagen {<fontsize>} {portrait landscape} {[<horiz>,<vert>]} fontsize 12 landscape <horiz> <vert> 1 : set terminal imagen portrait [2,3] (portrait) Jpeg set terminal jpeg {{no}enhanced} {{no}interlace} {linewidth <lw>} {dashlength <dl>} {rounded butt} {tiny small medium large giant} {font "<face> {,<pointsize>}"} {fontscale <scale>} {size <x>,<y>} {{no}crop} {background <rgb_color>} PNG, JPEG, GIF libgd PNG GIF JPEG gnuplot interlace JPEG nointerlace linewidth dashlength butt 1 rounded ( )
202 202 gnuplot 4.6 set term jpeg font arial 11 set term jpeg font "arial,11" fonts <x,y> 640x480 canvas (p. 22), set size (p. 147) crop nocrop Kyo kyo prescribe Kyocera ( ) kyo "Helvetica" prescribe "Courier" Latex set terminal {latex emtex} {default {courier roman} {<fontsize>}} {size <XX>{unit}, <YY>{unit}} {rotate norotate} Courier (cmtt) Roman (cmr) DVI ( dvips) 10, 11, 12 METAFONT METAFONT LaTeX { } [ (t,b,l,r 2 ) ]{ } LaTeX LR-box \rule{}{} (point) LaTeX "\Diamond" "\Box" LaTeX2e latexsym LaTeX amssymb 5 inch 3 inch size X Y inch ( cm ) rotate y (graphics graphicx ) y : gnuplot ( ): set title \LaTeX\ -- $ \gamma $ set label {\LaTeX\ -- $ \gamma $} at 0,0 ( ): set xlabel [t]{\latex\ -- $ \gamma $} set ylabel [r]{\latex\ -- $ \gamma $\rule{7mm}{0pt}}
203 gnuplot Linux linux GSVG- AMODE 1024x768x x480x16 ( VGA) Lua lua Lua TikZ -> pdflatex Lua set terminal lua <target name> "<file name>" {<script_args>...} {help} target name file name target name "gnuplot-<target name>.lua" GNUPLOT LUA DIR set term lua tikz help Lua tikz TikZ Lua set terminal lua tikz {latex tex context} {color monochrome} {dashed solid} {nooriginreset originreset} {nogparrows gparrows} {nogppoints gppoints} {picenvironment nopicenvironment} {noclip clip} {notightboundingbox tightboundingbox} {background "<colorpec>"} {size <x>{unit},<y>{unit}} {scale <x>,<y>} {plotsize <x>{unit},<y>{unit}} {charsize <x>{unit},<y>{unit}} {font "<fontdesc>"} {{fontscale textscale} <scale>} {nofulldoc nostandalone fulldoc standalone} {{preamble header} "<preamble_string>"} {tikzplot <ltn>,...} {notikzarrows tikzarrows} {rgbimages cmykimages} {noexternalimages externalimages} {bitmap nobitmap} {providevars <var name>,...} {createstyle} {help}
204 204 gnuplot 4.6 cm cm, mm, in inch, pt, pc, bp, dd, cc ( in (1in=2.54cm), pt (72.27pt=1in), pc (1pc=12pt), bp (72bp=1in), dd Didot (26.6dd=1cm), cc Cicero (1cc=12dd)) monochrome solid originreset TikZ tikzpicture multiplot pm3d gparrows TikZ (arrow) gnuplot (arrow) gppoints TikZ gnuplot nopicenvironment tikzpicture PGF/TikZ clip noclip plotsize tightboundingbox tightboundingbox clip tikz background <colorspec> <colorspec> # 16 3 RGB ( #ff0000 ) size 2 <x>, <y> 12.5cm x 8.75cm scale size <x>, <y> plotsize gnuplot originreset multiplot pm3d margin 0 noclip charsize TeX fontscale, textscale tex, latex, context TeX LaTeX \input gnuplot-lua-tikz.tex % (plain TeX ) \usepackage{gnuplot-lua-tikz} % (LaTeX ) \usemodule[gnuplot-lua-tikz] % (ConTeXt ) createstyle TeX/LaTeX/ConTeXt fulldoc standalone LaTeX preamble header standalone LaTeX tikzplot \path \path plot (linetype) (<ltn>,...) 1 smooth tikzarrows gnuplot (arrow) TikZ
205 gnuplot TikZ gp arrow 7 TikZ gnuplot gparrows cmykimages RGB CMYK ( ) xcolors externalimages PNG DVI PostScript PNG EPS ImageMagick convert PNG nobitmap PS, PDF providevars gnuplot TeX \gpgetvar{<var name>} show variables all <fontdesc> \small TeX/LaTeX/ConTeXt "font=<fontdesc>" \small,yshift=1ex,yshift=1ex 2 < >{ } 1 pt \sffamily,12,fill=red 12pt LaTeX sans serif ConTeXt \switchtobodyfont[iwona],10 10pt Iwona Plain TeX 2 \n Macintosh set terminal macintosh {singlewin multiwin} {vertical novertical} {size <width>, <height> default} singlewin multiwin vertical gx novertical size <width>, <height> preferences dialog set term mac size default set term mac default set term mac size default preferences dialog set term mac default nogx, multiwin, novertical multiwin singlewin plot singlewin multiwin singlewin singlewin singlewin singlewin
206 206 gnuplot 4.6 Mf mf METAFONT TeX gnuplot METAFONT METAFONT METAFONT Computer Modern Roman METAFONT METAFONT ( ) METAFONT ( PC) mf METAFONT - (terminal) METAFONT set terminal mf - set output "myfigures.mf" - 5x3 set size 0.5,0.5 - gnuplot - gnuplot METAFONT TFM GF (5x3 ) memmax METAFONT Unix bigmf virmf big METAFONT - METAFONT virmf &plain - METAFONT ( * ) \mode:=canoncx; % - (magnification) ( ): mag:=1; % - gnuplot input myfigures.mf Unix virmf &plain "mf" virmf &plain mf mfput.tfm mfput.$$$gf ($$$ ) 2 virmf &plain \mode:=canoncx; mag:=1; input myfigures.mf myfigures.tfm myfigures.300gf - gftopk GF PK gftopk myfigures.300gf myfigures.300pk gftopk DVI TeX TFM PK TEXFONTS DVI (...) TeX (TFM) DVI PK - TeX
207 gnuplot \font\gnufigs=myfigures plain TeX \centerline{\gnufigs\char0} \centerline{\gnufigs\char1} LaTeX picture \makebox \put TeX TeX METAFONT DVI eepic tpic \special Mif mif Frame Maker MIF (version 3.00) 15*10 cm MIF MIF gnuplot 1 MIF MIF MIF MIF "Times" MIF 3.00 set terminal mif {color colour monochrome} {polyline vectors} {help?} colour (line type) >= 0 (MIF separation 2 7) monochrome (MIF separation 0) polyline vectors help? help : set term mif colour polylines set term mif set term mif vectors set term mif help # # Mp mp Metapost Metapost EPS Metapost TeX TeX set term mp {color colour monochrome} {solid dashed} {notex tex latex} {magnification <magsize>} {psnfss psnfss-version7 nopsnfss} {prologues <value>} {a4paper} {amstex} {"<fontname> {,<fontsize>}"}
208 208 gnuplot 4.6 color ( ) monochrome ( ) solid dashed ( ) solid color notex TeX TeX TeX $ % tex TeX latex LaTeX TeX LaTeX \frac TEX LaTeX ( latex) mpost tex=<latex >... metapost TeX TeX (magnification factor) magnification ( ) 10pt MP mag notex ( ) psnfss postscript LaTeX LaTeX latex LaTeX inputenc(latin1), fontenc(t1), mathptmx, helvet(scaled=09.2), courier, latexsym, textcomp psnfss-version7 postscript LaTeX (latex ) LaTeX inputenc(latin1), fontenc(t1), times, mathptmx, helvet, courier nopsnfss ( cmr10) prologues metapost prologues:=< > 2 metapost eps postscript ghostscript metapost TeX (La)TeX noprologues prologue a4paper [a4paper] documentclass letter ( ) LaTeX latex amstex latex LaTeX amsfonts, amsmath(intlimits) set label set title TeX (TFM ) notex "cmr10" "pcrr8r" (Courier) notex Metapost TFM pcrr8r.tfm LaTeX psnfss Courier notex ASCII cmtt10 32 ( ) magstep TeX ( ) set term mp "cmtt12" cmtt12 10 cmtt10
209 gnuplot ascii TeX $, &, #, %, _;, <, >; ^, ~, \, {, } $, #, &,, % 5 \$ <, >, 3 $<$ TeX TeX TeX (2 ) \n gnuplot 3.7 plot TeX Metapost TeX Metapost TeX LaTeX graphics epsf.tex plaintex dvips ( dvi ps ) PostScript Metapost PostScript Metapost - terminal Metapost set terminal mp mono "cmtt12" 12 - set output "figure.mp" - plot ( multiplot ) Metapost beginfig...endfig 5x3 set size 0.5,0.5 - gnuplot - gnuplot Metapost EPS mpost figure.mp OR mp figure.mp Metapost Unix mpost mp Metapost 1 EPS - LaTeX graphics plaintex epsf.tex \usepackage{graphics} % LaTeX \input epsf.tex % plaintex TeX DVI PS dvips DVI LaTeX \DeclareGraphicsRule{*}{eps}{*}{} figure.0, 2 figure.1 3 \includegraphics{figure.2} % LaTeX \epsfbox{figure.2} % plaintex mp postscript Metapost lt[] col[] / / dashedlines colorlines tex vebatimtex...etex LaTeX LaTeX Metapost plaintex LaTeX MP
210 210 gnuplot 4.6 Next next set terminal next {<mode>} {<type> } {<color>} {<dashed>} {"<fontname>"} {<fontsize>} title {"<newtitle>"} <mode> default <type> new old old <color> color ( ) monochrome ( ) <dashed> solid ( ) dashed ( ) "<fontname>" PostScript <fontsize> PostScript <title> GnuTerm new, monochrome, dashed, "Helvetica", 14pt : set term next default set term next 22 set term next color "Times-Roman" 14 set term next color "Helvetica" 12 title "MyPlot" set term next old set linestyle Openstep (next) openstep (next) set terminal openstep {<mode>} {<type> } {<color>} {<dashed>} {"<fontname>"} {<fontsize>} title {"<newtitle>"} <mode> default <type> new old old <color> color ( ) monochrome ( ) <dashed> solid ( ) dashed ( ) "<fontname>" PostScript <fontsize> PostScript <title> GnuTerm new, monochrome, dashed, "Helvetica", 14pt : set term openstep default set term openstep 22 set term openstep color "Times-Roman" 14 set term openstep color "Helvetica" 12 title "MyPlot" set term openstep old set linestyle Pbm set terminal pbm {<fontsize>} {<mode>} {size <x>,<y>} <fontsize> small medium large <mode> monochrome gray color x y 8 pbm <mode> monochrome portable bitmap (PBM; 1 1 ) gray portable graymap (PGM; 1 3 bit) color portable pixmap (PPM; 1 4 )
211 gnuplot NETPBM Jef Poskanzer PBMPLUS NETPBM PBM GIF, TIFF, MacPaint, Macintosh PICT, PCX, X11 : set terminal pbm small monochrome # set terminal pbm color medium size 800,600 set output pnmrotate 45 pnmtopng > tilted.png # NETPBM Pdf Adobe PDF (Portable Document Format) Acrobat Reader set terminal pdf {monochrome color colour} {{no}enhanced} {fname "<font>"} {fsize <fontsize>} {font "<fontname>{,<fontsize>}"} {fontscale <scale>} {linewidth <lw>} {rounded butt} {solid dashed} {dl <dashlength>}} {size <XX>{unit},<YY>{unit}} monochrome dashed <font> ( Helvetica) <fontsize> ( 12) pdflib enhanced ( ) enhanced (p. 24) linewidth <n> dashlength rounded butt PDF 5inch x 3inch size X, Y ( cm ) Pdfcairo pdfcairo PDF 2D cairo pango set term pdfcairo {{no}enhanced} {mono color} {solid dashed} {background <rgbcolor> {font <font>} {fontscale <scale>} {linewidth <lw>} {rounded butt} {dashlength <dl>} {size <XX>{unit},<YY>{unit}} (enhanced text mode) ( ) gnuplot enhanced (p. 24)
212 212 gnuplot 4.6 linewidth <lw> 0.25 (1 "PostScript" = 1/72 = mm) rounded butt PDF 5inch x 3inch size X, Y ( cm ) size <font> "FontFace,FontSize" FontFace Arial pdfcairo Sans FontSize pdfcairo 12 fontscale 0.5 PDF : set term pdfcairo font "Arial,12" set term pdfcairo font "Arial" # set term pdfcairo font ",12" # set term pdfcairo font "" # Windows " " UNIX "fontconfig" Pango utf-8 pdfcairo utf-8 locale gnuplot encoding (p. 113) pango unicode Symbol pdfcairo unicode "the Symbol font" Acrobat Reader "SY.PFB" Adobe Symbol OpenOffice.org "opens.ttf" OpenSymbol Microsoft Symbol ("symbol.ttf") ( enhancedtext.dem ) Adobe OpenOffice Symbol Microsoft Symbol "windings" 2 gnuplot ( plot x ) Pm pm OS/2 multiplot set terminal pm {server {n}} {persist} {widelines} {enhanced} {"title"} persist gnuplot server gnuplot
213 gnuplot widelines enhanced ( enhanced text (p. 24)) PostScript 1 (T/H/C/S Times/Helvetica/Courier/Symbol ) title set linestyle Png set terminal png {{no}enhanced} {{no}transparent} {{no}interlace} {{no}truecolor} {rounded butt} {linewidth <lw>} {dashlength <dl>} {tiny small medium large giant} {font "<face> {,<pointsize>}"} {fontscale <scale>} {size <x>,<y>} {{no}crop} {background <rgb_color>} PNG, JPEG, GIF libgd PNG ImageMagick display set term png set output display png:- display <space> display save transparent (transparent) notransparent interlace GIF nointerlace linewidth dashlength PNG 256 truecolor 24 / TrueColor (transparent fill) truecolor fillstyle (p. 150) TrueColor butt 1 rounded ( ) set term png font arial 11 set term png font "arial,11" fonts <x,y> 640x480 canvas (p. 22), set size (p. 147) crop nocrop set terminal png medium size 640,480 background #ffffff medium (16 24bit RGB)
214 214 gnuplot 4.6 set terminal png font arial 14 size 800,600 arial 14pt fonts (p. 32) set terminal png transparent truecolor enhanced 24 / enhanced text Pngcairo pngcairo PNG 2D cairo pango set term pngcairo {{no}enhanced} {mono color} {solid dashed} {{no}transparent} {{no}crop} {background <rgbcolor> {font <font>} {fontscale <scale>} {linewidth <lw>} {rounded butt} {dashlength <dl>} {size <XX>{unit},<YY>{unit}} (enhanced text mode) ( ) gnuplot enhanced (p. 24) <lw> rounded butt PNG 640 x 480 size X, Y ( cm ) cm 72 dpi size <font> "FontFace,FontSize" FontFace Arial pngcairo Sans FontSize pngcairo 12 : set term pngcairo font "Arial,12" set term pngcairo font "Arial" # set term pngcairo font ",12" # set term pngcairo font "" # Windows " " UNIX "fontconfig" Pango utf-8 pngcairo utf-8 locale gnuplot encoding (p. 113) pango unicode Symbol pngcairo unicode "the Symbol font" Acrobat Reader "SY.PFB" Adobe Symbol OpenOffice.org "opens.ttf" OpenSymbol Microsoft Symbol ("symbol.ttf")
215 gnuplot ( enhancedtext.dem ) Adobe OpenOffice Symbol Microsoft Symbol "windings" 2 gnuplot ( plot x ) Postscript postscript set terminal postscript {default} set terminal postscript {landscape portrait eps} {enhanced noenhanced} {defaultplex simplex duplex} {fontfile [add delete] "<filename>" nofontfiles} {{no}adobeglyphnames} {level1 leveldefault} {color colour monochrome} {background <rgbcolor> nobackground} {solid dashed} {dashlength dl <DL>} {linewidth lw <LW>} {rounded butt} {clip noclip} {palfuncparam <samples>{,<maxdeviation>}} {size <XX>{unit},<YY>{unit}} {blacktext colortext colourtext} {{font} "fontname{,fontsize}" {<fontsize>}} {fontscale <scale>} "Can t find PostScript prologue file... " postscript prologue (p. 218) landscape portrait eps EPS (Encapsulated PostScript) PostScript ( PostScript ) EPS eps 1 1 eps enhanced ( ) enhanced (p. 24) blacktext PostScript (duplex) 1 defaultplex simplex duplex ( ) "<fontname>" PostScript <fontsize> PostScript postscript obliquesymbol ("Symbol-Oblique") default landscape, monochrome, dashed, dl 1.0, lw 1.0, defaultplex,noenhanced, "Helvetica", 14pt PostScript
216 216 gnuplot color monochrome monochrome palette colorspec solid dashlength dl <DL> (0 ) linewidth lw <LW> PostScript filledcurves PostScript Level 2 PostScript Level 2 PostScript Level 1 PostScript Level 1 level1 PostScript Level1 PostScript Level 2 Adobe Illustrator level1 PostScript PostScript Level 1 ON/OFF level 2 PostScript level 2 PostScript rounded butt clip PostScript BoundingBox (PostScript ) ; noclip palfuncparam set palette functions (set palatte functions ) postscript <samples> <maxdeviation> <samples> =2000 <maxdeviation>=0.003 PostScript 10 x 7 EPS 5 x 3.5 size X Y ( cm ) BoundingBox (PostScript ) size set size BoundingBox fontfile fontfile add postscript Type 1, TrueType gnuplot postscript postscript fontfile (p. 217) fontfile delete nofontfiles : set terminal postscript default # postscript set terminal postscript enhanced # enhpost set terminal postscript landscape 22 # psbig set terminal postscript eps 14 # epsf1 set terminal postscript eps 22 # epsf2 set size 0.7,1.4; set term post portrait color "Times-Roman" 14 set term post "VAGRoundedBT_Regular" 14 fontfile "bvrr8a.pfa" set style line postscript 70 plot set style line pointtype gnuplot Postscript gnuplot /docs/psdos "ps symbols.gpi" ( postscript "ps symbols.ps" gnuplot ) "ps guide.ps" ( 8 symbol PostScript ) "ps file.doc" (gnuplot PostScript ) "ps fontfile doc.tex" ( LaTeX
217 gnuplot LaTeX ) PostScript gnuplot editing postscript (p. 217) PostScript (editing postscript) PostScript gnuplot PostScript PostScript "/Color true def" (set terminal postscript color ) (weight) PostScript gnuplot PostScript gnuplot docs/ps "ps file.doc" Postscript fontfile fontfile fontfile add 1 postscript ( ) fontfile delete 1 postscript ASCII Type 1 ( ".pfa") Type 1 ( ".pfb") TrueType ( ".ttf") pfa pfb ttf gnuplot ( ) fontfile set fontpath GNUPLOT FONTPATH set fontpath (p. 114) ( ) fontfile Font file p052004l.pfb contains the font URWPalladioL-Bold. Location: /usr/lib/x11/fonts/urw/p052004l.pfb pfa pfb "/FontName /URWPalladioL-Bold def" / "URWPalladioL-Bold" TrueType Type 1 ( TrueType ) gnuplot gnuplot "set terminal postscript fontfile <filename.ttf> ". (ttf, pfb) pfa pfb "pfbtops" pfb
218 218 gnuplot 4.6 GNUPLOT PFBTOPFA "pfbtops %s" %s pfa "pfb2pfa" C C ftp ftp://ftp.dante.de/tex-archive/fonts/utilities/ps2mf/ "pfbtopfa" "pfb2ps" "pfbtops" pfa "pfbtopfa" TrueType "ttf2pt1" Type 1 pfa gnuplot GNU- PLOT TTFTOPFA ttf2pt1 "ttf2pt1 -a -e -W 0 %s - " %s ( OS ) "<" pfa pfa set fontfile "< cat garamond.pfa" Type 1 LaTeX postscript pfb "european computer modern" ("computer modern" ) CTAN ftp://ftp.dante.de/tex-archive/fonts/ps-type1/cm-super/ "sfrm1000.pfb" 10 ( "SFRM1000") computer modern ftp://ftp.dante.de/tex-archive/fonts/cm/ps-type1/bluesky TeX computer modern ( cmr10.pfb sfrm1000.pfb ) TeX gnuplot /docs/psdoc "ps fontfile doc.tex" TeX "CMEX10" ( "cmex10.pfb") gnuplot "CMEX10-Baseline" (CMEX10 ) PostScript prologue PostScript %%Prolog gnuplot PostScript prologue gnuplot gnuplot set psdir GNUPLOT PS DIR set psdir (p. 146) Postscript adobeglyphnames UTF-8 PostScript 0x00FF Unicode ( Latin1 ) unicode unicode Adobe ( ) gnuplot Adobe /alpha noadobeglyphnames gnuplot /uni03b1 Adobe
219 gnuplot fontfile (p. 217) Pslatex and pstex pslatex LaTeX pstex TeX pslatex dvips xdvi \special pstex plain-tex TeX (LaTeX ) set terminal [pslatex pstex] {default} set terminal [pslatex pstex] {rotate norotate} {oldstyle newstyle} {auxfile noauxfile} {level1 leveldefault} {color colour monochrome} {background <rgbcolor> nobackground} {solid dashed} {dashlength dl <DL>} {linewidth lw <LW>} {rounded butt} {clip noclip} {palfuncparam <samples>{,<maxdeviation>}} {size <XX>{unit},<YY>{unit}} {<font_size>} "Can t find PostScript prologue file... " postscript prologue (p. 218) color monochrome monochrome palette colorspec solid dashlength dl <DL> (0 ) linewidth lw <LW> PostScript filledcurves PostScript Level 2 PostScript Level 2 PostScript Level 1 PostScript Level 1 level1 PostScript Level1 PostScript Level 2 Adobe Illustrator level1 PostScript PostScript Level 1 ON/OFF level 2 PostScript level 2 PostScript rounded butt clip PostScript BoundingBox (PostScript ) ; noclip palfuncparam set palette functions (set palatte functions ) postscript <samples> <maxdeviation> <samples> =2000 <maxdeviation>=0.003 PostScript 10 x 7 EPS 5 x 3.5 size X Y
220 220 gnuplot 4.6 ( cm ) BoundingBox (PostScript ) size set size BoundingBox rotate y <font size> ( ) auxfile PostScript LaTeX dvips PostScript set output TeX.tex ( ).ps TeX.ps.ps \special{psfile=...}.tex multiplot version 4.2 gnuplot ps(la)tex 5 x 3 5 x 3.5 postscript eps epslatex 50% 60% oldstyle pslatex (a) { } LaTeX (b) [ (t,b,l,r 2 ) ]{ } LaTeX LR-box \rule{}{} Postscript terminal : set term pslatex monochrome dashed rotate PostScript "foo.ps" set term pslatex auxfile set output "foo.tex"; plot...; set output # gnuplot ( ): set title \LaTeX\ -- $ \gamma $ set label {\LaTeX\ -- $ \gamma $} at 0,0 ( ): set xlabel [t]{\latex\ -- $ \gamma $} set ylabel [r]{\latex\ -- $ \gamma $\rule{7mm}{0pt}} set style line Pstricks pstricks LaTeX "pstricks.sty" eepic latex "pstricks.sty" PostScript Ghostscript PSTricks anonymous ftp Princeton.EDU /pub PSTricks
221 gnuplot set terminal pstricks {hacktext nohacktext} {unit nounit} 2 hacktext nounit Qms qms QMS/QUIC Talaris 1200 Qt qt Qt set term qt {<n>} {size <width>,<height>} {{no}enhanced} {font <font>} {title "title"} {{no}persist} {{no}raise} {{no}ctrl} {close} {widget <id>} set terminal qt <n> n "title" gnuplot q close set term qt <n> close 640x480 qt replot replot plot (set term qt <n> ) mouse (p. 129) (enhanced text mode) ( ) gnuplot enhanced (p. 24) <font> "FontFace,FontSize" FontFace FontSize FontFace Arial FontFace qt Sans FontSize FontSize qt 9 : set term qt font "Arial,12" set term qt font "Arial" # set term qt font ",12" # set term qt font "" #
222 222 gnuplot 4.6 Qt Qt 4.7 QT GRAPHICSSYSTEM "native", "raster", "opengl" Qt "raster" 3 gnuplot ( plot x ) 1 1 (1 ) ( ) "raise" "persist" gnuplot <space> gnuplot q "ctrl" <ctrl>+<space> <ctrl>+ q gnuplot gnuplot qt GNUPLOT DRIVER DIR Regis regis REGIS 4 ( ) 16 set terminal regis {4 16} Sun sun SunView Svg W3C SVG (Scalable Vector Graphics) set terminal svg {size <x>,<y> { fixed dynamic}} {{no}enhanced} {fname "<font>"} {fsize <fontsize>} {mouse} {standalone jsdir <dirname>} {name <plotname>} {font "<fontname>{,<fontsize>}"} {fontfile <filename>} {rounded butt} {solid dashed} {linewidth <lw>} {background <rgb_color>} <x> <y> SVG dynamic svg fixed ( ) linewidth <w> <w> <font> ( Arial) <fontsize> ( 12) svg svg (enhanced) enhanced (p. 24)
223 gnuplot mouse key On/Off gnuplot /usr/local/share/gnuplot/<version>/js jsdir URL SVG Web URL standalone SVG SVG PNG Web javascript SVG name SVG SVG fontfile SVG <defs> gnuplot GNUPLOT FONTPATH TrueType PostScript svg Svga svga SVGA PC DJGPP set terminal svga {"<fontname>"} Tek40 VT- tek40xx Tektronix 4010 TEK vttek VT- tek40xx gnuplot kc-tek40xx MS-DOS Kermit Tek4010 km-tek40xx selanar Selanar bitgraph BBN Bitgraph Tek410x tek410x Tektronix 410x, 420x Texdraw texdraw LaTeX texdraw texdraw "texdraw.sty" "texdraw.tex" (point) LaTeX "\Diamond", "\Box" LaTeX2e latexsym LaTeX Tgif Tgif X11 GIF
224 224 gnuplot 4.6 tgif (set pointsize ) ( set label "Hallo" at x,y font "Helvetica,34") 1 set terminal tgif {portrait landscape default} {<[x,y]>} {monochrome color} {{linewidth lw} <LW>} {solid dashed} {font "<fontname>{,<fontsize>}"} <[x,y]> x y color linewidth <LW> "<fontname>" PostScript <fontsize> PostScript defaults portrait, [1,1], color, linewidth 1.0, dashed, "Helvetica,18" solid dashed (multiplot) 2 gnuplot set terminal tgif set output "file.obj" set multiplot set origin x01,y01 set size xs,ys plot set origin x02,y02 plot... unset multiplot set multiplot (p. 130) [x,y] (origin) (size) x/y 3/2 ( set size ) ( ) set terminal tgif # set terminal tgif "Times-Roman,24" set terminal tgif landscape set terminal tgif landscape solid set terminal tgif portrait [2,4] # x- 2 y- # 4 set terminal tgif [1,2] # x- 1 y- # 2 set terminal tgif landscape [3,3] # 3 # Tikz TeX TikZ lua script set term tikz set term lua tikz :term lua (p. 203) set term tikz help
225 gnuplot Tkcanvas Tcl/Tk ( ) Perl Tk canvas widget "term.h" gnuplot make gnuplot> set term tkcanvas {perltk} {interactive} gnuplot> set output plot.file "wish" Tcl/Tk % source plot.file % canvas.c % pack.c % gnuplot.c Perl/Tk use Tk; my $top = MainWindow->new; my $c = $top->canvas->pack; my $gnuplot = do "plot.pl"; $gnuplot->($c); MainLoop; gnuplot "gnuplot" canvas canvas canvas 2 (plot) 2 "gnuplot plotarea" "xleft, xright, ytop, ybot" canvas 2 "x1min, x1max, y1min, y1max, x2min, x2max, y2min, y2max" "gnuplot axisranges" "interactive" canvas "user gnuplot coordinates" "win id x1s y1s x2s y2sx1e y1e x2e y2e x1m y1m x2m y2m" canvas id 2 tkcanvas multiplot replot Tpic tpic tpic \special LaTeX picture latex eepic (pointsize) (linewidth) (interval) set terminal tpic <pointsize> <linewidth> <interval> pointsize linewidth interval pointsize = 40, linewidth = 6, interval = 0.1 LaTeX { } LaTeX [ (t,b,l,r 2 ) ]{ } LaTeX LR-box \rule{}{} : gnuplot ( ): set title \LaTeX\ -- $ \gamma $
226 226 gnuplot 4.6 set label {\LaTeX\ -- $ \gamma $} at 0,0 ( ): set xlabel [t]{\latex\ -- $ \gamma $} set ylabel [r]{\latex\ -- $ \gamma $\rule{7mm}{0pt}} Vgagl vgagl pm3d linux SVGALIB DEFAULT MODE 256 set terminal vgagl \ background [red] [[green] [blue]] \ [uniform interpolate] \ [mode] mode G1024x768x256 background [0, 255] interpolate uniform ( ON) libvga ( /etc/vga/libvga.conf) VESA fb vgagl * * vga - vgagl set term vgagl G1024x768x256 G1024x768x256 - SVGALIB_DEFAULT_MODE - G1024x768x256 - G800x600x256 - G640x480x256 - G320x200x256 - G1280x1024x256 - G1152x864x256 - G1360x768x256 - G1600x1200x256 VWS VWS VAX ( ) Vx384 vx384 Vectrix 384 Tandy Windows windows Windows GDI Windows wxt
227 gnuplot set terminal windows {<n>} {color monochrome} {solid dashed} {enhanced noenhanced} {font <fontspec>} {linewdith <scale>} {fontscale <scale>} {linewdith <scale>} {background <rgb color>} {title "Plot Window Title"} {size <width>,<height>} {position <x>,<y>} {close} set terminal win <n> n color, monochrome dashed solid color solid monochrome dashed enhanced (enhanced text mode) ( ) : enhanced text (p. 24) <fontspec> "<fontface>,<fontsize>" "<fontface>" Windows <fontsize> gnuplot font <fontsize> linewidth fontscale title size position wgnuplot.ini wgnuplot.ini Windows - -persist (x11 gnuplot ; Windows /noend -noend ) gnuplot OS gnuplot -persist gnuplot set term gnuplot set term windows close gnuplot Windows windows printing (p. 228) windows EMF graph-menu (p. 227) EMF emf (graph-menu) gnuplot graph (*) Options Copy to Clipboard EMF Save as EMF... EMF Print... Windows Print gnuplot windows printing (p. 228) Bring to Top Color Double buffer
228 228 gnuplot ( ) mouse (p. 129), scrolling (p. 130) Oversampling double buffer Antialiasing Background... Choose Font... Line Styles... Update wgnuplot.ini wgnuplot.ini (*) unset mouse (printing) 1. gnuplot set terminal set output 2. gnuplot graph Print... screendump 3. set output "PRN" gnuplot set output ( ) OK ( ) (text-menu) gnuplot text Options Copy to Clipboard Paste Choose Font... System Colors Wrap long lines Update wgnuplot.ini wgnuplot.ini wgnuplot.mnu wgnuplot.mnu gnuplot wgnuplot.mnu [Menu] [EndMenu] [--] [ ] [Button] 2 ( ) 2
229 gnuplot [INPUT] [EOS] {ENTER} [EOS] (End Of String) [OPEN] [EOS] [EOS] {ENTER} [SAVE] ([OPEN] ) [DIRECTORY] [EOS] {ENTER} {ENTER} \r {TAB} \011 {ESC} \033 {^A} \ {^_} \ Wgnuplot.ini Windows windows wgnuplot.ini [WGNU- PLOT] wgnuplot.ini [WGNUPLOT] TextOrigin=0 0 TextSize= TextFont=Terminal,9 TextWrap=1 TextLines=400 SysColors=0 GraphOrigin=0 150 GraphSize= GraphFont=Arial,10 GraphColor=1 GraphToTop=1 GraphDoublebuffer=1 GraphOversampling=0 GraphAntialiasing=1 GraphBackground= Border= Axis= Line1= Line2= Line3= Line4= Line5= wgnuplot TextOrigin TextSize TextFont TextWrap TextLines ( ) wgnuplot text-menu (p. 228)
230 230 gnuplot 4.6 GraphFont Border, Axis, Line (0 255) 5 (linestyle) 0= 1= 2= 3= 4= wgnuplot.ini Line 2 1 Line1 points 1 graph-menu (p. 227) Wxt wxt wxwidgets ( wxt ) 2D cairo / pango set term wxt {<n>} {size <width>,<height>} {background <rgb_color>} {{no}enhanced} {font <font>} {fontscale <scale>} {title "title"} {dashed solid} {dashlength <dl>} {{no}persist} {{no}raise} {{no}ctrl} {close} set terminal wxt <n> n "title" gnuplot q close set term wxt <n> close 640x384 wxt replot replot plot (set term wxt <n> ) mouse (p. 129) (enhanced text mode) ( ) gnuplot enhanced (p. 24) <font> "FontFace,FontSize" FontFace FontSize FontFace Arial FontFace wxt Sans FontSize FontSize wxt 10 : set term wxt font "Arial,12" set term wxt font "Arial" # set term wxt font ",12" # set term wxt font "" #
231 gnuplot MS-Windows "Fonts" Unix "fontconfig" pango utf-8 wxt utf-8 locale gnuplot encoding (p. 113) pango unicode Symbol wxt unicode pango Symbol DejaVu unicode "the Symbol font" Acrobat Reader "SY.PFB" Adobe Symbol OpenOffice.org "opens.ttf" OpenSymbol Microsoft Symbol ("symbol.ttf") ( enhancedtext.dem ) Adobe OpenOffice Symbol Microsoft Symbol "windings" 3 gnuplot ( plot x ) 1 1 (1 ) ( ) "raise" "persist" gnuplot <space> gnuplot q "ctrl" <ctrl>+<space> <ctrl>+ q 3 (raise, persist, ctrl) X11 set terminal x11 {<n> window "<string>"} {title "<string>"} {{no}enhanced} {font <fontspec>} {linewidth LW} {solid dashed} {{no}persist} {{no}raise} {{no}ctrlq} {close} {size XX,YY} {position XX,YY} set terminal x11 {reset} set terminal x11 <n> n n 0 Gnuplot <n> ( ) x11 X X ID (16 ) window X ButtonPress gnuplot gnuplot set term x11 window "220001e"
232 232 gnuplot 4.6 x11 ( enhanced (p. 24)) x11 2 set term x11 enhanced font "arial,15" set title {/=20 Big} Medium {/=5 Small} set term x11 enhanced font "terminal-14" set title {/=20 Big} Medium {/=5 Small} gnuplot q close reset ( -persist ) close persist close close gnuplot gnuplot x11 GNUPLOT DRIVER DIR -persisit persist raise (persist == no raise == yes) -persist / -raise X [no]persist [no]raise X raise (p. 96) title "<title name>" X size position gnuplot gnuplot set linestyle x11 gnuplot ( ) geometry font, name X Toolkit X(1) ( ) x11 gnuplot gnuplot ".Xdefaults" gnuplot (persist raise ) X11 (x11 fonts).xdefaults X11 : gnuplot*font: lucidasans-bold-12 gnuplot x11 set term x11 font "<fontspec>" x11 X <fontspec> "<font>,<size>,<slant>,<weight>" X11
233 gnuplot *-<font>-<weight>-<s>-*-*-<size>-*-*-*-*-*-<encoding> <font> (base name) ( : Times, Symbol) <size> ( 12) <s> <slant>=="italic" i, <slant>=="oblique" o, r <weight> medium bold * <encoding> ( set encoding ) set term x11 font "arial,15,italic" ( encoding ) -*-arial-*-i-*-*-15-*-*- *-*-*-iso <size>, <slant>, <weight> <slant> <weight> X11 gnuplot*encoding: iso x11 PostScript X11 TrueType set label gnuplot configure enable-x11-mbfonts "mbfont:" locale LC CTYPE ( ja JP.eucJP, ko KR.EUC, zh CN.EUC ) : set term x11 font mbfont:kana14;k14 # kana14 k14 X11 font ; # set term x11 font mbfont:fixed,16,r,medium # <font>,<size>,<slant>,<weight> set title (mb strings) font mbfont:*-fixed-medium-r-normal--14-* X gnuplot*font: \ mbfont:-misc-fixed-medium-r-normal--14-*-*-*-c-*-jisx gnuplot enable-x11-mbfonts "mbfont:" 2 PostScript Ryumin-Light-*, GothicBBB-Medium-* ( PS ) (command-line options) X Toolkit gnuplot ".Xdefaults" (raise persist set term x11 [no]raise [no]persist ): -mono -gray -clear -tvtwm -raise -noraise -noevents -persist ( ) ( ) geometry gnuplot ".Xdefaults" :
234 234 gnuplot 4.6 gnuplot*gray: on gnuplot*ctrlq: on gnuplot points (-pointsize <v>) (gnuplot*pointsize: <v>) v (0 < v <= 10) -pointsize 2 2 -pointsize 0.5 -noevents (q <space> ) gnuplot x11 -ctrlq q <ctrl>q pause mouse keystroke q -ctrlq <space> <ctrl><space> (monochrome options) gnuplot (foreground) (background) -rv gnuplot*reversevideo: on (color resources) x11 ( ) (greyscale) X11 rgb.txt 16 (X11 ) (0 1 ) blue, 0.5 gnuplot*background: white gnuplot*textcolor: black gnuplot*bordercolor: black gnuplot*axiscolor: black gnuplot*line1color: red gnuplot*line2color: green gnuplot*line3color: blue gnuplot*line4color: magenta gnuplot*line5color: cyan gnuplot*line6color: sienna gnuplot*line7color: orange gnuplot*line8color: coral (bacground) X11 toolkit "-bg" "-xrm" : gnuplot -background coral 1 gnuplot -xrm gnuplot*line1color:blue (grayscale resources) -gray gnuplot ( )
235 gnuplot gnuplot*background: black gnuplot*textgray: white gnuplot*bordergray: gray50 gnuplot*axisgray: gray50 gnuplot*line1gray: gray100 gnuplot*line2gray: gray60 gnuplot*line3gray: gray80 gnuplot*line4gray: gray40 gnuplot*line5gray: gray90 gnuplot*line6gray: gray50 gnuplot*line7gray: gray70 gnuplot*line8gray: gray30 (line resources) gnuplot ( ) ( ) gnuplot*borderwidth: 2 gnuplot*axiswidth: 0 gnuplot*line1width: 0 gnuplot*line2width: 0 gnuplot*line3width: 0 gnuplot*line4width: 0 gnuplot*line5width: 0 gnuplot*line6width: 0 gnuplot*line7width: 0 gnuplot*line8width: 0 gnuplot jk (j k 1 9 ) j k (grayscale) dashed:off gnuplot*dashed: off gnuplot*borderdashes: 0 gnuplot*axisdashes: 16 gnuplot*line1dashes: 0 gnuplot*line2dashes: 42 gnuplot*line3dashes: 13 gnuplot*line4dashes: 44 gnuplot*line5dashes: 15 gnuplot*line6dashes: 4441 gnuplot*line7dashes: 42 gnuplot*line8dashes: 13 X11 pm3d (pm3d resources) visual X11 X11 (depth) 6 visual gnuplot visual visual 12bit visual gnuplot
236 236 gnuplot 4.6 0x200 (=512) 8bit (12bit ) visual 0x100 (=256) 8bit 240 (16 ) gnuplot gnuplot 1/2 maxcolors 2 mincolors gnuplot private X11 (swapping) mincolors maxcolors / (num colormaps > 1? 2 : 8) num colormaps gnuplot x ( ) visual gnuplot visual visual 8bit PseudoColor 24bit TrueColor X xdpyinfo visual StaticGray, GrayScale, StaticColor, PseudoColor, TrueColor, DirectColor X visual gnuplot ( ) visual visual visual visual : 8bit PseudoColor visual gnuplot*maxcolors: 240 gnuplot*mincolors: 240 private gnuplot*maxcolors: gnuplot*mincolors: gnuplot*visual: visual X11 (other resources) X X11 gnuplot*exportselection off false gnuplot.fastrotate off gnuplot*exportselection: off gnuplot*fastrotate: on gnuplot*ctrlq: off Xlib xlib X11 Windows System gnuplot x11 set output <filename> set term x11 set output " gnuplot x11 -noevents"; set term xlib xlib x11 Part V (Bugs) gnuplot-bugs SourceForge gnuplot gnuplot
237 gnuplot seeking-assistance (p. 18) (limitations) do while plot -... key key (4.7 ) ( ( ) 0 ) (gnuplot ) gnuplot ( ) erf " " 24 nohidden3d set hidden3d (parametric) X11 UTF-8 x11 "set size ratio" x11 x11 1 multiplot x11 Qt qt "opengl" (External libraries) GD (PNG/JPEG/GIF ): libgd Adobe Symbol PDFlib (PDF ): gnuplot libpdf 4, 5, 6 PDF gnuplot PDFlib svgalib (linux, vgadl ): gnuplot root setuid (!) X11 ( ): gnuplot C setlocale() ( 3 ) Part VI Index
238 Index.gnuplot, 39 3D, 61 abs, 27 acos, 27 acosh, 27 acsplines, 83 adobeglyphnames, 218 aed512, 177 aed767, 177 aifm, 178 airy, 27 all, 95 angles, 99, 145 Aqua, 178 aqua, 178 arg, 27 arrow, 99, 149 arrowstyle, 59, 148 asin, 27 asinh, 27 atan, 27 atan2, 27 atanh, 27 automated, 54 autoscale, 80, 91, 101 avs, 77 axes, 23, 34, 39, 75 background, 36 backquotes, 40 bars, 46 48, 51, 59 61, 89, 90, 102 batch/interactive, 18, 21, 64, 73, 98 BE, 178 be, 178 besj0, 27 besj1, 27 bessel, 237 besy0, 27 besy1, 27 bezier, 83 bgnd, 19, 36 binary, 75, 77 bind, 37, 98, 103, 129 bitwise operators, 29 bmargin, 103 border, 103, 118, 156 boxerrorbars, 44, 104 boxes, 45, 47, 104 boxplot, 19, 46, 48, 150 boxwidth, 46, 48, 104 boxxyerrorbars, 46 branch, 69 bugs, 236 cairolatex, 181 call, 62, 72 candlesticks, 46, 47, 51, 150 canvas, 22, 198, 202, 213 cbdata, 168 cbdtics, 168 cblabel, 170 cbmtics, 170 cbrange, 35, 137, 138, 153, 170 cbtics, 170 cd, 62 ceil, 27 center, 55 cgi, 184 cgm, 184 circle, 48, 134 circles, 19, 48 clabel, 105, 107, 108, 122 clear, 63 clip, 59, 105 cnormal, 84 cntrparam, 39, 105, 108, 174 color resources, 234 colorbox, 35, 107, , 170 colornames, 35, 108, 153 colors, 34, 35, 94, 142, 153 colorspec, 35, 49, 124, 133, 153, 158 column, 28, 86 columnhead, 19, 28, 86 columnheader, 24, 92, 122 command line editing, 22 command line options, 233 command-line-editing, 97 command-line-options, 38 commands, 61 comments, 17, 23, 72 commentschars, 23, 110 compatibility, 21 context, 186 contour, 39, 61, 105, 107, 108, 119, 154, 174 coordinates, 23, 99, 100, , , 149, 156, 158, 161, 164 copyright, 16 corel, 188 cos, 27 cosh, 27 csplines, 83 cubehelix, 143 cumulative, 20, 84 cycle, 126 data, 56, 74, 79, 108 data file, 79 datafile, 39, 64, 79, 101, 108, 119,
239 INDEX gnuplot datastrings, 24, 56, 92 date specifiers, 117 debug, 189 decimalsign, 111, 114, 115, 127 defined, 28 degrees, 99 depthorder, 61, 138 dgrid3d, 20, 112, 147, 154, 174 division, 26 do, 19, 63, 72 dots, 49 dpu414, 195 dumb, 189 dummy, 101, 113 dx, 55, 78 dxf, 189 dxy800a, 189 dy, 55, 78 edf, 77 editing, 22 editing postscript, 217 eepic, 189 ehf, 77 ellipse, 49, 134, 154 ellipses, 19, 48, 154 elliptic integrals, 28 emf, 191 emtex, 202 emxvesa, 191 emxvga, 191 encoding, 24, 113, 127, 200, 212, 214, 231 encodings, 113 enhanced, 24, 178, 211, 214, 215, 221, 222, 230, 232 environment, 25 epoch, 43 eps, 33 epscairo, 191 epslatex, 191 epson 180dpi, 195 epson 60dpi, 195 epson lx800, 195 equal, 148 equal axes, 159 erf, 27 erfc, 27 error estimates, 66 error state, 31, 98 errorbars, 79, 89 errorlines, 79, 89 errors, 31 evaluate, 63 every, 80 example, 81 examples, 87 excl, 195 exists, 28, 41 exit, 64 exp, 27 expint, 27 exponentiation, 29 expressions, 26, 95, 118 factorial, 29 failsafe, 55 FAQ, 18 faq, 18 fig, 195 file, 79 filetype, 77 fill, 45, 47, 48, 52 filledcurves, 49 fillsteps, 19, 51 fillstyle, 46 49, 93, 133, 150, 153, 213 financebars, 47, 50, 150 fit, 25, 31, 64, 66, 87, 177 fit parameters, 66 fitting, 66 flipx, 55 floating point exceptions, 109, 237 floor, 27 flush, 138 fontfile, 33, 216, 217, 219 fontpath, 114, 217 fonts, 32, 33, 198, 214, 232 format, 115, 154, 157, 161, 162, 165 format specifiers, 116 fortran, 109 fpe trap, 109 frequency, 84 fsteps, 51 function, 90, 117 functions, 32, 74, 90 gamma, 27, 237 gamma correction, 144 gd, 33 general, 75, 111, 144, 173 geomean, 139 ggi, 196 gif, 33, 197 glossary, 34, 80 gnuplot, 16 gnuplot defined, 31 gpic, 198 gprintf, 40, 116, 124 GPVAL, 31 gpval, 31 graph menu, 227 graph-menu, 227, 230 grass, 199 grayscale resources, 234 grid, 118, 146 grid data, 108, 112, 172, 174
240 240 gnuplot 4.6 INDEX guidelines, 68 hcgi, 184 heatmap, 54 help, 71 help desk, 18 hidden3d, 61, 118, 120 histeps, 51 histograms, 51 history, 71 historysize, 120 hotkey, 37 hotkeys, 37 hp2623a, 199 hp2648, 199 hp500c, 199 hpdj, 200 hpgl, 200 hpljii, 200 hppj, 201 ibeta, 27 if, 19, 71, 177 if old, 72 if-old, 71 igamma, 27 imag, 27 image, 54, 58 imagen, 201 impulses, 56 index, 80, 82 initialization, 19, 39 int, 27 internationalization, 237 interval, 152 introduction, 17 inverf, 27 invnorm, 27 isosamples, 39, 90, 119, 120, 147, 174 iterate, 72 iteration, 19, 53, 54, 63, 72, 91, 98, 176 jpeg, 33, 201 kdensity, 20, 84 kdensity2d, 112 key, 93, 121 kyo, 202 label, 56, 124, 129 labels, 24, 56, 80, 125, 129 lambertw, 27 latex, 202 lc, 35 least squares, 64 legend, 121 lgamma, 27 libgd, 237 license, 16 line, 100, 107, 149 line editing, 22 line resources, 235 linecolor, 35, 45, 47, 50, 58 lines, 56, 57 linespoints, 57, 152 linestyle, 57, 152 linetype, 19, 34, 57, 94, 126, 151, 152 linetypes, 34 linewidth, 57, 152 linux, 203 lmargin, 126 load, 72 loadpath, 126 locale, 111, 114, 127, 237 log, 27, 104 log10, 27 logscale, 127 lower, 73 lp, 57 lua, 203, 224 macintosh, 205 macros, 32, 41, 64 map, 61, 139 mapping, 128, 145 margin, 103, 126, 128, 131, 146, 158 Marquardt, 64 matrix, 75, 76, 81, 111 max, 139 mcsplines, 83 mean, 139 median, 139 metafont, 206 metapost, 207 mf, 206 mif, 207 min, 139 missing, 109 mixing macros backquotes, 41 modulo, 29 monochrome options, 234 mouse, 37, 38, 129, 221, 228, 230 mouseformat, 130 mousewheel, 130 mousing, 129 mp, 207 multi branch, 69 multi-branch, 65, 69 multiplot, 63, 130, 224 mx2tics, 132 mxtics, 132, 133, 156 my2tics, 133 mytics, 133 mztics, 133 NaN, 26, 32, 87
241 INDEX gnuplot nec cp6, 195 negation, 29 new features, 19 newhistogram, 54 NeXT, 210 next, 210 noarrow, 99 noautoscale, 101 noborder, 103 nocbdtics, 168 nocbmtics, 170 nocbtics, 170 noclip, 105 nocontour, 108 nodgrid3d, 112 nofpe trap, 109 nogrid, 118 nohidden3d, 118, 237 nohistorysize, 120 nokey, 121 nolabel, 124 nologscale, 127 nomouse, 129 nomultiplot, 130 nomx2tics, 132 nomxtics, 132 nomy2tics, 133 nomytics, 133 nomztics, 133 nonuniform, 172 nooffsets, 135 noparametric, 136 nopolar, 145 norm, 27 nosurface, 154 notimestamp, 156 nox2dtics, 160 nox2mtics, 160 nox2tics, 160 nox2zeroaxis, 160 noxdtics, 161 noxmtics, 162 noxtics, 164 noxzeroaxis, 167 noy2dtics, 167 noy2mtics, 167 noy2tics, 167 noy2zeroaxis, 167 noydtics, 168 noymtics, 168 noytics, 168 noyzeroaxis, 168 nozdtics, 168 nozmtics, 169 noztics, 170 nozzeroaxis, 168 object, 133 offsets, 128, 135 okidata, 195 one s complement, 29 OpenStep, 210 Openstep, 210 openstep, 210 operator precedence, 29 operators, 29 options, 18 origin, 63, 131, 135 output, 135 palette, 35, 94, 107, 124, 137, 138, 140, 141, 153, 158, 170 parametric, 101, 136 pause, 73 pbm, 210 pcl5, 200 pdf, 32, 211, 237 pdfcairo, 181, 211 persist, 39 pi, 32 placement, 121 plot, 74, 97, 171, 174 plotting, 39 pm, 212 pm3d, 100, 107, 137, 149, 153 pm3d resources, 235 png, 32, 33, 213 pngcairo, 214 pointinterval, 57, 152 pointintervalbox, 145 points, 57 pointsize, 94, 145 polar, 20, 39, 58, polygon, 135 pop, 155 position, 137 postscript, 33, 215, 217 practical guidelines, 68 prescribe, 202 print, 95 printing, 227, 228 projection, 61 prologue, 26, 192, 215, 218, 219 psdir, 146, 218 pseudocolumns, 82, 87, 88 pslatex, 181, 193, 219 pstex, 219 pstricks, 220 punctuation, 42 push, 155 pwd, 95 qms, 221 qt, 221
242 242 gnuplot 4.6 INDEX quit, 95 quotes, 42 raise, 96, 232 rand, 27, 28 random, 28 range frame, 166 rangelimited, 166 ranges, 64, 90 ratio, 147 raxis, 146 real, 27 rectangle, 133, 150 refresh, 85, 88, 96 regis, 222 replot, 85, 96 reread, 72, 97 reset, 97, 98 restore, 162 rgbalpha, 54 rgbcolor, 35, 36 rgbformulae, 142 rgbimage, 54 rmargin, 146 rotate, 55 rrange, 20, 58, 102, 146, 147 rtics, 146, 147 samples, 83, 90, 119, 120, 147, 154 save, 98 sbezier, 83 scansautomatic, 138 scansbackward, 138 scansforward, 138 screendump, 228 scrolling, 130, 228 seeking assistance, 18 seeking-assistance, 237 separator, 86, 110 set, 98 sgn, 27 shell, 170, 175 show, 98 sin, 27 sinh, 27 size, 63, 131, 136, 147, 198, 202, 213 SJIS, 113 skip, 81, 82 smooth, 20, 82 space, 37 special filenames, 84 special-filenames, 40, 171 specifiers, 116 specify, 42 splot, 74, 118, 171 sprintf, 28, 40, 124 sqrt, 27 square, 58 starc, 195 start, 39 start up, 39 starting values, 69 startup, 25, 39 statistical overview, 67 statistics, 174 stats, 20, 174 steps, 51, 58 strcol, 28 strftime, 28 string operators, 29 stringcolumn, 28 strings, 40, 124 strlen, 28 strptime, 28 strstrt, 28 style, 87, 89, 90, 93, 124 styles, 93, 148, 150, 151 substitution, 40, 43, 127 substr, 28 substring, 28, 40 summation, 19, 31 sun, 222 surface, 61, 108, 154, 174 svg, 222 svga, 223 svgalib, 237 syntax, 17, 42, 115, 122, 158, 162 system, 28, 175 table, 154 tan, 27 tandy 60dpi, 195 tanh, 27 tc, 35 tek40, 223 tek410x, 223 term, 98, 177 terminal, 177 terminals, 155 termoption, 155 ternary, 30 test, 35, 176 texdraw, 223 text, 43, 124, 213, 227 text menu, 228 text-menu, 229 textcolor, 35 tgif, 223 thru, 86 tics, 155 ticscale, 156 ticslevel, 156 tikz, 224 time, 20, 28
243 INDEX gnuplot time specifiers, 44, 117 time/date, 43, 158, 161 timecolumn, 28 timefmt, 23, 91, 116, 125, 157, 160, 237 timestamp, 156 tips, 70 title, 24, 121, 158 tkcanvas, 225 tm hour, 28 tm mday, 28 tm min, 28 tm mon, 28 tm sec, 28 tm wday, 28 tm yday, 28 tm year, 28 tmargin, 158 tpic, 225 trange, 158 transparency, 55 transparent, 151 unary, 29 undefine, 176 unique, 83 unset, 176 unwrap, 83 update, 65, 177 urange, 158 user defined, 31 user-defined, 90 using, 24, 26, 31, 44, 65, 86, 89, 90, 138 UTF 8, 113, 218 valid, 28 value, 29, 32 variable, 45, 47, 50, 56 58, 82, 139 variables, 29, 31, 32, 37, 38, 66, 73 vectors, 58 vgagl, 226 vgal, 191 view, 159, 167, 171 voigt, 27 volatile, 88 vrange, 160 vttek, 223 VWS, 226 vx384, 226 wgnuplot.ini, 229 wgnuplot.mnu, 228 while, 19, 177 windows, 226 with, 89, 90, 93, 121, 145, 148, 196 word, 28 words, 28 writeback, 162 wxt, 32, 230 X resources, X11, 231 x11, 18, 231 x11 fonts, 232 x11 mouse, 130 x2data, 160 x2dtics, 160 x2label, 160 x2mtics, 160 x2range, 160 x2tics, 160 x2zeroaxis, 160 xdata, 23, 125, 158, 160, 167, 168 xdtics, 160, 161, 167, 168 xerrorbars, 59 xerrorlines, 60 xfig, 195 xlabel, 160, 161, xlib, 236 xmtics, 160, 162, xrange, 101, 146, 158, 160, 162, , 174 xterm, 223 xticlabels, 24, 88 xtics, 104, 115, 118, 127, 132, 147, 156, 160, 164, 167, 168, 170 xyerrorbars, 59 xyerrorlines, 60 xyplane, 23, 156, 159, 166, 168, 171 xzeroaxis, 167 y2data, 167 y2dtics, 167 y2label, 167 y2mtics, 167 y2range, 167 y2tics, 167 y2zeroaxis, 167 ydata, 167 ydtics, 168 yerrorbars, 59 yerrorlines, 61 ylabel, 168 ymtics, 168 yrange, 168 ytics, 168 yzeroaxis, 168 zdata, 168 zdtics, 168 zero, 169 zeroaxis, 160, zlabel, 169 zmtics, 169 zoom, 130 zrange, 169 ztics, 170 zzeroaxis, 168
gnuplot documentation
gnuplot 4.6 An Interactive Plotting Program Thomas Williams & Colin Kelley Version 4.6 organized by: Hans-Bernhard Bröker, Ethan A Merritt, and others Major contributors (alphabetic order): Hans-Bernhard
gnuplot.dvi
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)
1 1 Gnuplot gnuplot Windows gnuplot gp443win32.zip gnuplot binary, contrib, demo, docs, license 5 BUGS, Chang
Gnuplot で微分積分 2011 年度前期 数学解析 I 講義資料 (2011.6.24) 矢崎成俊 ( 宮崎大学 ) 1 1 Gnuplot gnuplot http://www.gnuplot.info/ Windows gnuplot 2011 6 22 4.4.3 gp443win32.zip gnuplot binary, contrib, demo, docs, license 5
Foundation (FSF) GNU 1 gnuplot ( ) gnuplot UNIX Windows Machintosh Excel Excel gnuplot C web
gnuplot 2007 7 11 gnuplot C 1 gnuplot gnuplot C gnuplot PGPLOT ROOT 2 2.1 gnuplot gnuplot 2D 3D gnu Free Software 1 Foundation (FSF) GNU 1 gnuplot ( ) gnuplot UNIX Windows Machintosh Excel Excel gnuplot
gnuplot gnuplot 1 3 y = x 3 + 3x 2 2 y = sin x sin(x) x*x*x+3*x*x
gnuplot gnuplot y = x + x y = sin x.8 sin(x) 8 7 6 x*x*x+*x*x.6.. -. -. -.6 -.8 - - - - - - - -. - -. - -.. gnuplot gnuplot> set xrange[-.:.] gnuplot> plot x**+*x** y = x x gnuolot> reset gnuplot> plot
2 I I / 61
2 I 2017.07.13 I 2 2017.07.13 1 / 61 I 2 2017.07.13 2 / 61 I 2 2017.07.13 3 / 61 7/13 2 7/20 I 7/27 II I 2 2017.07.13 4 / 61 π-computer gnuplot MobaXterm Wiki PC X11 DISPLAY I 2 2017.07.13 5 / 61 Mac 1.
gnuplot documentation
gnuplot 4.4 An Interactive Plotting Program Thomas Williams & Colin Kelley Version 4.4 organized by: Hans-Bernhard Bröker, Ethan A Merritt, and others Major contributors (alphabetic order): Hans-Bernhard
きれいなグラフを作ろう!gnuplot 入門 1. 基本 1.1. プロット :test.plt plot x, sin(x) 1.2. データファイルのプロット 1:data.plt plot "data.dat" 1.3. データファイルのプロット 2:data2.plt plot "data2
きれいなグラフを作ろう!gnuplot 入門 1. 基本 1.1. プロット :test.plt plot x, sin(x) 1.2. データファイルのプロット 1:data.plt plot "data.dat" 1.3. データファイルのプロット 2:data2.plt plot "data2.dat" using 1:3 2. 例題 2.1. カラーマップ :color_map.plt #
Debian での数学ことはじめ。 - gnuplot, Octave, R 入門
.... Debian gnuplot, Octave, R [email protected] IRC nick: mkouhei 2009 11 14 OOo OS diff git diff --binary gnuplot GNU Octave GNU R gnuplot LaTeX GNU Octave gnuplot MATLAB 1 GNU R 1 MATLAB (clone)
1.3 2 gnuplot> set samples gnuplot> plot sin(x) sin gnuplot> plot [0:6.28] [-1.5:1.5] sin(x) gnuplot> plot [-6.28:6.28] [-1.5:1.5] sin(x),co
gnuplot 8 gnuplot 1 1.1 gnuplot gnuplot 2D 3D gnuplot ( ) gnuplot UNIX Windows Machintosh Excel gnuplot C 1.2 web gnuplot $ gnuplot gnuplot gnuplot> exit 1 1.3 2 gnuplot> set samples 1024 1024 gnuplot>
Fortran90/95 [9]! (1 ) " " 5 "Hello!"! 3. (line) Fortran Fortran 1 2 * (1 ) 132 ( ) * 2 ( Fortran ) Fortran ,6 (continuation line) 1
Fortran90/95 2.1 Fortran 2-1 Hello! 1 program example2_01! end program 2! first test program ( ) 3 implicit none! 4 5 write(*,*) "Hello!"! write Hello! 6 7 stop! 8 end program example2_01 1 program 1!
ProVisionaire Control V3.0セットアップガイド
ProVisionaire Control V3 1 Manual Development Group 2018 Yamaha Corporation JA 2 3 4 5 NOTE 6 7 8 9 q w e r t r t y u y q w u e 10 3. NOTE 1. 2. 11 4. NOTE 5. Tips 12 2. 1. 13 3. 4. Tips 14 5. 1. 2. 3.
gnuplot の使い方 gnuplot は汎用的で しかも手軽に使えるプロッティング プログラムです 計算結果をグラフにするとき に非常に便利なので ぜひ覚えてください 1 gnuplot の始め方 終わり方 gnuplot の始め方は ターミナル上のプロンプトの後ろで gnuplot と打つだけ
gnuplot の使い方 gnuplot は汎用的で しかも手軽に使えるプロッティング プログラムです 計算結果をグラフにするとき に非常に便利なので ぜひ覚えてください 1 gnuplot の始め方 終わり方 gnuplot の始め方は ターミナル上のプロンプトの後ろで gnuplot と打つだけです すると /home/snaoki> gnuplot G N U P L O T Version
6 Tgif William Chia-Wei Chang tgif 3.0 pixmap URL Tgif 6.1: Tgif
6 Tgif 121 6.1 Tgif............................ 122 6.2..................... 123 6.2.1...................... 126 6.2.2 Dash, Type, Style, Width.......... 127 6.2.3 Pen, Fill............. 128 6.2.4 Text......................
13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir
13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software 37.1 37.1 Nspire Nspire Nspire 37.1: Student Software 13 2 13 Student Software esc
Unix * 3 PC 2 Linux, Mac *4 Windows Cygwin Cygwin gnuplot Cygwin unix emulator online gnuplot *5 matplotlib *6 SuperMongo *7 gnuplot gnuplot OS *8 Uni
2015 8 1 ( ) Unix 1 *1 Unix Unix Unix Perl, Python *2 Unix 2 PC gnuplot *1 100 10 10 6 10 = 10 7 1 1/3 3 10 7 10 7.5 1 24 3600 = (30 6)(30 + 6) 100 = 86400 1 10 7.5 *2 Perl, Python Python 1 Unix * 3 PC
¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó
2 2015 4 20 1 (4/13) : ruby 2 / 49 2 ( ) : gnuplot 3 / 49 1 1 2014 6 IIJ / 4 / 49 1 ( ) / 5 / 49 ( ) 6 / 49 (summary statistics) : (mean) (median) (mode) : (range) (variance) (standard deviation) 7 / 49
Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for
Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for embedded systems that use microcontrollers (MCUs)
1 1.1 (JCPRG) 30 Nuclear Reaction Data File (NRDF) PC GSYS2.4 JCPRG GSYS2.4 Java Windows, Linux, Max OS X, FreeBSD GUI PNG, GIF, JPEG X Y GSYS2
(GSYS2.4) GSYS2.4 Manual SUZUKI Ryusuke Hokkaido University Hospital Abstract GSYS2.4 is an update version of GSYS version 2. Main features added in this version are Magnifying glass function, Automatically
Microsoft Word - Meta70_Preferences.doc
Image Windows Preferences Edit, Preferences MetaMorph, MetaVue Image Windows Preferences Edit, Preferences Image Windows Preferences 1. Windows Image Placement: Acquire Overlay at Top Left Corner: 1 Acquire
ProVAL Recent Projects, ProVAL Online 3 Recent Projects ProVAL Online Show Online Content on the Start Page Page 13
ProVAL Unit System Enable Recording Log Preferred Language Default File Type Default Project Path ProVAL : Unit SystemUse SI Units SI SI USCS Enable Recording Log Language Default File Type Default Project
2.2 Sage I 11 factor Sage Sage exit quit 1 sage : exit 2 Exiting Sage ( CPU time 0m0.06s, Wall time 2m8.71 s). 2.2 Sage Python Sage 1. Sage.sage 2. sa
I 2017 11 1 SageMath SageMath( Sage ) Sage Python Sage Python Sage Maxima Maxima Sage Sage Sage Linux, Mac, Windows *1 2 Sage Sage 4 1. ( sage CUI) 2. Sage ( sage.sage ) 3. Sage ( notebook() ) 4. Sage
グラフ描画ソフトGnuplotを使う
グラフ描画ソフト gnuplot を使う 目次 1.What is gnuplot?... 1 2.Download and Install gnuplot... 1 3.How to use gnuplot... 4 plot コマンドで 2 次元グラフが簡単に描けます... 4 データファイル text.txt を使って折れ線グラフを描くこともできます.... 4 splot コマンドで 3 次元のグラフも簡単に描くことができます....
EPSON ES-D200 パソコンでのスキャンガイド
NPD4271-00 ...4...7 EPSON Scan... 7...11 PDF...12 / EPSON Scan...13 EPSON Scan...13 EPSON Scan...14 EPSON Scan...14 EPSON Scan...15 Epson Event Manager...16 Epson Event Manager...16 Epson Event Manager...16
25 II :30 16:00 (1),. Do not open this problem booklet until the start of the examination is announced. (2) 3.. Answer the following 3 proble
25 II 25 2 6 13:30 16:00 (1),. Do not open this problem boolet until the start of the examination is announced. (2) 3.. Answer the following 3 problems. Use the designated answer sheet for each problem.
グラフ数値読み取りシステム (GSYS2.4) 利用の手引
(GSYS2.4) GSYS2.4 Manual SUZUKI Ryusuke Hokkaido University Hospital 2011 6 7 Abstract GSYS2.4 is an update version of GSYS version 2. Main features added in this version are Magnifying glass function,
DS-30
NPD4633-00 JA ...6... 6... 6... 6... 6... 7... 7... 7... 7... 8... 8...9...10...11...11...13 Document Capture Pro Windows...13 EPSON Scan Mac OS X...14 SharePoint Windows...16 Windows...16...17 Document
PX-403A
NPD4403-00 ...6... 6...10 Mac OS X...11 Mac OS X v10.5.x v10.6.x...11 Mac OS X v10.4.x...15...18...19...19...21...22!ex...22 /...23 P.I.F. PRINT Image Framer...23...24...27...27...28...28...28...32 Web...32...32...35...35...35...37...37...37...39...39...40...43...46
2 1 Octave Octave Window M m.m Octave Window 1.2 octave:1> a = 1 a = 1 octave:2> b = 1.23 b = octave:3> c = 3; ; % octave:4> x = pi x =
1 1 Octave GNU Octave Matlab John W. Eaton 1992 2.0.16 2.1.35 Octave Matlab gnuplot Matlab Octave MATLAB [1] Octave [1] 2.7 Octave Matlab Octave Octave 2.1.35 2.5 2.0.16 Octave 1.1 Octave octave Octave
ScanFront300/300P セットアップガイド
libtiff Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby
EPSON EP-803A/EP-803AW ユーザーズガイド
NPD4293-00 ...6... 6...10 Mac OS X...11 Mac OS X v10.5.x v10.6.x...11 Mac OS X v10.4.x...15...18...19...19...22...23...24!ex...24 /...25 P.I.F. PRINT Image Framer...25...26...30...30...31...31...31...35
EPSON EP-703A ユーザーズガイド
NPD4295-00 ...6... 6...10 Mac OS X...11 Mac OS X v10.5.x v10.6.x...11 Mac OS X v10.4.x...15...18...19...19...22...23...24!ex...24 /...25 P.I.F. PRINT Image Framer...25...26...29...30...30...31...31...34
情報活用資料
y = Asin 2πt T t t = t i i 1 n+1 i i+1 Δt t t i = Δt i 1 ( ) y i = Asin 2πt i T 21 (x, y) t ( ) x = Asin 2πmt y = Asin( 2πnt + δ ) m, n δ (x, y) m, n 22 L A x y A L x 23 ls -l gnuplot gnuplot> plot "sine.dat"
EP-704A
NPD4533-01 ...6... 6...10 Mac OS X...11 Mac OS X v10.5.x v10.6.x...11 Mac OS X v10.4.11...15...18...19...19...22...23...24!ex...24 /...25 P.I.F. PRINT Image Framer...25...26...29...29...30...30...31...34
Microsoft Word - gnuplot
GNUPLOT の使い方 I. 初期設定 GNUPLOT を最初に起動させたときの Window の文字は小さいので使い難い そこで 文字フォントのサイズを設定します 1.GNUPLOT を起動させます ( 右のような Window が起動します ) 2. 白い領域のどこでも構わないので ポインタを移動して マウスの右ボタンをクリックします ( 右のようにメニューが起動します ) 3. Choose
GT-X980
NPD5061-00 JA ...6...10...10...11...13...15...20...21...21...22 /...23 PDF...27 PDF...31 /...35...38...43...46 EPSON Scan...49...49...49...50 EPSON Scan...51...51...52...52...53 2 Windows...53 Mac OS X...53...53...53...54...56...56...58...59...60...60...61...62...63
PX-504A
NPD4537-00 ...6... 6... 9 Mac OS X...10 Mac OS X v10.5.x v10.6.x...10 Mac OS X v10.4.11...13...15...16...16...18...19...20!ex...20 /...21 P.I.F. PRINT Image Framer...21...22...26...26...27...27...27...31
New version (2.15.1) of Specview is now available Dismiss Windows Specview.bat set spv= Specview set jhome= JAVA (C:\Program Files\Java\jre<version>\
Specview VO 2012 2012/3/26 Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page http://www.stsci.edu/resources/software hardware/specview http://specview.stsci.edu/javahelp/main.html
EPSON PX-503A ユーザーズガイド
NPD4296-00 ...6... 6...10 Mac OS X...11 Mac OS X v10.5.x v10.6.x...11 Mac OS X v10.4.x...15...18...19...19...21...22...23!ex...23 /...24 P.I.F. PRINT Image Framer...24...25...28...28...29...29...30...33
PX-434A/PX-404A
NPD4534-00 ...6... 6...10 Mac OS X...11 Mac OS X v10.5.x v10.6.x...11 Mac OS X v10.4.11...15...18...19...19...21...22!ex...22 /...23 P.I.F. PRINT Image Framer...23...24...26...27...27...28...28...31 Web...31...31...35...35...35...37...37...37...39...39...40...43...48
1 I EViews View Proc Freeze
EViews 2017 9 6 1 I EViews 4 1 5 2 10 3 13 4 16 4.1 View.......................................... 17 4.2 Proc.......................................... 22 4.3 Freeze & Name....................................
Chapter 1 1-1 2
Chapter 1 1-1 2 create table ( date, weather ); create table ( date, ); 1 weather, 2 weather, 3 weather, : : 31 weather -- 1 -- 2 -- 3 -- 31 create table ( date, ); weather[] -- 3 Chapter 1 weather[] create
Specview Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page htt
Specview Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page http://www.stsci.edu/resources/software_hardware/specview http://specview.stsci.edu/javahelp/main.html Specview
ScanFront 220/220P 取扱説明書
libtiff Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby
ScanFront 220/220P セットアップガイド
libtiff Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby
DS-70000/DS-60000/DS-50000
NPD4647-02 JA ...5...7...8 ADF...9... 9 ADF...10...11...13...15 Document Capture Pro Windows...15 EPSON Scan Mac OS X...16 SharePoint Windows...18 Windows...18...19 Windows...19 Mac OS X...19...20...23...23
ES-D400/ES-D350
NPD4650-00 ...4 EPSON Scan... 4 Document Capture Pro Windows... 7 EPSON Scan...10 EPSON Scan...10...14 PDF...15 / EPSON Scan...17 EPSON Scan...17 EPSON Scan...18 EPSON Scan...18 Document Capture Pro Windows...19
PX-673F
NPD4385-00 ...6... 6...10 Mac OS X...11 Mac OS X v10.5.x v10.6.x...11 Mac OS X v10.4.x...15...18...19...19...21...22...23!ex...23 /...24 P.I.F. PRINT Image Framer...24...25...28...29...29...30...30...33
( ) kadai4, kadai4.zip.,. 3 cos x [ π, π] Python. ( 100 ), x cos x ( ). (, ). def print cos(): print cos()
4 2010.6 1 :, HP.. HP 4 (, PGM/PPM )., python,,, 2, kadai4,.,,, ( )., ( ) N, exn.py ( 3 ex3.py ). N 3.., ( )., ( ) N, (exn.txt).. 1 ( ) kadai4, kadai4.zip.,. 3 cos x [ π, π] Python. ( 100 ), x cos x (
GT-F740/GT-S640
NPD4743-00 JA ...5 EPSON Scan... 5 Document Capture Pro / Document Capture...11...14 EPSON Scan...14 PDF...18 OCR...18...19...19...21 /...21...22...23 GT-F740...24...24...25...26...26...26...27 PDF...28...30
GT-X830
NPD5108-00 ...5... 5... 6... 8...11 EPSON Scan...11 PDF...16 OCR...16...17...17...20 /...20...20...22...23...23...24...25...25...26...27 PDF...30...31 / EPSON Scan...34 EPSON Scan...34 EPSON Scan...36
というプロンプトだったのが gnuplot> というプロンプトに変わっていることに注意してください gnuplot を終了させるときには gnuplot> というプロンプトの後ろで quit と打ちこみます すると /home/snaoki> のようなプロンプトに戻るはずです 2 グラフを描いてみよ
gnuplot の使い方 gnuplot は汎用的で しかも手軽に使えるプロッティング プログラムです 計算結果をグラフにするとき に便利なので ぜひ覚えてください 1 gnuplot の始めかた 終わりかた gnuplot の始めるには ターミナル上のプロンプトの後ろで gnuplot と打ちます すると /home/snaoki> gnuplot G N U P L O T Version 4.0
-5 DMP-BV300 μ μ l μ l l +- l l j j j l l l l l l l l l l l l l Ë l l l l l l l l l l l l l l l l l l l l l l l BD DVD CD SD USB 2 ALL 1 2 4 l l DETACH ATTACH RELEASE DETACH ATTACH DETACH ATTACH RELEASE
フリーセルプロの使い方
FreeCell Pro 011 2 FreeCell Pro 2002 FCPRO.HLP FreeCell Pro6.4 6.5 FreeCell Pro 1000 http://solitairelaboratory.com/fcpro.html FreeCell Pro 2009 2 3 FreeCell Pro Microsoft FC 0 Windows 3.1 FreeCell Pr
6 4 45 7ZS 5 59 7 8 94 05 4 5 6 4 5 5 6 8 8 40 45 48 56 60 64 66 66 68 7 78 80 8 7 8 0 0 0 90 0 57 64 69 66 66 69 0 4 4 4 4 4 0 7 48 5 4 4 5 4 4 4 7 46 46 6 46 8 46 48 46 46 4 46 46 4 4 5 4 6 4 9 9 0
untitled
VQT3B82-1 DMP-BDT110 μ μ μ 2 VQT3B82 ÇÕÇ¹Ç Ç +- VQT3B82 3 4 VQT3B82 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ij SD 1 2 3 4 5 6 7 8 Í VQT3B82 5 BD DVD CD SD USB 6 VQT3B82 2 ALL 1 2 4 VQT3B82 7
AuthorManual_JSTP.ppt
ScholarOne Manuscripts Log In Create Account Main Menu Author Dashboard Step 1: Type, Title & Abstract Step 2: Attributes Step 3: Authors & Institutions Step 4: Reviewers Step 5: Details & Comments Step
programmingII2019-v01
II 2019 2Q A 6/11 6/18 6/25 7/2 7/9 7/16 7/23 B 6/12 6/19 6/24 7/3 7/10 7/17 7/24 x = 0 dv(t) dt = g Z t2 t 1 dv(t) dt dt = Z t2 t 1 gdt g v(t 2 ) = v(t 1 ) + g(t 2 t 1 ) v v(t) x g(t 2 t 1 ) t 1 t 2
iPhone/iPad接続マニュアル
/ JA 2 3 USB 4 USB USB i-ux1 USB i-ux1 5 6 i-mx1 THRU i-mx1 THRU 7 USB THRU 1 2 3 4 1 2 3 4 5 8 1 1 9 2 1 2 10 1 2 2 6 7 11 1 2 3 4 5 6 7 8 12 1 2 3 4 5 6 13 14 15 WPA Supplicant Copyright 2003-2009, Jouni
6 4 4 9RERE6RE 5 5 6 7 8 9 4 5 6 4 4 5 6 8 4 46 5 7 54 58 60 6 69 7 8 0 9 9 79 0 4 0 0 4 4 60 6 9 4 6 46 5 4 4 5 4 4 7 44 44 6 44 8 44 46 44 44 4 44 0 4 4 5 4 8 6 0 4 0 4 4 5 45 4 5 50 4 58 60 57 54
X Window System X X &
1 1 1.1 X Window System................................... 1 1.2 X......................................... 1 1.3 X &................................ 1 1.3.1 X.......................... 1 1.3.2 &....................................
1 matplotlib matplotlib Python matplotlib numpy matplotlib Installing A 2 pyplot matplotlib 1 matplotlib.pyplot matplotlib.pyplot plt import import nu
Python Matplotlib 2016 ver.0.06 matplotlib python 2 3 (ffmpeg ) Excel matplotlib matplotlib doc PDF 2,800 python matplotlib matplotlib matplotlib Gallery Matplotlib Examples 1 matplotlib 2 2 pyplot 2 2.1
2 Windows 10 *1 3 Linux 3.1 Windows Bash on Ubuntu on Windows cygwin MacOS Linux OS Ubuntu OS Linux OS 1 GUI Windows Explorer Mac Finder 1 GUI
2017 1 2017 -September I ll remember- 1,2 Linux 6 Linux Linux 2 3 Linux 2 (OS) Windows MacOS OS MacOS Linux 3 Windows Windows ( ) 1. Bash on Ubuntu on Windows ( Windows 10 ) 2. cygwin ( ) 3. VM Ware Linux
インターネット接続ガイド v110
1 2 1 2 3 3 4 5 6 4 7 8 5 1 2 3 6 4 5 6 7 7 8 8 9 9 10 11 12 10 13 14 11 1 2 12 3 4 13 5 6 7 8 14 1 2 3 4 < > 15 5 6 16 7 8 9 10 17 18 1 2 3 19 1 2 3 4 20 U.R.G., Pro Audio & Digital Musical Instrument
Introduction Purpose This training course describes the configuration and session features of the High-performance Embedded Workshop (HEW), a key tool
Introduction Purpose This training course describes the configuration and session features of the High-performance Embedded Workshop (HEW), a key tool for developing software for embedded systems that
2
L C -24K 9 L C -22K 9 2 3 4 5 6 7 8 9 10 11 12 11 03 AM 04 05 0 PM 1 06 1 PM 07 00 00 08 2 PM 00 4 PM 011 011 021 041 061 081 051 071 1 2 4 6 8 5 7 00 00 00 00 00 00 00 00 30 00 09 00 15 10 3 PM 45 00
エレクトーンのお客様向けiPhone/iPad接続マニュアル
/ JA 1 2 3 4 USB TO DEVICE USB TO DEVICE USB TO DEVICE 5 USB TO HOST USB TO HOST USB TO HOST i-ux1 6 7 i-ux1 USB TO HOST i-mx1 OUT IN IN OUT OUT IN OUT IN i-mx1 OUT IN IN OUT OUT IN OUT IN USB TO DEVICE
5 30 B36B3 4 5 56 6 7 3 4 39 4 69 5 56 56 60 5 8 3 33 38 45 45 7 8 4 33 5 6 8 8 8 57 60 8 3 3 45 45 8 9 4 4 43 43 43 43 4 3 43 8 3 3 7 6 8 33 43 7 8 43 40 3 4 5 9 6 4 5 56 34 6 6 6 6 7 3 3 3 55 40 55
GNU Emacs GNU Emacs
GNU Emacs 2015 10 2 1 GNU Emacs 1 1.1....................................... 1 1.2....................................... 1 1.2.1..................................... 1 1.2.2.....................................
μ μ DMR-BZT700 DMR-BZT600 μ TM VQT3C03-2B ! ! l l l [HDD] [BD-RE] [BD-R] [DVD-V] [BD-V] [RAM] [CD] [SD] [-R] [USB] [-RW] [RAM AVCREC ] [-R AVCREC ] [RAM VR ][-R VR ] [-RW VR ] [-R V ] [-RW V ] [DVD-V]
Complex Lab – Operating Systems - Graphical Console
Complex Lab Operating Systems Graphical Console Martin Küttler Last assignment Any questions? Any bug reports, whishes, etc.? 1 / 13 We are here Pong Server Paddle Client 1 Paddle Client 2 Memory Management
2
8 23 26A800032A8000 31 37 42 51 2 3 23 37 10 11 51 4 26 7 28 7 8 7 9 8 5 6 7 9 8 17 7 7 7 37 10 13 12 23 21 21 8 53 8 8 8 8 1 2 3 17 11 51 51 18 23 29 69 30 39 22 22 22 22 21 56 8 9 12 53 12 56 43 35 27
コンピュータ概論
4.1 For Check Point 1. For 2. 4.1.1 For (For) For = To Step (Next) 4.1.1 Next 4.1.1 4.1.2 1 i 10 For Next Cells(i,1) Cells(1, 1) Cells(2, 1) Cells(10, 1) 4.1.2 50 1. 2 1 10 3. 0 360 10 sin() 4.1.2 For
