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
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) (Plotting) 39 (Startup (initialization)) 39 (Strings) 39 (Substitution) 40 (Substitution backquotes) (Substitution macros) (mixing macros backquotes) (Syntax) 42 (Quotes) / (Time/Date) 43 II (plotting styles) 43 Boxerrorbars 44 Boxes 44 Boxplot 45
4 4 gnuplot 4.6 CONTENTS Boxxyerrorbars 46 Candlesticks 46 Circles 47 Ellipses 48 Dots 48 Filledcurves 49 Financebars 50 Fsteps 50 Fillsteps 50 Histeps 50 Histograms 51 Newhistogram (automated) Image 54 (transparency) Image failsafe Impulses 55 Labels 55 Lines 56 Linespoints 56 Points 56 Polar 56 Steps 57 Rgbalpha 57 Rgbimage 57 Vectors 57 Xerrorbars 58 Xyerrorbars 58
5 CONTENTS gnuplot Yerrorbars 58 Xerrorlines 59 Xyerrorlines 59 Yerrorlines 60 3 ( ) (3D (surface) plots) 60 2 (set view map) III (Commands) 60 Cd 61 Call 61 Clear 62 Do 62 Evaluate 62 Exit 63 Fit 63 (adjustable parameters) Fit (fit beginners guide) (error estimates) (statistical overview) (practical guidelines) (control) (control variables) (control environment) (multi-branch) (starting values) (tips) Help 69 History 70 If 70 If-old (iteration) 71 Load 71
6 6 gnuplot 4.6 CONTENTS Lower 72 Pause 72 Plot 73 (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 Smooth Acsplines Bezier Csplines Sbezier Unique Frequency Cumulative Cnormal Kdensity (special-filenames) Thru Using
7 CONTENTS gnuplot Using (using examples) (pseudocolumns) Xticlabels X2ticlabels Yticlabels Y2ticlabels Zticlabels Volatile Errorbars Errorlines (functions) (parametric) (ranges) (iteration) Title With Print 94 Pwd 94 Quit 94 Raise 94 Refresh 94 Replot 95 Reread 95 Reset 96 Save 96 Set-show 97 Angles Arrow Autoscale (parametric) (polar) Bars Bind Bmargin Border Boxwidth
8 8 gnuplot 4.6 CONTENTS 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 Locale Logscale Macros Mapping Margin
9 CONTENTS gnuplot 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 (gamma correction) Postscript Pointintervalbox Pointsize Polar
10 10 gnuplot 4.6 CONTENTS 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 Vrange X2data X2dtics X2label X2mtics
11 CONTENTS gnuplot 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 Ztics Cblabel Cbmtics Cbrange Cbtics
12 12 gnuplot 4.6 CONTENTS Shell 169 Splot 169 (datafile) Matrix (grid data) Splot (splot surfaces) Stats ( ) 173 System 174 Test 174 Undefine 174 Unset 175 Terminal Update 175 While 175 IV (Terminal) Aed Aifm Aqua Be (command-line options) (monochrome options) (color resources) (grayscale resources) (line resources) Cairolatex Canvas Cgi Cgm CGM (font) CGM (fontsize) Cgm linewidth Cgm rotate Cgm solid
13 CONTENTS gnuplot 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 Lua tikz Macintosh Mf METAFONT Mif Mp
14 14 gnuplot 4.6 CONTENTS 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) (text-menu) wgnuplot.mnu Wgnuplot.ini Wxt X X11 (x11 fonts)
15 CONTENTS gnuplot (command-line options) (monochrome options) (color resources) (grayscale resources) (line resources) X11 pm3d (pm3d resources) X11 (other resources) Xlib V (Bugs) 235 (limitations) 235 (External libraries) 236 VI Index 236
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. 230) 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. 70), while (p. 175),do (p. 62) plot, set iteration (p. 71) 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. 125) gnuplotrc /.gnuplot initialization (p. 39) (linetype) bgnd bgnd (p. 36) (New plot styles) boxplot (p. 45), circles (p. 47), ellipses (p. 48),fillsteps (p. 50)
20 20 gnuplot 4.6 (Revised polar axes) x, y set polar (p. 144), set rrange (p. 146) 2 3 plot smooth kdensity smooth cumulative dgrid3d splot (kernel) smooth (p. 81), dgrid3d (p. 110) (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. 173) / 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. 109) \ (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. 165)) 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. 159), set timefmt (p. 156) 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. 55), using xticlabels (p. 86), plot title (p. 91),using (p. 85) (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. 112) ) &
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. 63) 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. 217) (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. 85) {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. 85) (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. 63) user-defined variables (p. 31), reset errors (p. 96),mouse variables (p. 38), fit (p. 63) (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. 116), functions (p. 88), gnuplot-defined variables (p. 31),macros (p. 40), 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. 215)
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. 73) 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. 125) : 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. 106), set palette (p. 139), cbrange (p. 169) / / 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. 174) "colorname" gnuplot show colornames (p. 106) "#RRGGBB" "#" 16 RRGGBB ( ) = + #FF00FF 16 (255 << 16) + (0 << 8) + (255) 2 palette frac 0 1 palette cb set cbrange (p. 169), set colorbox (p. 105) "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. 128) 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. 128) Bind space gnuplot configure enable-rase-console <space> gnuplot gnuplot -ctrlq gnuplot X gnuplot*ctrlq ctrl-space x11 command-line-options (p. 232) (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 (Plotting) gnuplot 3 plot, splot, replot plot 2 splot 3 ( 2 ) replot plot splot plot 3 splot plot xy set polar (p. 144) 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. 119) 3 splot datafile (p. 170) set contour (p. 106), set cntrparam (p. 104) splot x2 y2 z plot (Startup (initialization)) gnuplot gnuplotrc gnuplot show loadpath Unix.gnuplot GNUPLOT.INI (Windows OS/2 GNUPLOT ; Windows GNUPLOT USEPROFILE ) gnuplot (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
40 40 gnuplot 4.6 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. 114), sprintf (p. 28) [begin:end] begin end 1 * str[:] str[*:*] str (Substitution) gnuplot 2 (ASCII (ASCII 64) (Substitution backquotes) plot datafile special-filenames (p. 83) gnuplot : leastsq leastsq ( ) 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
41 gnuplot 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/.*//" mydata.ipn lines mycomputer = " uname -n " uname -n mycomputer machine_id = "uname -n" mycomputer = " id sprintf 3 machine_id = sprintf( " uname -n " ) mycomputer
42 42 gnuplot 4.6 (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) \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)
43 gnuplot / (Time/Date) gnuplot / set xdata time, set ydata time / 2000 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() ( ) ( ) 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. 115) Part II (plotting styles) gnuplot set style data set style function plot splot
44 44 gnuplot 4.6 plot splot : plot data with boxes, sin(x) with lines lines y 1 (x ) x, y 2 using (p. 85) 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 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
45 gnuplot (fillstyle) set style fill (p. 149) 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 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 ( )
46 46 gnuplot 4.6 # 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. 148), bars (p. 101), boxwidth (p. 102), fillstyle (p. 149),candlesticks (p. 46) Boxxyerrorbars 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. 149), boxes (p. 44) 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
47 gnuplot (6 6 7 ) variable color ( linecolor (p. 35), rgbcolor variable (p. 36)) (box-and-whisker plot) whiskerbars (candlestick) ( ) < ( ) ( ) < ( ) fillstyle "empty" fillstyle (p. 149) fillstyle set bars (p. 101),financebars (p. 50) candlestick finance # 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. 102), set bars (p. 101), set style fill (p. 149), boxplot (p. 45) 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
48 48 gnuplot 4.6 # 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. 133), fillstyle (p. 149) Ellipses 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. 153)) x ellipse ( set style ellipse (p. 153)) 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. 133), set style ellipse (p. 153), fillstyle (p. 149) Dots
49 gnuplot dots (post, pdf ) linewidth 1 : y # x 2 : x y 3 : x y z # 3D (splot) Filledcurves 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
50 50 gnuplot 4.6 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)) x (high) (low) (open) (close) set bars : set bars (p. 101), candlesticks (p. 46) 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. 57) Histeps
51 gnuplot 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 ( 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. 149)) 1 ( ) ( ) using xticlabels x errorbars clustered clustered (y ) 2 : y yerr # y-yerr y+err 3 : y ymin yman # 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
52 52 gnuplot 4.6 ) x=2 2 ( set style fill (p. 149)) columnstacked ( ) x=1 2 x=2 ( ) set boxwidth set style fill histograms x x1 y y1 y2 plot histograms histogram x1 x2 : 2, 4, 6,... 3, 5, 7, (clustered; ) plot (iteration) iteration (p. 71) 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 4 set style fill solid 1 border lt -1 3 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
53 gnuplot x= x= gnuplot 10 key 8 x set style histogram columnstacked 0 plot u 5:key(1) # 1 key plot u 5 title columnhead # ClassA Columnstacked 2 ClassB 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 2 2 x= ClassA ClassB ClassA ClassB Set A Set B (automated) plot (iteration) iteration (p. 71) 3 8 set style histogram columnstacked plot for [i=3:8] "datafile" using i title columnhead
54 54 gnuplot 4.6 Image image, rgbimage, rgbalpha 2 3 (PNG ) 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. 77),keywords center (p. 77), keywords rotate (p. 77) x y 2 binary keywords dx (p. 77), dy (p. 77) 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 <
55 Saint-Lô Cahors Foix Guéret Tulle Mende Privas Bar-le-Duc Lons-le-Saunier Vesoul Digne-les-Bains gnuplot , Image failsafe 2 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 Bordeaux Mont-de-Marsan 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 Périgueux Agen Montauban Auch Toulouse PauTarbes Carcassonne Dijon Besançon Annecy Clermont-FerrandVilleurbanne Lyon Chambéry Saint-Étienne Grenoble Le Puy-en-Velay Aurillac Valence Rodez Albi Chaumont Mâcon Bourg-en-Bresse Avignon Nîmes Montpellier Aix-en-Provence Marseille Toulon Metz Nancy Strasbourg Épinal Colmar Gap Mulhouse Belfort Nice Perpignan Bastia Ajaccio ( set label (p. 122)) 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. 149)
56 56 gnuplot 4.6 Lines 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. 125), linewidth (p. 151), linestyle (p. 151) 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
57 gnuplot (polar) set polar 2 <x>,<y> < >,< > gnuplot 2 lines filledcurves ( pdflatex ) : set polar (p. 144), set rrange (p. 146),set size square (p. 146) 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
58 58 gnuplot 4.6 plot... with vectors arrowstyle 3 plot... using 1:2:3:4:5 with vectors arrowstyle variable arrowstyle (p. 147) : 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. 103), arrowstyle (p. 147) Xerrorbars xerrorbars 2 xerrorbars (error bar) points (x,y) (xlow,y) (xhigh,y) (x-xdelta,y) (x+xdelta,y) (set bars set bars (p. 101)) : 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. 101)) : 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
59 gnuplot yerrorbars ( errorbars) 2 yerrorbars (error bar) points (x,y) (x,y-ydelta) (x,y+ydelta) (x,ylow) (x,yhigh) (set bars set bars (p. 101)) : 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. 101)) : 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. 101)) : 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
60 60 gnuplot 4.6 Yerrorlines yerrorlines ( errorlines) 2 yerrorlines linespoints (x,y) (x,yydelta) (x,y+ydelta) (x,ylow) (x,yhigh) ( set bars (p. 101)) : 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. 117), pm3d depthorder (p. 137) splot Z XY set contour (p. 106) 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. 158) X axis projected contours using 'set view map' Y axis Part III (Commands) Y axis X axis gnuplot
61 gnuplot "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"
62 62 gnuplot 4.6 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. 129),set size (p. 146), set origin (p. 134) Do do for <iteration-spec> { <commands> <commands> } {} "{" do ( ) if/else <iteration-spec> iteration (p. 71) 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> :
63 gnuplot 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. 40) 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. 89) <expression> f(x) f(x,y) gnuplot <datafile> plot plot datafile (using, every,...) smooth thru fit plot datafile (p. 78) 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
64 64 gnuplot 4.6 s ( plot datafile using (p. 85)) 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. 68) 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" ) Ctrl-C (1) (2) (3) FIT SCRIPT gnuplot FIT SCRIPT replot fit update update (p. 175) (adjustable parameters) via 2 2
65 gnuplot via = # = # FIXED fit # FIXED Fit (fit beginners guide) fit (SSR:Sum of the Squared Residuals) ( ) SSR ( 1.0) (WSSR) fit error estimates (p. 66) ( ) 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. 67)) ( fit (p. 63)) FIT CONVERGED fit 1 0 ( ) fit fit error estimates (p. 66) ( ) fit plot smooth
66 66 gnuplot 4.6 (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 - ( ) " " " " (practical guidelines) fit 1
67 gnuplot 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 0 ( ) Marquardt-Levenberg lambda ( ) ML FIT_START_LAMBDA
68 68 gnuplot 4.6 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. 68) (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) ) fit SSR ( ) " (undefined value)" gnuplot
69 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 fit 1 "singular matrix" Marquardt-Levenberg (fudgit) "Nonlinear fitting is an art! (!)" Help help help {< >}
70 70 gnuplot 4.6 < > 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. 70) If-old gnuplot 4.4 if/else 1 { }
71 gnuplot 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. 95) (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. 90), do (p. 62) Load load save load load load load call comments (p. 23) load call (p. 61) load "< >"
72 72 gnuplot 4.6 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) pause OS ( )
73 gnuplot : 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. 169) 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. 78), functions (p. 88) : 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. 135) (axes) (axes) 4 ; <axes> x1y1 ; x2y2 ; x1y2 ; x2y1 plot ( )
74 74 gnuplot 4.6 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. 170), binary general (p. 74) 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, filetype <binary list> matrix ( binary matrix (p. 170) ) ( gnuplot show datafile binary ) <binary list> filetype
75 gnuplot 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= plot <file_name> binary record=356:356:356 skip=512:256: Format (float) format format="%uchar%int%float"
76 76 gnuplot 4.6 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. 109)) Avs avs AVS 2 long (xwidth ywidth) alpha/red/green/blue 4 Edf edf EDF ESRF (ESRF Data Format) edf ehf ( ESRF Header Format) Png gnuplot png/gif/jpeg libgd plot file.png binary filetype=png set datafile binary filetype=auto
77 gnuplot 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 Rotate (transpose) (flip) 2 rotate, plot, splot 2 pi degrees rotate=1.5708, rotate=0.5pi, rotate=90deg
78 78 gnuplot 4.6 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>} {using <using list>} {smooth <option>} {volatile} {noautoscale} binary, index, every, thru, using, smooth binary ( ASCII ) index every using (thru using ) smooth (splot smooth thru ) noautoscale ( ) ASCII (using ) # (VMS!) (x,y) plot ( set style errorbars (p. 58),set style errorlines (p. 60)) (x,y,ydelta), (x,y,ylow,yhigh), (x,y,xdelta), (x,y,xlow,xhigh), (x,y,xlow,xhigh,ylow,yhigh) using ( ) "second column" 3.0 e, E set datafile fortran fortran d, D, q, Q (y ) x gnuplot 0
79 gnuplot ( ) 1 plot ; (line style ) 2 index (p. 80) autoscale ( set autoscale (p. 99)) 2 i) splot ii) 2 x x2 x x (x1) x2 reset; plot -, - axes x2y e e set autoscale fixmin/fixmax ( labels (p. 55)) Every every 1 ( glossary (p. 34)) plot file every {< >} {:{< >} {:{< >} {:{< >} {:{< >} {:< >}}}}} < > < > < > < > < > < > 0 ; 1 every : every :::3::3 every :::::9 every 2:2 every ::5::15 plot (simple.dem) # 4 (0 ) # 10 # 1 1 # # 5 15 #
80 80 gnuplot 4.6,, 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. 170) Index index
81 gnuplot 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. 86), 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] Smooth gnuplot smooth fit smooth {unique frequency cumulative cnormal kdensity csplines acsplines bezier sbezier} unique, frequency, cumulative, cnormal plot x ( set samples (p. 146)) ( line style ) autoscale autoscale smooth acsplines csplines x set xrange unique frequency 1 acsplines 4 3 smooth Acsplines acsplines x ( smooth unique (p. 82)) using 3
82 82 gnuplot 4.6 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. 82)) 3 Sbezier sbezier ( unique (p. 82)) bezier Unique unique x x y 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 ( )
83 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 ++ xrange yrange 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 - gnuplot index every plot plot - index 0, - index e e plot -,
84 84 gnuplot 4.6 e e replot - 1 : replot (p. 95), refresh (p. 94) ( ) 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" 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
85 gnuplot Using using plot file using <entry> {:<entry> {:<entry>...}} { format } format C scanf ( ) ( ) datafile separator (p. 108) <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" plot set key autotitle columnhead 1...N gnuplot " " $0 column(0) :pseudocolumns (p. 86) <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. 147), fit (p. 63) 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"
86 86 gnuplot 4.6 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 plot file using 1:2 plot (#) (pseudocolumns) plot using " " (pseudocolumns) column(0) 0 2 $0 column(-1) 0 1 column(-2) 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() :
87 gnuplot 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. 86) Yticlabels plot using xticlabels (p. 86) Y2ticlabels plot using xticlabels (p. 86) Zticlabels plot using xticlabels (p. 86) Volatile plot volatile replot refresh gnuplot refresh (p. 94) 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. 88))
88 88 gnuplot 4.6 set bars ( set bars (p. 101)) plot using (p. 85), plot with (p. 91), set style (p. 147) 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 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. 101)) (autoscaling) ON plot using (p. 85), plot with (p. 91), set style (p. 147) (functions) plot, splot set samples (p. 146), set isosamples (p. 119) : approx(ang) = ang - ang**3 / (3*2) plot sin(x) title "sin(x)", approx(x) title "approximation" set style function (p. 150) expressions functions (p. 26) user-defined (p. 31)
89 gnuplot (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> ( 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. 99) plot splot set xrange set yrange ( ) gnuplot (timefmt) set timefmt (p. 156) : plot cos(x)
90 90 gnuplot 4.6 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) 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
91 gnuplot 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 key autotitles ( ) title notitle plot set key set key (p. 119) : 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>}
92 92 gnuplot 4.6 } {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. 149) plotting styles (p. 43) set style function set style data 6 test <line type> <point type> ( ) test <line width> <point size> set pointsize (p. 144) <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. 139), linetype (p. 125) nohidden3d splot set hidden3d nohidden3d hidden3d nohidden3d
93 gnuplot ( ) 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 "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
94 94 gnuplot 4.6 Print print < > pause 0 < > gnuplot print < > {, < >,...} expressions (p. 26) set print Pwd pwd GPVAL PWD show variables all (p. 157) Quit exit quit END-OF-FILE gnuplot (clear ) 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 #
95 gnuplot 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 plot (splot) command-line-editing (p. 22) history : show plot (p. 135) 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
96 96 gnuplot 4.6 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 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. 154) "-" save popen (Unix ) save gnuplot
97 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. 96) show set timefmt set unset iteration (p. 71) 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
98 98 gnuplot 4.6 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" "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. 136) ( ) empty metafont, metapost, latex, tgif ( set style line (p. 151)) <line type> ( ) <linewidth> ( ) ( ) set arrow lt, lw front back ( ) front
99 gnuplot : (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 unset arrow 2 unset arrow ( ) show arrow Autoscale (autoscale) x, y, z (plot) autoscale plot noautoscale datafile (p. 78) 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 )
100 100 gnuplot 4.6 (y z) y z (plot x splot x,y ) 1 x (z = f(x,y) y ) set xrange (p. 161) (parametric) ( set parametric (p. 135)) 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. 112)) x2range y2range xrange yrange xrange yrange fixmin, fixmax : y ( ): set autoscale y y (y ): set autoscale ymin 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
101 gnuplot set autoscale t splot x, y, z (polar) (set polar) xrange yrange set rrange xrange yrange xrange yrange set rrange (p. 146) trange trange ( ) 1 2 Bars set bars (errorbar) boxplot set bars {small large fullwidth <size>} {front back} unset bars show bars 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. 127) 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
102 102 gnuplot 4.6 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 <line style>, <line type>, <line width> ( ) plot 2 : xtics (p. 162) "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
103 gnuplot set boxwidth {<width>} {absolute relative} show boxwidth set boxwidth relative relative (boxwidth) x (absolute) x ( set log (p. 126)) boxwidth x=1 " " ( x ) x x=1 boxes boxerrorbars style boxes (p. 44),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 Clabel gnuplot clabel ( ) z set clabel { <format> } unset clabel show clabel %8.3g 3 key clabel ( +1) set contour (p. 106) Clip gnuplot set clip <clip-type> unset clip <clip-type> show clip
104 104 gnuplot 4.6 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 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
105 gnuplot 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 10 ( (end) ): set cntrparam levels 10 set cntrparam levels incremental 100,50 set contour (p. 106) set clabel (p. 103) (contours.dem) (discrete.dem). (colorbox) pm3d palette min z max z unset colorbox (colorbox) set colorbox set colorbox { { vertical horizontal }
106 106 gnuplot 4.6 { 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. 136), set palette (p. 139), x11 pm3d (p. 234), set style line (p. 151) (colornames) gnuplot pm3d gnuplot show colornames set style line 1 linecolor rgb "sea-green" (contour) set contour splot (grid data) grid data (p. 172) set dgrid3d set contour {base surface both} unset contour show contour 3 base x/y surface both base
107 gnuplot set cntrparam (p. 104) set clabel (p. 103) ( set surface (p. 153)) 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. 170) (contours.dem) (discrete.dem). Data style set style data (p. 149) Datafile set datafile plot, splot, fit (field) 6 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
108 108 gnuplot 4.6 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) ? 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)
109 gnuplot 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 "#!%" Set datafile binary set datafile binary plot splot <binary list> binary matrix (p. 170),binary general (p. 74) 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 #
110 110 gnuplot 4.6 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(). ( ) Dgrid3d set dgrid3d splot grid data (p. 172) 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
111 gnuplot 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 ) qnorm 3 (,) norm dgrid3d gnuplot dgrid3d.dem: scatter.dem: dgrid3d dgrid3d
112 112 gnuplot 4.6 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 cp850 - OS/2 cp852 - / OS/2 cp950 - MS Big5 (emf terminal ) cp / MS Windows cp (8 ) cp MS Windows (Latin5 ) sjis - Shift_JIS utf8 - Unicode ( ) set encoding locale LC ALL, LC CTYPE, LANG wxt, cairopdf UTF-8 EUC-JP
113 gnuplot set locale (p. 126), set decimalsign (p. 110) Fit fit fit set fit {logfile {"<filename>"}} {{no}errorvariables} {{no}quiet} 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) set fit quiet Fontpath fontpath postscript fontpath 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
114 114 gnuplot 4.6 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. 162) set decimalsign (p. 110) ( ) (electron.dem). Gprintf gprintf("format",x) gnuplot set format, set timestamp gnuplot C sprintf() gprintf() gnuplot sprintf("format",x1,x2,...) gnuplot :format specifiers (p. 114) (format specifiers) ( / )
115 gnuplot %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. 156) (time/date specifiers) (time/date mode)
116 116 gnuplot 4.6 %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. 150) Functions show functions show functions gnuplot expressions (p. 26) (spline.dem)
117 gnuplot (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. 162)) z set border (p. 101) Hidden3d set hidden3d ( splot (p. 169)) set hidden3d {defaults} { {front back} {{offset <offset>} {nooffset}} {trianglepattern <bitpattern>} {{undefined <level>} {noundefined}} {{no}altdiagonal}
118 118 gnuplot 4.6 unset hidden3d show hidden3d {{no}bentover} } gnuplot ( splot datafile (p. 170)) with lines with linespoints hidden3d ( set contour (p. 106)) (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. 146), set isosamples (p. 119) 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 4 undefined altdiagonal
119 gnuplot 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. 146),set hidden3d (p. 117) isosamples samples Key set key
120 120 gnuplot 4.6 (key) plot ( splot) title, with plot title (p. 91),plot with (p. 91) 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. 121) Left, Right ( ) (reverse) (box {...}) (linetype), (linewidth) (linestyle) key key key set key opaque key key key key set key noopaque invert (histograms) <height increment> ( ) plot splot autotitles (title) noautotaitle (s)plot... title...
121 gnuplot 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. 103) : 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 b/l b/c b/r
122 122 gnuplot 4.6 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 c/lm b/lm t/rm c/rm 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 (label) set label (label)
123 gnuplot 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. 39), sprintf (p. 28), gprintf (p. 114) 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. 139) 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. 91)) (point) mouse off ( ) nopoint <pointstyle> pointsize 1,1 <pointstyle> 0,0 offset <offset> <offset> x,y x,y,z first, second, graph, screen, character coordinates (p. 23)
124 124 gnuplot 4.6 ( ) timefmt set xdata (p. 159), set timefmt (p. 156) EEPIC, Imagen, LaTeX, TPIC \\ ( labels (p. 55)) : (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
125 gnuplot (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. 127) Loadpath loadpath call, load, plot, splot loadpath set loadpath {"pathlist1" {"pathlist2"...}} show loadpath
126 126 gnuplot 4.6 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. 110) set encoding (p. 112) 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. 162) : 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
127 gnuplot 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. 134) 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 )
128 128 gnuplot 4.6 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. 122) Doubleclick (ms) 1 (clipboard) 300 ms 0 ms
129 gnuplot 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
130 130 gnuplot 4.6 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. 134), set size (p. 146) : 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. 127) 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
131 gnuplot [ 6 ] unset multiplot /2 0.9/3 multiplot (multiplt.dem) Mx2tics x2 ( ) set mx2tics set mxtics (p. 131) 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. 162)
132 132 gnuplot 4.6 My2tics y2 ( ) set my2tics set mxtics (p. 131) Mytics y set mytics set mxtics (p. 131) Mztics z set mztics set mxtics (p. 131) Object set object 2 rectangle ( ) circle ( ) ellipse ( ) set style rectangle ( ) set style fill set object <index> <object-type> <object-properties> {front back behind} {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 <colorspec> fillcolor fc <fillstyle> colorspec (p. 35), fillstyle (p. 149) default set style rectangle (p. 152) 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 : # 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
133 gnuplot # 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. 153)) 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 Polygon
134 134 gnuplot 4.6 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 set output {"<filename>"} show output
135 gnuplot 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. 146)) 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 show plot add2history history replot
136 136 gnuplot 4.6 Pm3d pm3d splot 3 4 / / ( ): set pm3d set pm3d { } show pm3d unset 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 } 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. 137) 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. 139), set cbrange (p. 169), set colorbox (p. 105) demo/pm3d.dem
137 gnuplot Pm3d (algorithm) / splot data file ( ) pm3d z ( color using (p. 85)) ( ) 4 corners2color 2 ( ) pm3d ( ) splot: 4 z ( corners2color) [0:1] zrange cbrange [min color z,max color z] / set palette (p. 139) splot: / z z 4 1. gnuplot iso curve ( ) (scan) 1 2. gray color (scale) " (colorbox)" set colorbox (p. 105),set cbrange (p. 169) 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. 137) (scanorder) pm3d scansautomatic scansforward scansbackward (scan) 2 (flush begin) (flush end) (flush center) flush (center end) scansautomatic flush center flush end scansautomatic scansforward
138 138 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. 158),set colorbox (p. 105) Hidden3d set pm3d hidden3d depthorder
139 gnuplot 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
140 140 gnuplot 4.6 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. 174) ( 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
141 gnuplot 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 : ( )
142 142 gnuplot 4.6 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
143 gnuplot 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. 74) 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
144 144 gnuplot 4.6 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. 91) Polar set polar xy set polar unset polar show polar (t) t [0:2*pi] [0:360] ( set angles (p. 97)) unset polar xy set polar splot splot set mapping (p. 127) t r=f(t) t trange ( ) rrange, xrange, yrange x,y
145 gnuplot rrange set rrange (p. 146), set xrange (p. 161) : 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. 144), rrange (p. 146), rtics (p. 146), set grid (p. 117) Rmargin set rmargin set margin (p. 127)
146 146 gnuplot 4.6 Rrange set rrange xrange yrange [-(rmax-rmin) : +(rmax-rmin)] xrange yrange ( ) rrange rrange rmin rmin = 0 Rtics set rtics mirror polar (p. 144), set xtics (p. 162) Samples set samples set samples <samples_1> {,<samples_2>} show samples 100 / 2 plot smooth 3 set dgrid3d (p. 110) 2 <samples 1> samples v- <samples 1> u- <samples 2> <samples 1> <samples 2> <samples 1> : set isosamples (p. 119) 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 )
147 gnuplot <r> <r>=-1 x y ( 1) set view equal xy set view equal (p. 158) <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. 158) 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. 91) plotting styles (p. 43) 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> set style ellipse size <size> units {xy xx yy} Set style arrow test set style arrow
148 148 gnuplot 4.6 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. 136) ( ) empty metafont, metapost, latex, tgif ( set style line (p. 151)) <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. 98) Boxplot set style boxplot boxplot set style boxplot {range <r> fraction <f>} {{no}outliers} {pointtype <p>} {candlesticks financebars}
149 gnuplot {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. 45), candlesticks (p. 46), financebars (p. 50) Set style data set style data set style data <plotting-style> show style data plotting styles (p. 43) show style data Set style fill set style fill boxes, histograms, candlesticks, filledcurves (fillstyle) set style rectangle (p. 152)
150 150 gnuplot 4.6 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. 43) set style function <plotting-style> show style function Set style increment set linetype set linetype (p. 125)
151 gnuplot 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. 125) index index ( <point size> set pointsize ) pointinterval linespoints 0 ( ) set style line N pi 3 N with linespoints 3 ( ) linewidth pointsize
152 152 gnuplot 4.6 linecolor <colorspec> linetype <colorspec> ( lc, lt) RGB 3 gnuplot cbrange colors (p. 34), colorspec (p. 35),set palette (p. 139), colornames (p. 106), cbrange (p. 169) 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. 139), set pm3d (p. 136) set style line 10 linetype 1 linecolor rgb "cyan" RGB 10 Set style circle set style circle {radius {graph screen} <R>} "with circles" 2 (x,y) "set style circle radius graph 0.02" 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. 149) 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
153 gnuplot Set style ellipse set style ellipse {units xx xy yy} {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 object set object ellipse (p. 133) 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. 106) Table table plot splot X Y {Z} R R 3 "i" "o" (undefined) "u" ( set format (p. 114)) plot set contour (p. 106) ( set samples (p. 146), set dgrid3d (p. 110)) set table {"outfile"} plot <whatever> unset table set output unset table
154 154 gnuplot 4.6 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. 176) 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} { format "formatstring" } { font "name{,<size>}" } { textcolor <colorspec> } set tics {front back} unset tics show tics
155 gnuplot (x, y, z, x2, y2, cb) tics front back 2D (splot ) 1 axis border gnuplot ( ) axis ( :set border (p. 101)) 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. 162) set mxtics (p. 131) Ticslevel set xyplane (p. 165) Ticscale set ticscale set tics scale Timestamp set timestamp set timestamp {"<format>"} {top bottom} {{no}rotate} {offset <xoff>{,<yoff>}} {font "<fontspec>"} unset timestamp show timestamp (format) asctime() "%a %b %d %H:%M:%S %Y" ( 4 ) top bottom ( ) rotate
156 156 gnuplot 4.6 <xoff> <yoff> (offset) <font> timestamp time : set timestamp "%d/%m/%y %H:%M" offset 80,-2 font "Helvetica" set timefmt (p. 156) 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. 114) 2 %y UNIX98 2 set xdata (p. 159), time/date (p. 43) : set timefmt "%d/%m/%y\t%h:%m"
157 gnuplot 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. 139) noenhanced (enhanced text) set title syntax (p. 42) Tmargin set tmargin set margin (p. 127) Trange set trange x,y set xrange (p. 161) Urange set urange set vrange splot x,y,z set xrange (p. 161) Variables show variables gnuplot GPVAL, MOUSE, FIT, TERM show variables # GPVAL_ show variables all # GPVAL_ show variables NAME # NAME
158 158 gnuplot 4.6 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. 165) Vrange set urange set vrange splot ( ) x, y, z set xrange (p. 161)
159 gnuplot X2data set x2data x2 ( ) ( ) set xdata (p. 159) X2dtics set x2dtics x2 ( ) set xdtics (p. 160) X2label set x2label x2 ( ) set xlabel (p. 160) X2mtics set x2mtics x2 ( ) 1 set xmtics (p. 161) X2range set x2range x2 ( ) set xrange (p. 161) X2tics set x2tics x2 ( ) set xtics (p. 162) X2zeroaxis set x2zeroaxis x2 ( ) (y2 = 0) set zeroaxis (p. 168) Xdata x set xdata {time} show xdata ydata, zdata, x2data, y2data, cbdata time gnuplot set timefmt (p. 156) ( ) (timefmt) (label) strftime (unix "man strftime" ) set format x "string" 10 (2 % %f %g ) gnuplot
160 160 gnuplot 4.6 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. 114) 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" 2 2 x, x2, y, y2 ( ) rotate by < > 3 x, y rotate parallel
161 gnuplot 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. 114) 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> writeback set xrange writeback plot set xrange restore
162 162 gnuplot 4.6 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:] Xtics x ( ) set xtics unset xtics set xtics ( ) y,z,x2,y2
163 gnuplot 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 <start>, <incr>, <end> <start> <end> <incr> <end> <incr> <start> <end> <start> - <end> + <incr> ( ) <start> <incr> ( rotate by <angle> offset <offset>
164 164 gnuplot 4.6 ) 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. 114) 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" ) x 0.5 ( ) set format set xtics (<label>) ( ) set mxtics set xtics ("" <pos> 1,...)
165 gnuplot 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 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. 158), set zeroaxis (p. 168)
166 166 gnuplot 4.6 Xzeroaxis set xzeroaxis y = 0 set zeroaxis (p. 168) Y2data set y2data y2 ( ) ( ) set xdata (p. 159) Y2dtics set y2dtics y2 ( ) set xdtics (p. 160) Y2label set y2label y2 ( ) set xlabel (p. 160) Y2mtics set y2mtics y2 ( ) 1 set xmtics (p. 161) Y2range set y2range y2 ( ) set xrange (p. 161) Y2tics set y2tics y2 ( ) set xtics (p. 162) Y2zeroaxis set y2zeroaxis y2 ( ) (x2 = 0) set zeroaxis (p. 168) Ydata set ydata y ( ) set xdata (p. 159) Ydtics set ydtics y set xdtics (p. 160) Ylabel y set xlabel (p. 160)
167 gnuplot Ymtics set ymtics y set xmtics (p. 161) Yrange set yrange y set xrange (p. 161) Ytics set ytics y ( ) set xtics (p. 162) Yzeroaxis set yzeroaxis x = 0 (y ) set zeroaxis (p. 168) Zdata set zdata z ( ) set xdata (p. 159) Zdtics set zdtics z set xdtics (p. 160) Zzeroaxis set zzeroaxis (x=0,y=0) 2D set view map splot set zeroaxis (p. 168), set xyplane (p. 165) Cbdata ( ) set xdata (p. 159) Cbdtics cbdtics set xdtics (p. 160) Zero zero 0.0 set zero <expression> show zero gnuplot ( ) zero ( ) gnuplot ( ) zero 1e-8 1e-3 (= ) zero zero 0.0
168 168 gnuplot 4.6 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. 160) Zmtics set zmtics z set xmtics (p. 161) Zrange set zrange z splot plot set xrange (p. 161) Ztics set ztics z ( ) set xtics (p. 162) Cblabel set xlabel (p. 160) Cbmtics set cbmtics set xmtics (p. 161)
169 gnuplot Cbrange set cbrange with pm3d, with image with palette (palette) (cb- ) splot zrange splot... pm3d palette zrange cbrange set cbrange set xrange (p. 161) set palette (p. 139), set colorbox (p. 105) Cbtics set cbtics ( ) set xtics (p. 162) 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" Splot splot 3 ( 2 ) plot splot x, y, z plot 2 x2, y2 2 3 plot (p. 73) splot {<ranges>} {<iteration>} <function> "<datafile>" {datafile-modifiers}} {<title-spec>} {with <style>} {, {definitions{,}} <function>...} <function> 3
170 170 gnuplot 4.6 splot xy z xy set xyplane splot set view :set view (p. 158), set xyplane (p. 165) 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. 135) (datafile) plot splot splot <file_name> {binary <binary list>} {{nonuniform} matrix} {index <index list>} {every <every list>} {using <using list>} "" "-" plot special-filenames (p. 83) 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 gnuplot "grid data" (set contour) (set hidden3d) splot grid data (p. 172) 3 splot (parametric) Matrix gnuplot matrix ( ) 2 1 x, y matrix ASCII matrix splot file matrix using 1:2:3 splot file binary general using 1:2:3 # ASCII # matrix z
171 gnuplot 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 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. 74) )
172 172 gnuplot splot datafile.dat "datafile.dat" # The valley of the Gnu "datafile.dat" 4*3 ( 3 4 ) ( ) 1 x y (grid data) x y gnuplot (grid data) 3 ( set isosamples (p. 119)) ( splot datafile (p. 170)) " " x, y u,v set isosamples (p. 119) 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
173 gnuplot Splot (splot surfaces) splot plot set isosamples (p. 119) set surface (p. 153) set hidden3d 3 set view splot ( set contour (p. 106)) ( set cntrparam (p. 104)) set isosamples set samples data-file ( set dgrid3d (p. 110)) plot plot Stats ( ) stats filename [using N[:M]] [name prefix ] [[no]output]] 1 2 using plot index, every, using plot (p. 73) xrange, yrange set xrange (p. 161) set print nooutput 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
174 174 gnuplot 4.6 STATS_intercept STATS_sumxy STATS_pos_min_y STATS_pos_max_y # y = Ax + B B # (x*y ) # y x # 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. 169) system("command") gnuplot 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 *
175 gnuplot 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. 71) : 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 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. 63) While
176 176 gnuplot 4.6 while (<expr>) { <commands> } <expr> 0 ( ) if/else if (p. 70) Part IV (Terminal) gnuplot set terminal (p. 154) gnuplot set terminal ( terminal ) Aed767 aed512 aed767 AED 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)
177 gnuplot ( ) <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 (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
178 178 gnuplot 4.6 (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 (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 ( ) ( )
179 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 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. 210) eps pdf latex/dvips eps pdflatex pdf blacktext cairolatex (a) { } LaTeX (b)
180 180 gnuplot 4.6 [ (t,b,l,r,c 2 ) ]{ } LaTeX LR-box \rule{}{} pslatex (p. 217) \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 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 ( )
181 gnuplot 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 \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
182 182 gnuplot 4.6 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> </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>"}
183 gnuplot {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 ) 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
184 184 gnuplot 4.6 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 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)
185 gnuplot 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 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 )
186 186 gnuplot 4.6 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) 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]
187 gnuplot 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> }}}}} (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 :
188 188 gnuplot 4.6 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 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 ( )
189 gnuplot 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}} 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
190 190 gnuplot 4.6 (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 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>}
191 gnuplot 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. 217) 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 blacktext epslatex (a) { } LaTeX (b) [ (t,b,l,r,c 2 ) ]{ } LaTeX LR-box \rule{}{} pslatex (p. 217) \shortstack set ylabel [r]{\shortstack{first line \\ second line}} set label back front back
192 192 gnuplot 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 [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
193 gnuplot 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 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}
194 194 gnuplot 4.6 (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> 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
195 gnuplot (<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. 91) 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}] 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
196 196 gnuplot 4.6 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) 0 set output set term optimize 2 1) 2) nooptimize ( ) gnuplot nooptimize <x,y> 640x480 canvas (p. 22), set size (p. 146) crop nocrop set terminal gif medium size 640,480 background #ffffff
197 gnuplot 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 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
198 198 gnuplot 4.6 Grass grass GRASS gnuplot 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 Hpgl hpgl HP7475A HPGL 2 eject "eject" 6 ISO CP850 set encoding iso set encoding cp850 ( set encoding (p. 112)) 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}
199 gnuplot <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 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 :
200 200 gnuplot 4.6 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 ( ) set term jpeg font arial 11 set term jpeg font "arial,11" fonts <x,y> 640x480 canvas (p. 22), set size (p. 146) 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 { } [
201 gnuplot (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}} 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
202 202 gnuplot 4.6 {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} 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
203 gnuplot 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 7 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
204 204 gnuplot 4.6 \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 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
205 gnuplot 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 \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 :
206 206 gnuplot 4.6 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>}"} 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
207 gnuplot 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 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
208 208 gnuplot 4.6 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 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>"}
209 gnuplot <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 ) 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)
210 210 gnuplot 4.6 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) 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. 112) pango unicode Symbol pdfcairo unicode "the Symbol font" Acrobat Reader "SY.PFB"
211 gnuplot 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 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
212 212 gnuplot 4.6 transparent (transparent) notransparent interlace GIF nointerlace linewidth dashlength PNG 256 truecolor 24 / TrueColor (transparent fill) truecolor fillstyle (p. 149) 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. 146) crop nocrop set terminal png medium size 640,480 background #ffffff medium (16 24bit RGB) 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
213 gnuplot 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. 112) pango unicode Symbol pngcairo 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 ) 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}
214 214 gnuplot 4.6 "Can t find PostScript prologue file... " {clip noclip} {palfuncparam <samples>{,<maxdeviation>}} {size <XX>{unit},<YY>{unit}} {blacktext colortext colourtext} {{font} "fontname{,fontsize}" {<fontsize>}} {fontscale <scale>} postscript prologue (p. 217) 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 10 7 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 )
215 gnuplot size set size BoundingBox fontfile fontfile add postscript Type 1, TrueType gnuplot postscript postscript fontfile (p. 215) 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 LaTeX ) PostScript gnuplot editing postscript (p. 215) 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
216 216 gnuplot 4.6 ( ) fontfile set fontpath GNUPLOT FONTPATH set fontpath (p. 113) ( ) 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 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
217 gnuplot 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. 145) Postscript adobeglyphnames UTF-8 PostScript 0x00FF Unicode ( Latin1 ) unicode unicode Adobe ( ) gnuplot Adobe /alpha noadobeglyphnames gnuplot /uni03b1 Adobe fontfile (p. 215) 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... "
218 218 gnuplot 4.6 postscript prologue (p. 217) 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 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 :
219 gnuplot 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 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>}
220 220 gnuplot 4.6 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. 128) (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 "" # 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
221 gnuplot 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) 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>"}
222 222 gnuplot 4.6 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 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...
223 gnuplot unset multiplot set multiplot (p. 129) [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. 201) set term tikz help 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
224 224 gnuplot 4.6 "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 $ 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
225 gnuplot 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 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
226 226 gnuplot 4.6 Windows - -persist (x11 gnuplot ; Windows /noend -noend ) gnuplot OS gnuplot -persist gnuplot set term gnuplot set term windows close gnuplot Windows windows printing (p. 226) windows EMF graph-menu (p. 226) EMF emf (graph-menu) gnuplot graph (*) Options Copy to Clipboard EMF Save as EMF... EMF Print... Windows Print gnuplot windows printing (p. 226) Bring to Top Color Double buffer 3 ( ) mouse (p. 128), scrolling (p. 129) 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 ( )
227 gnuplot (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 [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
228 228 gnuplot 4.6 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. 227) GraphFont Border, Axis, Line (0 255) 5 (linestyle) 0= 1= 2= 3= 4= wgnuplot.ini Line 2 1 Line1 points 1 graph-menu (p. 226) 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
229 gnuplot "title" gnuplot q close set term wxt <n> close 640x384 wxt replot replot plot (set term wxt <n> ) mouse (p. 128) (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 "" # MS-Windows "Fonts" Unix "fontconfig" pango utf-8 wxt utf-8 locale gnuplot encoding (p. 112) 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 )
230 230 gnuplot 4.6 ( ) "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" 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. 94)
231 gnuplot 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 -*-<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 ;
232 232 gnuplot 4.6 # 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" : 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
233 gnuplot (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 ( ) 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 ( ) ( )
234 234 gnuplot 4.6 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 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
235 gnuplot 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 seeking-assistance (p. 18) (limitations) do while plot -... key key (4.7 ) ( ( ) 0 ) (gnuplot ) gnuplot ( ) erf " " 24 nohidden3d set hidden3d (parametric)
236 236 gnuplot 4.6 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
237 Index.gnuplot, 39 3D, 60 abs, 27 acos, 27 acosh, 27 acsplines, 81 adobeglyphnames, 217 aed512, 176 aed767, 176 aifm, 176 airy, 27 all, 94 angles, 97, 144 Aqua, 176 aqua, 176 arg, 27 arrow, 98, 148 arrowstyle, 58, 147 asin, 27 asinh, 27 atan, 27 atan2, 27 atanh, 27 automated, 53 autoscale, 79, 89, 99 avs, 76 axes, 23, 34, 39, 73 background, 36 backquotes, 40 bars, 46, 47, 50, 58 60, 88, 101 batch/interactive, 18, 21, 63, 72, 97 BE, 177 be, 177 besj0, 27 besj1, 27 bessel, 235 besy0, 27 besy1, 27 bezier, 82 bgnd, 19, 36 binary, 74, 76 bind, 37, 96, 101, 128 bitwise operators, 29 bmargin, 101 border, 101, 117, 155 boxerrorbars, 44, 103 boxes, 44, 46, 103 boxplot, 19, 45 47, 149 boxwidth, 46, 47, 102 boxxyerrorbars, 46 branch, 68 bugs, 235 cairolatex, 179 call, 61, 71 candlesticks, 46, 50, 149 canvas, 22, 196, 200, 212 cbdata, 167 cbdtics, 167 cblabel, 168 cbmtics, 168 cbrange, 35, 136, 137, 152, 169 cbtics, 169 cd, 61 ceil, 27 center, 54 cgi, 182 cgm, 182 circle, 48, 133 circles, 19, 47 clabel, 103, 105, 107, 121 clear, 62 clip, 58, 103 cnormal, 82 cntrparam, 39, 104, 107, 173 color resources, 232 colorbox, 35, 105, , 169 colornames, 35, 106, 152 colors, 34, 35, 92, 141, 152 colorspec, 35, 48, 123, 132, 152, 157 column, 28, 85 columnhead, 19, 28, 85 columnheader, 24, 91, 120 command line editing, 22 command line options, 232 command-line-editing, 95 command-line-options, 38 commands, 60 comments, 17, 23, 71 commentschars, 23, 109 compatibility, 21 context, 185 contour, 39, 60, 103, 105, 106, 118, 153, 173 coordinates, 23, 98, 122, 123, , 148, 155, 157, 160, 163 copyright, 16 corel, 187 cos, 27 cosh, 27 csplines, 82 cubehelix, 142 cumulative, 20, 82 cycle, 125 data, 55, 73, 78, 107 data file, 78 datafile, 39, 63, 78, 99, 107, 118,
238 238 gnuplot 4.6 INDEX datastrings, 24, 55, 91 date specifiers, 115 debug, 187 decimalsign, 110, 113, 114, 126 defined, 28 degrees, 97 depthorder, 60, 137 dgrid3d, 20, 110, 146, 153, 173 division, 26 do, 19, 62, 71 dots, 48 dpu414, 193 dumb, 187 dummy, 100, 112 dx, 54, 77 dxf, 188 dxy800a, 188 dy, 54, 77 edf, 76 editing, 22 editing postscript, 215 eepic, 188 ehf, 76 ellipse, 48, 133, 153 ellipses, 19, 48, 153 elliptic integrals, 28 emf, 189 emtex, 200 emxvesa, 190 emxvga, 190 encoding, 24, 112, 126, 198, 210, 213, 229 encodings, 112 enhanced, 24, 176, 210, 212, 214, 220, 221, 229, 230 environment, 25 eps, 33 epscairo, 190 epslatex, 190 epson 180dpi, 193 epson 60dpi, 193 epson lx800, 193 equal, 147 equal axes, 158 erf, 27 erfc, 27 error estimates, 65 error state, 31, 96 errorbars, 78, 87 errorlines, 78, 87, 88 errors, 31 evaluate, 62 every, 79 example, 80 examples, 85 excl, 194 exists, 28, 40 exit, 63 exp, 27 expint, 27 exponentiation, 29 expressions, 26, 94, 116 factorial, 29 failsafe, 55 FAQ, 18 faq, 18 fig, 194 file, 78 filetype, 76 fill, 45 47, 51, 52 filledcurves, 49 fillsteps, 19, 50 fillstyle, 46 48, 92, 132, 149, 152, 212 financebars, 47, 50, 149 fit, 25, 31, 63, 65, 85, 175 fit parameters, 64 fitting, 65 flipx, 54 floating point exceptions, 107, 235 floor, 27 flush, 137 fontfile, 33, 215, 217 fontpath, 113, 216 fonts, 32, 33, 197, 212, 231 format, 114, 153, 156, 160, 161, 164 format specifiers, 114 fortran, 107 fpe trap, 107 frequency, 82 fsteps, 50 function, 88, 116 functions, 32, 73, 88 gamma, 27, 235 gamma correction, 143 gd, 33 general, 74, 109, 143, 171 geomean, 138 ggi, 195 gif, 33, 196 glossary, 34, 79 gnuplot, 16 gpic, 197 gprintf, 40, 114, 123 GPVAL, 31 graph menu, 226 graph-menu, 226, 228 grass, 198 grayscale resources, 233 grid, 117, 145 grid data, 106, 110, 170, 172 guidelines, 66 hcgi, 182 heatmap, 54
239 INDEX gnuplot help, 69 help desk, 18 hidden3d, 60, 117, 119 histeps, 50 histograms, 51 history, 70 historysize, 119 hotkey, 37 hotkeys, 37 hp2623a, 198 hp2648, 198 hp500c, 198 hpdj, 199 hpgl, 198 hpljii, 199 hppj, 199 ibeta, 27 if, 19, 70, 176 if old, 70 if-old, 70 igamma, 27 imag, 27 image, 54, 57 imagen, 199 impulses, 55 index, 79, 80 initialization, 19, 39 int, 27 internationalization, 236 interval, 151 introduction, 17 inverf, 27 invnorm, 27 isosamples, 39, 88, 118, 119, 146, 172, 173 iterate, 71 iteration, 19, 52, 53, 62, 71, 90, 97, 175 jpeg, 33, 200 kdensity, 20, 82 kdensity2d, 110 key, 91, 119 kyo, 200 label, 55, 122, 128 labels, 24, 55, 79, 124, 128 lambertw, 27 latex, 200 lc, 35 least squares, 63 legend, 119 lgamma, 27 libgd, 236 license, 16 line, 98, 106, 148 line editing, 22 line resources, 233 linecolor, 35, 44, 46, 47, 50, 57 lines, 56 linespoints, 56, 151 linestyle, 56, 151 linetype, 19, 34, 56, 92, 125, 150, 151 linetypes, 34 linewidth, 56, 151 linux, 201 lmargin, 125 load, 71 loadpath, 125 locale, 110, 113, 126, 236 log, 27, 103 log10, 27 logscale, 126 lower, 72 lp, 56 lua, 201, 223 macintosh, 204 macros, 32, 40, 63 map, 60, 138 mapping, 127, 144 margin, 101, 125, 127, 130, 145, 157 Marquardt, 63 matrix, 74, 80, 109 max, 138 mean, 138 median, 138 metafont, 204 metapost, 206 mf, 204 mif, 205 min, 138 missing, 107 mixing macros backquotes, 41 modulo, 29 monochrome options, 232 mouse, 37, 38, 128, 220, 226, 229 mouseformat, 129 mousewheel, 129 mousing, 128 mp, 206 multi branch, 68 multi-branch, 64, 68 multiplot, 62, 129, 223 mx2tics, 131 mxtics, 131, 132, 155 my2tics, 132 mytics, 132 mztics, 132 NaN, 26, 32, 86 nec cp6, 193 negation, 29 new features, 19 newhistogram, 53
240 240 gnuplot 4.6 INDEX NeXT, 208 next, 208 noarrow, 98 noautoscale, 99 noborder, 101 nocbdtics, 167 nocbmtics, 168 nocbtics, 169 noclip, 103 nocontour, 106 nodgrid3d, 110 nofpe trap, 107 nogrid, 117 nohidden3d, 117, 235 nohistorysize, 119 nokey, 119 nolabel, 122 nologscale, 126 nomouse, 128 nomultiplot, 129 nomx2tics, 131 nomxtics, 131 nomy2tics, 132 nomytics, 132 nomztics, 132 nonuniform, 171 nooffsets, 134 noparametric, 135 nopolar, 144 norm, 27 nosurface, 153 notimestamp, 155 nox2dtics, 159 nox2mtics, 159 nox2tics, 159 nox2zeroaxis, 159 noxdtics, 160 noxmtics, 161 noxtics, 162 noxzeroaxis, 166 noy2dtics, 166 noy2mtics, 166 noy2tics, 166 noy2zeroaxis, 166 noydtics, 166 noymtics, 167 noytics, 167 noyzeroaxis, 167 nozdtics, 167 nozmtics, 168 noztics, 168 nozzeroaxis, 167 object, 132 offsets, 127, 134 okidata, 193 one s complement, 29 OpenStep, 208 Openstep, 208 openstep, 208 operator precedence, 29 operators, 29 options, 18 origin, 62, 130, 134 output, 134 palette, 35, 92, 106, 123, 136, 137, 139, 140, 152, 157, 169 parametric, 100, 135 pause, 72 pbm, 209 pcl5, 198 pdf, 32, 209, 236 pdfcairo, 179, 210 pi, 32 placement, 120 plot, 73, 95, 169, 170, 173 plotting, 39 pm, 211 pm3d, 98, 106, 136, 148, 152 pm3d resources, 234 png, 32, 33, 211 pngcairo, 212 pointinterval, 56, 151 pointintervalbox, 144 points, 56 pointsize, 92, 144 polar, 20, 39, 57, polygon, 133 pop, 154 position, 136 postscript, 33, 213, 215 practical guidelines, 66 prescribe, 200 print, 94 printing, 226 projection, 60 prologue, 26, 191, 214, 217, 218 psdir, 145, 217 pseudocolumns, 81, 85, 86 pslatex, 180, 191, 217 pstex, 217 pstricks, 219 punctuation, 42 push, 154 pwd, 94 qms, 219 qt, 219 quit, 94 quotes, 42 raise, 94, 230 rand, 27, 28 random, 28
241 INDEX gnuplot range frame, 165 rangelimited, 165 ranges, 63, 89 ratio, 146 raxis, 145 real, 27 rectangle, 132, 149 refresh, 84, 87, 94 regis, 220 replot, 84, 95 reread, 71, 95 reset, 96, 97 restore, 161 rgbalpha, 54 rgbcolor, 35, 36 rgbformulae, 141 rgbimage, 54 rmargin, 145 rotate, 54 rrange, 20, 57, 101, 145, 146 rtics, 145, 146 samples, 81, 88, 118, 119, 146, 153 save, 96 sbezier, 82 scansautomatic, 137 scansbackward, 137 scansforward, 137 screendump, 226 scrolling, 129, 226 seeking assistance, 18 seeking-assistance, 235 separator, 85, 108 set, 97 sgn, 27 shell, 169, 174 show, 97 sin, 27 sinh, 27 size, 62, 130, 135, 146, 196, 200, 212 SJIS, 112 skip, 80 smooth, 20, 81 space, 37 special filenames, 83 special-filenames, 40, 170 specifiers, 114 specify, 42 splot, 73, 117, 169 sprintf, 28, 40, 123 sqrt, 27 square, 57 starc, 193 start, 39 start up, 39 starting values, 68 startup, 25, 39 statistical overview, 66 statistics, 173 stats, 20, 173 steps, 50, 57 strcol, 28 strftime, 28 string operators, 29 stringcolumn, 28 strings, 39, 123 strlen, 28 strptime, 28 strstrt, 28 style, 85, 88, 91, 123 styles, 92, 147, 149, 150 substitution, 40, 42, 126 substr, 28 substring, 28, 40 summation, 19, 31 sun, 221 surface, 60, 107, 153, 173 svg, 221 svga, 221 svgalib, 236 syntax, 17, 42, 114, 121, 157, 161 system, 28, 174 table, 153 tan, 27 tandy 60dpi, 193 tanh, 27 tc, 35 tek40, 222 tek410x, 222 term, 96, 176 terminal, 176 terminals, 154 termoption, 154 ternary, 30 test, 35, 174 texdraw, 222 text, 42, 123, 211, 225 text menu, 227 text-menu, 228 textcolor, 35 tgif, 222 thru, 84 tics, 154 ticscale, 155 ticslevel, 155 tikz, 223 time, 20, 28 time specifiers, 43, 115 time/date, 43, 156, 160 timecolumn, 28 timefmt, 23, 89, 115, 124, 156, 159, 235 timestamp, 155 tips, 69
242 242 gnuplot 4.6 INDEX title, 24, 120, 157 tkcanvas, 223 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, 157 tpic, 224 trange, 157 transparency, 54 transparent, 150 unary, 29 undefine, 174 unique, 81, 82 unset, 175 update, 64, 175 urange, 157 user defined, 31 user-defined, 88 using, 24, 26, 31, 44, 64, 85, 88, 137 UTF 8, 112, 217 valid, 28 value, 29, 32 variable, 44, 46, 47, 50, 55 57, 81, 138 variables, 29, 31, 32, 37, 38, 65, 72 vectors, 57 vgagl, 224 vgal, 190 view, 158, 165, 170 voigt, 27 volatile, 87 vrange, 158 vttek, 222 VWS, 225 vx384, 225 wgnuplot.ini, 227 wgnuplot.mnu, 227 while, 19, 175 windows, 225 with, 88, 91, 120, 144, 147, 195 word, 28 words, 28 writeback, 161 wxt, 32, 228 x2dtics, 159 x2label, 159 x2mtics, 159 x2range, 159 x2tics, 159 x2zeroaxis, 159 xdata, 23, 124, 156, 159, 166, 167 xdtics, 159, 160, 166, 167 xerrorbars, 58 xerrorlines, 59 xfig, 194 xlabel, 159, 160, 166, 168 xlib, 235 xmtics, 159, 161, xrange, 100, 145, , 161, , 173 xterm, 222 xticlabels, 24, 86, 87 xtics, 102, 114, 117, 126, 131, 146, 155, 159, 162, xyerrorbars, 58 xyerrorlines, 59 xyplane, 23, 155, 158, 165, 167, 170 xzeroaxis, 166 y2data, 166 y2dtics, 166 y2label, 166 y2mtics, 166 y2range, 166 y2tics, 166 y2zeroaxis, 166 ydata, 166 ydtics, 166 yerrorbars, 58 yerrorlines, 60 ylabel, 166 ymtics, 167 yrange, 167 ytics, 167 yzeroaxis, 167 zdata, 167 zdtics, 167 zero, 167 zeroaxis, 159, zlabel, 168 zmtics, 168 zoom, 129 zrange, 168 ztics, 168 zzeroaxis, 167 X resources, X11, 230 x11, 18, 230 x11 fonts, 231 x11 mouse, 129 x2data, 159
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
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
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 入門 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
¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè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
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
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 次元のグラフも簡単に描くことができます....
グラフ数値読み取りシステム (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,
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.
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
情報活用資料
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"
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
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 (
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
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
というプロンプトだったのが 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
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
-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
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
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
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
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 &....................................
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
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
インターネット接続ガイド 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
作業手順手引き
Praat Introduction to Praat: Let's take a look at sounds : * WS Dec/01/'14 : ver. 1.1.4 1. Praat STEP 1: STEP 2: STEP 3: STEP 4: STEP 2 Editor STEP 3 Dynamic menu 2 FAQ: Pitch analysis http://goo.gl/r65la
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.....................................
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
μ μ 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
コンピュータ概論
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
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
