gnuplot documentation



Similar documents
gnuplot.dvi

gnuplot documentation

gnuplot documentation

1 1 Gnuplot gnuplot Windows gnuplot gp443win32.zip gnuplot binary, contrib, demo, docs, license 5 BUGS, Chang

Foundation (FSF) GNU 1 gnuplot ( ) gnuplot UNIX Windows Machintosh Excel Excel gnuplot C web

gnuplot gnuplot 1 3 y = x 3 + 3x 2 2 y = sin x sin(x) x*x*x+3*x*x

2 I I / 61

きれいなグラフを作ろう!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

Debian での数学ことはじめ。 - gnuplot, Octave, R 入門

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

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

Fortran90/95 [9]! (1 ) " " 5 "Hello!"! 3. (line) Fortran Fortran 1 2 * (1 ) 132 ( ) * 2 ( Fortran ) Fortran ,6 (continuation line) 1

gnuplot の使い方 gnuplot は汎用的で しかも手軽に使えるプロッティング プログラムです 計算結果をグラフにするとき に非常に便利なので ぜひ覚えてください 1 gnuplot の始め方 終わり方 gnuplot の始め方は ターミナル上のプロンプトの後ろで gnuplot と打つだけ

6 Tgif William Chia-Wei Chang tgif 3.0 pixmap URL Tgif 6.1: Tgif

Chapter

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

ProVisionaire Control V3.0セットアップガイド

DS-30

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

Microsoft Word - gnuplot

EPSON ES-D200 パソコンでのスキャンガイド

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 =

グラフ描画ソフトGnuplotを使う

GT-X980

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

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

ScanFront300/300P セットアップガイド

PX-403A

ProVAL Recent Projects, ProVAL Online 3 Recent Projects ProVAL Online Show Online Content on the Start Page Page 13

EPSON EP-803A/EP-803AW ユーザーズガイド

ES-D400/ES-D350

DS-70000/DS-60000/DS-50000

EPSON EP-703A ユーザーズガイド

EP-704A

PX-504A

グラフ数値読み取りシステム (GSYS2.4) 利用の手引

EPSON PX-503A ユーザーズガイド

PX-434A/PX-404A

iPhone/iPad接続マニュアル

ScanFront 220/220P 取扱説明書

ScanFront 220/220P セットアップガイド

GT-X830

情報活用資料

エレクトーンのお客様向けiPhone/iPad接続マニュアル

Microsoft Word - Meta70_Preferences.doc

GT-F740/GT-S640

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

インターネット接続ガイド v110

PX-673F

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

X Window System X X &


1

GNU Emacs GNU Emacs


WYE771W取扱説明書

sato-FBSDW key

というプロンプトだったのが gnuplot> というプロンプトに変わっていることに注意してください gnuplot を終了させるときには gnuplot> というプロンプトの後ろで quit と打ちこみます すると /home/snaoki> のようなプロンプトに戻るはずです 2 グラフを描いてみよ

TH-47LFX60 / TH-47LFX6N

untitled

1 I EViews View Proc Freeze

基本操作ガイド

( ) kadai4, kadai4.zip.,. 3 cos x [ π, π] Python. ( 100 ), x cos x ( ). (, ). def print cos(): print cos()

(1) 1 GPS GPS-CS3K Sony Corporation

EP-904シリーズ/EP-804シリーズ/EP-774A

2

Complex Lab – Operating Systems - Graphical Console

gnuplotのつかいかた:メニュー

PowerPoint プレゼンテーション

VQT3B86-4 DMP-HV200 DMP-HV150 μ μ l μ

理工学図書館後期 LS 講習会 きれいなグラフを作ろう! gnuplot 入門

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

Ver ceil floor FunctionGenerator (PTZCameraSony)

操作ガイド(本体操作編)

LiveCode初心者開発入門サンプル

Transcription:

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 Bröker John Campbell Robert Cunningham David Denholm Gershon Elber Roger Fearick Carsten Grammes Lucas Hart Lars Hecking Thomas Koenig David Kotz Ed Kubaitis Russell Lang Timothée Lecomte Alexander Lehmann Alexander Mai Ethan A Merritt Petr Mikulík Carsten Steger Tom Tkacik Jos Van der Woude Alex Woo James R. Van Zandt Johannes Zellner Copyright c 1986-1993, 1998, 2004 Thomas Williams, Colin Kelley Copyright c 2004-2011 various authors Mailing list for comments: gnuplot-info@lists.sourceforge.net Mailing list for bug reports: gnuplot-bugs@lists.sourceforge.net Web access (preferred): http://sourceforge.net/projects/gnuplot This manual was originally prepared by Dick Crawford. 12 Nov 2011 Version 4.4.4

2 gnuplot 4.4 CONTENTS Contents I Gnuplot 15 1 (Copyright) 15 2 (Introduction) 16 3 (Seeking-assistance) 17 4 4.4 (New features) 18 4.1 (Internationalization).................................. 18 4.2 (Transparency)...................................... 18 4.3 (Volatile Data).................................. 18 4.4 (Canvas size)................................. 18 4.5.......................................... 19 4.6 /................................... 19 4.7................................... 19 5 (Backwards compatibility) 19 6 / (Batch/Interactive) 20 7 (Command-line-editing) 20 8 (Comments) 21 9 (Coordinates) 21 10 (Datastrings) 22 11 (Enhanced text mode) 22 12 (Environment) 23 13 (Expressions) 24 13.1 (Functions)......................................... 25 13.1.1 (elliptic integrals).......................... 27 13.1.2 (random).................................. 27 13.1.3 Value.......................................... 28 13.2 (Operators)........................................ 28 13.2.1 (Unary).................................. 28 13.2.2 (Binary).................................. 28 13.2.3 (Ternary)................................. 29 13.3 (Gnuplot-defined variables)........................... 30 13.4 (User-defined)............................ 30

CONTENTS gnuplot 4.4 3 14 31 14.1 Cairo (pdfcairo, pngcairo, wxt )........................... 31 14.2 Gd (png, gif, jpeg terminals).................................. 31 14.3 Postscript ( postscript *.eps ).......................... 32 15 (Glossary) 32 16 (linetype) 33 16.1 (colorspec)........................................ 34 16.1.1 Rgbcolor variable.................................... 35 16.1.2 Linecolor variable................................... 35 17 (mouse input) 35 17.1 Bind................................................ 35 17.1.1 Bind space....................................... 37 17.2 (Mouse variables)............................... 37 18 (Plotting) 37 19 (Startup) 38 20 (Strings) 38 21 (Substitution) 39 21.1 (Substitution backquotes)......... 39 21.2 (Substitution macros)........................ 39 21.3 (mixing macros backquotes).......... 40 22 (Syntax) 40 22.1 (Quotes)......................................... 41 23 / (Time/Date) 41 II (plotting styles) 42 24 Boxerrorbars 42 25 Boxes 43 26 Boxxyerrorbars 44 27 Candlesticks 44 28 Circles 45 29 Dots 45 30 Filledcurves 45

4 gnuplot 4.4 CONTENTS 31 Financebars 46 32 Fsteps 46 33 Histeps 46 34 Histograms 47 34.1 Newhistogram.......................................... 48 34.2 (automated)........................ 49 35 Image 49 35.1 (transparency)...................................... 50 35.2 Image failsafe........................................... 50 36 Impulses 50 37 Labels 50 38 Lines 51 39 Linespoints 51 40 Points 51 41 Steps 51 42 Rgbalpha 52 43 Rgbimage 52 44 Vectors 52 45 Xerrorbars 52 46 Xyerrorbars 52 47 Yerrorbars 53 48 Xerrorlines 53 49 Xyerrorlines 53 50 Yerrorlines 53 51 3 ( ) (3D (surface) plots) 54 III (Commands) 54 52 Cd 54

CONTENTS gnuplot 4.4 5 53 Call 54 54 Clear 55 55 Evaluate 55 56 Exit 56 57 Fit 56 57.1 (adjustable parameters)........................... 58 57.2 Fit (fit beginners guide)................................. 58 57.3 (error estimates).................................... 59 57.3.1 (statistical overview).......................... 59 57.3.2 (practical guidelines)..................... 60 57.4 (control).......................................... 60 57.4.1 (control variables).............................. 60 57.4.2 (control environment)............................ 61 57.5 (multi-branch)................................. 61 57.6 (starting values)..................................... 62 57.7 (tips)........................................... 62 58 Help 63 59 History 63 60 If 63 61 (iteration) 64 62 Load 64 63 Lower 65 64 Pause 65 65 Plot 66 65.1 (axes)............................................. 66 65.2 (data)........................................... 66 65.2.1 Binary.......................................... 68 65.2.2 Binary general..................................... 68 65.2.3 Array.......................................... 69 65.2.4 Record......................................... 69 65.2.5 Skip........................................... 69 65.2.6 Format......................................... 70 65.2.7 Endian......................................... 70 65.2.8 Filetype......................................... 70 65.2.8.1 Avs..................................... 70

6 gnuplot 4.4 CONTENTS 65.2.8.2 Edf..................................... 70 65.2.8.3 Png..................................... 71 65.2.9 Keywords........................................ 71 65.2.9.1 Scan.................................... 71 65.2.9.2 Transpose................................. 71 65.2.9.3 Dx, dy, dz................................. 71 65.2.9.4 Flipx, flipy, flipz.............................. 71 65.2.9.5 Origin................................... 71 65.2.9.6 Center................................... 72 65.2.9.7 Rotate................................... 72 65.2.9.8 Perpendicular............................... 72 65.2.9.9 Binary (binary examples)...................... 72 65.2.10 Every.......................................... 73 65.2.11 (example)............................ 73 65.2.12 Index.......................................... 74 65.2.13 Smooth......................................... 74 65.2.13.1 Acsplines.................................. 75 65.2.13.2 Bezier................................... 75 65.2.13.3 Csplines.................................. 75 65.2.13.4 Sbezier................................... 75 65.2.13.5 Unique................................... 75 65.2.13.6 Frequency................................. 75 65.2.13.7 Cumulative................................ 75 65.2.13.8 Kdensity.................................. 75 65.2.14 (special-filenames)......................... 76 65.2.15 Thru........................................... 77 65.2.16 Using.......................................... 77 65.2.16.1 Using (using examples)....................... 78 65.2.16.2 (pseudocolumns)......................... 79 65.2.16.3 Xticlabels................................. 79 65.2.16.4 X2ticlabels................................. 79 65.2.16.5 Yticlabels................................. 80 65.2.16.6 Y2ticlabels................................. 80 65.2.16.7 Zticlabels................................. 80 65.3 Errorbars............................................. 80 65.4 Errorlines............................................. 80 65.5 Parametric............................................ 81 65.6 (ranges)........................................... 81 65.7 (iteration)....................................... 82 65.8 Title................................................ 83 65.9 With............................................... 84

CONTENTS gnuplot 4.4 7 66 Print 86 67 Pwd 86 68 Quit 86 69 Raise 86 70 Refresh 87 71 Replot 87 72 Reread 87 73 Reset 88 74 Save 88 75 Set-show 89 75.1 Angles............................................... 89 75.2 Arrow............................................... 90 75.3 Autoscale............................................. 92 75.3.1 (parametric)............................. 93 75.3.2 (polar).................................. 93 75.4 Bars................................................ 93 75.5 Bind................................................ 94 75.6 Bmargin............................................. 94 75.7 Border.............................................. 94 75.8 Boxwidth............................................. 95 75.9 Clabel............................................... 96 75.10 Clip................................................ 96 75.11 Cntrparam............................................ 96 75.12 (colorbox)................................... 98 75.13 (colornames)........................................ 99 75.14 (contour)......................................... 99 75.15 Data style............................................. 99 75.16 Datafile.............................................. 99 75.16.1 Set datafile fortran................................... 100 75.16.2 Set datafile nofpe trap................................. 100 75.16.3 Set datafile missing.................................. 100 75.16.4 Set datafile separator................................. 101 75.16.5 Set datafile commentschars.............................. 101 75.16.6 Set datafile binary................................... 102 75.17 Decimalsign............................................ 102 75.18 Dgrid3d.............................................. 103

8 gnuplot 4.4 CONTENTS 75.19 Dummy.............................................. 104 75.20 Encoding............................................. 104 75.21 Fit................................................. 105 75.22 Fontpath............................................. 105 75.23 Format.............................................. 106 75.23.1 Gprintf......................................... 106 75.23.2 (format specifiers)............................. 106 75.23.3 (time/date specifiers)....................... 107 75.24 Function style.......................................... 108 75.25 Functions............................................. 108 75.26 Grid................................................ 109 75.27 Hidden3d............................................. 109 75.28 Historysize............................................ 111 75.29 Isosamples............................................ 111 75.30 Key................................................ 111 75.30.1 (key placement).............................. 113 75.30.2 (key samples)............................... 114 75.31 (label).......................................... 114 75.32 Lmargin.............................................. 116 75.33 Loadpath............................................. 117 75.34 Locale............................................... 117 75.35 Logscale.............................................. 117 75.36 Macros.............................................. 118 75.37 Mapping............................................. 118 75.38 Margin.............................................. 118 75.39 Mouse............................................... 119 75.39.1 X11 (X11 mouse)............................. 120 75.40 Multiplot............................................. 120 75.41 Mx2tics.............................................. 121 75.42 Mxtics.............................................. 122 75.43 My2tics.............................................. 122 75.44 Mytics.............................................. 122 75.45 Mztics............................................... 122 75.46 Object.............................................. 123 75.46.1 Rectangle........................................ 123 75.46.2 Ellipse.......................................... 124 75.46.3 Circle.......................................... 124 75.46.4 Polygon......................................... 124 75.47 Offsets.............................................. 124 75.48 Origin............................................... 125 75.49 Output.............................................. 125 75.50 Parametric............................................ 126

CONTENTS gnuplot 4.4 9 75.51 Plot................................................ 126 75.52 Pm3d............................................... 126 75.52.1 Depthorder....................................... 130 75.53 Palette.............................................. 130 75.53.1 Rgbformulae...................................... 131 75.53.2 Defined......................................... 132 75.53.3 Functions........................................ 133 75.53.4 File........................................... 133 75.53.5 (gamma correction)............................ 134 75.53.6 Postscript........................................ 134 75.54 Pointintervalbox......................................... 134 75.55 Pointsize............................................. 135 75.56 Polar............................................... 135 75.57 Print............................................... 135 75.58 Rmargin............................................. 136 75.59 Rrange.............................................. 136 75.60 Samples.............................................. 136 75.61 Size................................................ 136 75.62 Style............................................... 137 75.62.1 Set style arrow..................................... 137 75.62.2 Set style data...................................... 138 75.62.3 Set style fill....................................... 139 75.62.3.1 Set style fill transparent......................... 139 75.62.4 Set style function.................................... 139 75.62.5 Set style increment................................... 140 75.62.6 Set style line...................................... 140 75.62.7 Set style circle..................................... 141 75.62.8 Set style rectangle................................... 142 75.63 Surface.............................................. 142 75.64 Table............................................... 142 75.65 Terminal............................................. 142 75.66 Termoption............................................ 143 75.67 Tics................................................ 143 75.68 Ticslevel............................................. 144 75.69 Ticscale.............................................. 144 75.70 Timestamp............................................ 144 75.71 Timefmt............................................. 145 75.72 Title................................................ 145 75.73 Tmargin............................................. 146 75.74 Trange.............................................. 146 75.75 Urange.............................................. 146 75.76 Variables............................................. 146

10 gnuplot 4.4 CONTENTS 75.77 Version.............................................. 146 75.78 View............................................... 147 75.78.1 Equal axes....................................... 147 75.79 Vrange.............................................. 147 75.80 X2data.............................................. 147 75.81 X2dtics.............................................. 147 75.82 X2label.............................................. 147 75.83 X2mtics.............................................. 148 75.84 X2range.............................................. 148 75.85 X2tics............................................... 148 75.86 X2zeroaxis............................................ 148 75.87 Xdata............................................... 148 75.88 Xdtics............................................... 148 75.89 Xlabel............................................... 149 75.90 Xmtics.............................................. 150 75.91 Xrange.............................................. 150 75.92 Xtics............................................... 151 75.92.1 Xtics time data..................................... 153 75.92.2 Xtics rangelimited................................... 153 75.93 Xyplane.............................................. 154 75.94 Xzeroaxis............................................. 154 75.95 Y2data.............................................. 154 75.96 Y2dtics.............................................. 154 75.97 Y2label.............................................. 154 75.98 Y2mtics.............................................. 154 75.99 Y2range.............................................. 155 75.100Y2tics............................................... 155 75.101Y2zeroaxis............................................ 155 75.102Ydata............................................... 155 75.103Ydtics............................................... 155 75.104Ylabel............................................... 155 75.105Ymtics.............................................. 155 75.106Yrange.............................................. 155 75.107Ytics............................................... 155 75.108Yzeroaxis............................................. 155 75.109Zdata............................................... 155 75.110Zdtics............................................... 155 75.111Zzeroaxis............................................. 156 75.112Cbdata.............................................. 156 75.113Cbdtics.............................................. 156 75.114Zero................................................ 156 75.115Zeroaxis.............................................. 156

CONTENTS gnuplot 4.4 11 75.116Zlabel............................................... 157 75.117Zmtics............................................... 157 75.118Zrange.............................................. 157 75.119Ztics................................................ 157 75.120Cblabel.............................................. 157 75.121Cbmtics.............................................. 157 75.122Cbrange.............................................. 157 75.123Cbtics............................................... 157 76 Shell 157 77 Splot 158 77.1 (datafile).................................... 158 77.1.1 Binary matrix..................................... 159 77.1.2.................................. 160 77.1.3 Ascii matrix (matrix ascii).......................... 160 77.1.4 Matrix.......................................... 161 77.2 (grid data).................................... 161 77.3 Splot (splot overview).................................. 162 78 System 162 79 Test 162 80 Undefine 162 81 Unset 163 82 Update 163 IV (Terminal) 163 83 163 83.1 Aed767.............................................. 163 83.2 Aifm............................................... 164 83.3 Amiga............................................... 164 83.4 Apollo............................................... 164 83.5 Aqua............................................... 164 83.6 Be................................................. 165 83.6.1 Command-line options................................. 165 83.6.2 Monochrome options.................................. 166 83.6.3 Color resources..................................... 166 83.6.4 Grayscale resources.................................. 166 83.6.5 Line resources..................................... 166 83.7 Canvas.............................................. 167

12 gnuplot 4.4 CONTENTS 83.8 Cgi................................................ 168 83.9 Cgm................................................ 168 83.9.1 Cgm font........................................ 169 83.9.2 Cgm fontsize...................................... 170 83.9.3 Cgm linewidth..................................... 170 83.9.4 Cgm rotate....................................... 170 83.9.5 Cgm solid........................................ 170 83.9.6 Cgm size........................................ 170 83.9.7 Cgm width....................................... 170 83.9.8 Cgm nofontlist..................................... 171 83.10 Corel............................................... 171 83.11 Debug............................................... 171 83.12 Dospc............................................... 171 83.13 Dumb............................................... 171 83.14 Dxf................................................ 172 83.15 Dxy800a............................................. 172 83.16 Eepic............................................... 172 83.17 Emf................................................ 173 83.18 Emxvga.............................................. 173 83.19 Epslatex............................................. 174 83.20 Epson 180dpi........................................... 177 83.21 Excl................................................ 177 83.22 Fig................................................ 177 83.23 Ggi................................................ 179 83.24 Gif................................................. 179 83.24.1............................................ 180 83.25 Gnugraph(GNU plotutils).................................... 181 83.26 Gpic................................................ 181 83.27 Gpr................................................ 182 83.28 Grass............................................... 182 83.29 Hercules.............................................. 182 83.30 Hp2623a............................................. 182 83.31 Hp2648.............................................. 182 83.32 Hp500c.............................................. 182 83.33 Hpgl................................................ 183 83.34 Hpljii............................................... 183 83.35 Hppj............................................... 184 83.36 Imagen.............................................. 184 83.37 Jpeg................................................ 184 83.38 Kyo................................................ 185 83.39 Latex............................................... 185 83.40 Linux............................................... 186

CONTENTS gnuplot 4.4 13 83.41 Lua................................................ 186 83.42 Macintosh............................................ 188 83.43 Mf................................................. 188 83.43.1 METAFONT Instructions............................... 188 83.44 Mgr................................................ 189 83.45 Mif................................................ 189 83.46 Mp................................................ 190 83.46.1 Metapost Instructions................................. 192 83.47 Next................................................ 192 83.48 Openstep (next)......................................... 193 83.49 Pbm................................................ 193 83.50 Pdf................................................ 194 83.51 Pdfcairo.............................................. 194 83.52 Pm................................................ 195 83.53 Png................................................ 196 83.53.1............................................ 196 83.54 Pngcairo............................................. 197 83.55 Postscript............................................. 198 83.55.1 Editing postscript................................... 200 83.55.2 Postscript fontfile................................... 200 83.55.3 Postscript prologue................................... 201 83.55.4 Postscript adobeglyphnames............................. 201 83.56 Pslatex and pstex........................................ 202 83.57 Pstricks.............................................. 203 83.58 Qms................................................ 204 83.59 Regis............................................... 204 83.60 Rgip................................................ 204 83.61 Sun................................................ 204 83.62 Svg................................................ 204 83.63 Svga................................................ 205 83.64 Tek40............................................... 205 83.65 Tek410x.............................................. 205 83.66 Texdraw............................................. 205 83.67 Tgif................................................ 205 83.68 Tikz................................................ 206 83.69 Tkcanvas............................................. 207 83.70 Tpic................................................ 207 83.71 Unixpc.............................................. 208 83.72 Unixplot............................................. 208 83.73 Vgagl............................................... 208 83.74 VWS............................................... 209 83.75 Vx384............................................... 209

14 gnuplot 4.4 CONTENTS 83.76 Windows............................................. 209 83.76.1 Graph-menu...................................... 209 83.76.2 Printing......................................... 210 83.76.3 Text-menu....................................... 210 83.76.4 Wgnuplot.ini...................................... 211 83.77 Wxt................................................ 211 83.78 X11................................................ 213 83.78.1 X11 fonts........................................ 214 83.78.2 Command-line options................................. 215 83.78.3 Monochrome options.................................. 216 83.78.4 Color resources..................................... 216 83.78.5 Grayscale resources.................................. 216 83.78.6 Line resources..................................... 217 83.78.7 X11 pm3d resources.................................. 217 83.78.8 X11 other resources.................................. 218 83.79 Xlib................................................ 218 V (Graphical User Interfaces) 218 VI (Bugs) 218 84 Gnuplot (limitations) 219 85 (External libraries) 219 VII Index 219

1 (COPYRIGHT) gnuplot 4.4 15 Part I Gnuplot 1 (Copyright) Copyright (C) 1986-1993, 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) 1986-1993, 1998, 2004 Thomas Williams, Colin Kelley (copyright) 1. 2. 3. 4.

16 gnuplot 4.4 2 (INTRODUCTION) 2 4 " " Thomas Williams, Colin Kelley. Gnuplot 2.0 Russell Lang, Dave Kotz, John Campbell. Gnuplot 3.0 Gershon Elber Gnuplot 4.0 (contributors) 2 (Introduction) gnuplot Linux, OS/2, MS Windows, OSX, VMS, ( ) Web Octave gnuplot 1986 gnuplot 2 3 gnuplot ( ) (eps, fig, jpeg, LaTeX, metafont, pbm, pdf, png, postscript, svg,...) gnuplot aquaterm (OSX) wxwidgets ( ) gnuplot 1 (;) ( syntax (p. 40)) load "filename" cd dir gnuplot Version 4 (\) * * ( comments (p. 21))

3 (SEEKING-ASSISTANCE)gnuplot 4.4 17 ({}) ( ) gnuplot help ( ) boldface ( ) (<>) help help? gnuplot plotting ( help plotting ) simple.dem Web http://www.gnuplot.info/demo/ gnuplot gnuplot {OPTIONS} file1 file2... file1, file2 local ( ) X11 gnuplot {X11OPTIONS} {OPTIONS} file1 file2... X11 x11 (p. 213) gnuplot -e gnuplot file1.in -e "reset" file2.in "-" gnuplot gnuplot batch/interactive (p. 20) gnuplot gnuplot --help command line options (p. 20) (pm, windows, wxt, x11) h (hotkeys) (mousing) seeking-assistance FAQ 3 (Seeking-assistance) gnuplot Web http://www.gnuplot.info FAQ.pdf Web FAQ ( ; Frequently Asked Questions) gnuplot comp.graphics.apps.gnuplot SouceForge gnuplot Web http://sourceforge.net/projects/gnuplot

18 4 gnuplot 4.4 (NEW FEATURES) gnuplot-info@lists.sourceforge.net trackers upload http://sourceforge.net/projects/gnuplot/support gnuplot gnuplot-beta@lists.sourceforge.net gnuplot gnuplot-info form Web 4 4.4 (New features) gnuplot version 4.4 4.2 NEWS 4.1 (Internationalization) gnuplot 4.4 UTF-8 set locale (p. 117),set encoding (p. 104), set decimalsign (p. 102) 4.2 (Transparency) gnuplot (image) matrix with rgbalpha fillstyle (p. 139),rgbalpha (p. 49) 4.3 (Volatile Data) refresh replot volatile ( ) replot refresh volatile refresh (p. 87),plot datafile volatile (p. 66) 4.4 (Canvas size) gnuplot set size ( ) set size version 4.2 version 4.4 set term <terminal type> size <XX>, <YY> " "

5 (BACKWARDS COMPATIBILITY) gnuplot 4.4 19 set size <XX>, <YY> 1 1 1 PostScript gnuplot PostScript set size 0.5, 0.5 set term png size 600, 400 set output "figure.png" plot "data" with lines 600 400 "figure.png" multiplot version 4.0 png 4.5 set object plot with circles circle (p. 124), ellipse (p. 124),polygon (p. 124) 4.6 / cairo, pango 2 pngcairo, pdfcairo libgd png PDFLib pdf pdf pdfcairo ( PDF pdflatex PDF ) 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 4.7 2 3 plot smooth kdensity smooth cumul splot dgrid3d (kernel) smooth (p. 74), dgrid3d (p. 103) 5 (Backwards compatibility) gnuplot 4.0

20 gnuplot 7 4.4 (COMMAND-LINE-EDITING)./configure --disable-backwards-compatibility gnuplot ( ) : set title "Old" 0,-1 set data linespoints plot 1 2 4 # 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 6 / (Batch/Interactive) gnuplot ( - ) gnuplot -e "command" gnuplot "-" gnuplot gnuplot exit quit load gnuplot 2 "input1", "input2" gnuplot input1 input2 "header" "tailer" gnuplot header - trailer gnuplot "-persist" gnuplot -persist -e "set title Sine curve ; plot sin(x)" a s gnuplot -e "a=2; s= file.png " input.gpl 7 (Command-line-editing) GNU readline BSD libedit gnuplot configure readline GNU readline BSD libedit

9 (COORDINATES) gnuplot 4.4 21 ^B ^F ^A ^E ^H, DEL ^D ^K ^L, ^R ^U ^W ^P ^N 1 1 8 (Comments) # gnuplot ( ) (command substitution) set datafile commentschars (p. 101) \ 9 (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. 154)) 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. 148), set timefmt

22 11 gnuplot 4.4 (ENHANCED TEXT MODE) (p. 145) gnuplot 2000 1 1 10 (Datastrings) ( ) 2 ( ) 4 3 1.000 2.000 "Third column is all of this text" 4.00 2 3 plot datafile using 1:2:4 with labels splot datafile using 1:2:3:4 with labels 1 3 4 (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. 50), using xticlabels (p. 79), plot title (p. 83),using (p. 77) 11 (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 x @ a@^b_{cd} a b cd ( ) & d&{space}b d b ~ ~a{.8-} ã a -.8

12 (ENVIRONMENT) gnuplot 4.4 23 ( 2^{10}) {/[fontname][=fontsize *fontscale] text} {/Symbol=20 G} 20 ( ) {/*0.75 K} 3/4 K ( / { ) (phantom box) a@^b c ( iso 8859 1 utf8) set encoding (p. 104) ( @ ) & 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" 12 (Environment) gnuplot GNUTERM (terminal) gnuplot.gnuplot ( ) ( startup (p. 38)) GNUHELP (gnuplot.gih) VMS GNUPLOT$HELP gnuplot gnuplot gnuplot

24 gnuplot 4.4 13 (EXPRESSIONS) Unix.gnuplot HOME AmigaOS, MS-DOS, Windows, OS/2 GNUPLOT Windows NT USERPROFILE VMS SYS$LOGIN help startup Unix PAGER Unix, AmigaOS SHELL shell MS-DOS, OS/2 COMSPEC shell FIT SCRIPT (fit) gnuplot fit (p. 56) FIT LOG GNUPLOT LIB Unix : MS-DOS, Windows, OS/2, Amiga ; 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 postscript prologue (p. 201) 13 (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)" ternary ( ) NaN {3,2} "3" "2" gnuplot ("A". "B" eq "AB") ("3" + "4" == 7) (6.78 == "6.78") ("file". 4 eq "file4")

13 (EXPRESSIONS) gnuplot 4.4 25 [beg:end] "ABCDEF"[3:4] == "CD" "ABCDEF"[4:*] == "DEF" "string"[beg:end] substr("strings",beg,end) beg, end 13.1 (Functions) gnuplot Unix (sin(x), cos(x), tan(x), asin(x), acos(x), atan(x), atan2(x), arg(z)) set angles

26 gnuplot 4.4 13 (EXPRESSIONS) abs(x) x, x ; abs(x) x, real(x) 2 + imag(x) 2 acos(x) cos 1 x ( ) acosh(x) cosh 1 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)), 1.0 - (x ) exp(x) e x, x 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) rand(real(x)), 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

13 (EXPRESSIONS) gnuplot 4.4 27 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 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) valid(x) column(x) value( name ) name 13.1.1 (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) 13.1.2 (random) gnuplot rand(x>0) rand(0) 2 32bit (seed) [0:1] rand(-1) 2 rand(x) x>0 x rand({x,y}) x>0 seed1 x seed2 y

28 gnuplot 4.4 13 (EXPRESSIONS) 13.1.3 Value A B = value("a") B = A user-defined variables (p. 30) value() value() NaN 13.2 (Operators) gnuplot C FORTRAN ** ( ) 13.2.1 (Unary) - -a + +a ( ) ~ ~a * 1 ( )!!a *! a! * $ $3 * using / (*) Fortran C -2**2 = -4 (-2)**2 = 4 13.2.2 (Binary)

13 (EXPRESSIONS) gnuplot 4.4 29 ** 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 && 2 1 2 1 (,) 13.2.3 (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 ( )

30 gnuplot 4.4 13 (EXPRESSIONS) (x=1) 2 ( ) file 4 1 2 3 plot file using 1:( $4<0? 1/0 : ($2+$3)/2 ) using plot datafile using (p. 77) 13.3 (Gnuplot-defined variables) gnuplot GPVAL TERM, GPVAL X MIN, GPVAL X MAX, GPVAL Y MIN "GPVAL " show variables all ( ) set GPVAL ERRNO gnuplot 0 GPVAL ERRMSG GPVAL ERRNO GPVAL ERRMSG reset errors mouse "MOUSE " mouse variables (p. 37) fit "FIT " fit "FIT LIMIT" set fit errorvariables " err" fit (p. 56) user-defined variables (p. 30), reset errors (p. 88),mouse variables (p. 37), fit (p. 56) 13.4 (User-defined) 1 12 plot <func-name>( <dummy1> {,<dummy2>}... {,<dummy12>} ) = <expression> <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)

14 gnuplot 4.4 31 2 pi (3.14159...) NaN (IEEE ("Not a Number")) NaN = GPVAL_NaN pi = GPVAL_pi (fit) gnuplot gnuplot-defined variables (p. 30) 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. 108), functions (p. 25), gnuplot-defined variables (p. 30),macros (p. 39), value (p. 28) 14 gnuplot 14.1 Cairo (pdfcairo, pngcairo, wxt ) fontconfig fontconfig gnuplot fontconfig set term pdfcairo font "sans,12" set term pdfcairo font "Times,12" set term pdfcairo font "Times-New-Roman,12" 14.2 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

32 gnuplot 4.4 15 (GLOSSARY) 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 14.3 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. 200) 15 (Glossary) gnuplot " (page)" " (screen)" " (canvas)" gnuplot svga

16 (LINETYPE) gnuplot 4.4 33 " (plot)" (margin) (text) " " " (line)" "line" " (a line of text)" "( ) key" "( ) legend" " (title)" gnuplot " (plot)" " (line)" " (key)" 2 4 4 "x" "y" "x2" "y2" axes (p. 66) 3 3 (axes) "x","y","z" set view " (record)" " (point)" " (datablock)" "line" ( ) 16 (linetype) gnuplot " (linetype)" / / (set terminal) test / -1 ( ) plot "foo", "bar" # 1, 2 2 plot sin(x) linetype 4 # 4 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. 99), set palette (p. 130), cbrange (p. 157)

34 gnuplot 4.4 16 (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 (point) set style line " (linestyle)" linestyle plot # cyan 3 # 6 ( ) set style line 5 lt rgb "cyan" lw 3 pt 6 plot sin(x) with linespoints ls 5 # 5 linestyle (p. 140), set style line (p. 140) 16.1 (colorspec) RGB pm3d... {linecolor lc} {<colorspec> <n>}... {textcolor tc} {<colorspec> {linetype lt} <n>} <colorspec> rgbcolor "colorname" rgbcolor "#RRGGBB" rgbcolor variable palette frac <val> palette cb <value> palette z variable # # <val> 0 1 # <val> cbrange # <n> (linetype) test (p. 162) "colorname" gnuplot show colornames (p. 99) "#RRGGBB" "#" 16 RRGGBB 0-255 ( ) = + #FF00FF 16 (255 << 16) + (0 << 8) + (255) 2 palette frac 0 1 palette cb set cbrange (p. 157), set colorbox (p. 98) "palette z" z cbrange 3 2 ( 2 )

17 (MOUSE INPUT) gnuplot 4.4 35 16.1.1 Rgbcolor variable ( ) ( ) variable lc rgbcolor variable 24-bit RGB using 24-bit RGB 3 16 ( rgbcolor (p. 34)) tc rgbcolor variable # 3 x,y,z # rgb(r,g,b) = 65536 * int(r) + 256 * int(g) + int(b) splot "data" using 1:2:3:(rgb($1,$2,$3)) with points lc rgb variable 16.1.2 Linecolor variable ( ) ( ) variable lc variable using tc variable 2 index ( index (p. 74)) using column(-2) pseudocolumns (p. 79) lc variable -2 index # 3 plot data using 1:2:3 with points lc variable # index plot data using 1:2:(column(-2)) with lines lc variable 17 (mouse input) x11, pm, windows, ggi, wxt batch pause mouse bind (p. 35), mouse variables (p. 37) set mouse (p. 119) 17.1 Bind bind {allwindows} [<key-sequence>] ["<gnuplot commands>"] bind <key-sequence> "" reset bind

36 gnuplot 4.4 17 (MOUSE INPUT) bind gnuplot bind gnuplot mouse (binding) (builtin) <space> q bind space (p. 37) 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" (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",

18 (PLOTTING) gnuplot 4.4 37 "KP_1" - "KP_9", "F1" - "F12" "Close" mouse (p. 119), if (p. 63) 17.1.1 Bind space gnuplot configure enable-rase-console <space> gnuplot gnuplot -ctrlq gnuplot X gnuplot*ctrlq ctrl-space x11 command-line-options (p. 215) 17.2 (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. 30) 18 (Plotting) gnuplot 3 plot, splot, replot plot 2 splot 3 ( 2 ) replot plot splot plot 3 splot plot xy set polar (p. 135) splot xyz set mapping 2, 3 using plot splot

38 gnuplot 4.4 20 (STRINGS) plot 4 x ( ), x2 ( ), y ( ), y2 ( ) axes set set xlabel set logscale xy 1 z 2 splot 3 splot (p. 158),set isosamples (p. 111) 3 splot datafile (p. 158) set contour (p. 99), set cntrparam (p. 96) splot x2 y2 z plot 19 (Startup) gnuplot Unix AmigaOS.gnuplot GNUPLOT.INI gnuplot (AmigaOS, MS-DOS, Windows, OS/2 GNUPLOT ; Windows NT GNUPLOT USERPROFILE ) NOCWDRC gnuplot gnuplot gnuplot 20 (Strings) gnuplot 4 plot four = "4" graph4 = "Title for plot #4" graph(n) = sprintf("title for plot #%d",n) plot data.4 title "Title for plot #4" plot data.4 title graph4 plot data.4 title "Title for plot #".four plot data.4 title graph(4) N = 4 plot data..n title "Title for plot #".N gnuplot plot = "my_datafile.dat" title = "My Title" plot plot title title 3 ".", "eq", "ne" TRUE if ("A"."B" eq "AB") print "TRUE"

21 (SUBSTITUTION) gnuplot 4.4 39 2 gprintf (p. 106), sprintf (p. 27) [begin:end] begin end 1 * str[:] str[*:*] str 21 (Substitution) gnuplot 2 (ASCII 96) @ (ASCII 64) 21.1 (Substitution backquotes) plot datafile special-filenames (p. 76) 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 " 21.2 (Substitution macros) set macros @ 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 "foo" @range1 with @style1, "bar" @range2 with @style2 @ 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

40 gnuplot 4.4 22 (SYNTAX) C = "pi" if (exists(c)) print C," = ", @C evaluate 21.3 (mixing macros backquotes) filename = "mydata.inp" lines = wc --lines @filename sed "s/.*//" mydata.ipn lines mycomputer = " uname -n " uname -n mycomputer machine_id = "uname -n" mycomputer = " @machine_id " #! @machine id sprintf 3 machine_id = sprintf( " uname -n " ) mycomputer = @machine_id 22 (Syntax) gnuplot Version 4 (,) ( ) (:) ([]) (()) ({}) 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

23 / (TIME/DATE) gnuplot 4.4 41 range ( ) (set, plot, splot ) plot, replot, splot, fit using (;) postscript {3,2} = 3 + 2i PostScript enhanced text ( ) {} \n EEPIC, Imagen, Uniplex, LaTeX, TPIC \\ \\\\ 22.1 (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. 22) ( ) substitution (p. 39) 23 / (Time/Date) gnuplot / set xdata time, set ydata time / 2000 set timefmt / x y / ( ) (UT; (GMT) )

42 gnuplot 4.4 24 BOXERRORBARS ( ) UT show xrange timefmt timefmt show timefmt (set xdata ) set format set tics format / / plot, splot using plot, splot / / "data" 03/21/95 10:00 6.02e23 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. 107) Part II (plotting styles) gnuplot set style data set style function plot splot plot splot plot data with boxes, sin(x) with lines lines y 1 (x ) x, y 2 using (p. 77) 24 Boxerrorbars boxerrorbars 2 boxes yerrorbars 3 4 5

25 BOXES gnuplot 4.4 43 3 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 = -2.0 3 yerrorbars y y-ydelta y+ydelta ylow yhigh errorbar 25 Boxes boxes 2 x x ( ) y 2 3 variable ( rgbcolor variable (p. 35)) 2 x y 3 x y x_width 3 3 set boxwidth (fillstyle) set style fill (p. 139) 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

44 gnuplot 4.4 27 CANDLESTICKS 26 Boxxyerrorbars boxxyerrorbars 2 xyerrorbars 4 6 variable ( rgbcolor variable (p. 35)) 4 x y xdelta ydelta 6 x y xlow xhigh ylow yhigh xyerrorbars x, y xlow xhigh ylow yhigh x-xdelta x+xdelta y-ydelta y+ydelta (fillstyle) set style fill (p. 139), boxes (p. 43) plot 27 Candlesticks candlesticks 2 x (open) (close) x (high) (low) 5 date open low high close x box_min whisker_min whisker_high box_high set boxwidth gnuplot boxwidth set bars <width> (box-and-whisker) 6 x (box-and-whisker plot) whiskerbars (candlestick) ( ) < ( ) ( ) < ( ) fillstyle "empty" fillstyle (p. 139) fillstyle set bars (p. 93),financebars (p. 46) 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

30 FILLEDCURVES gnuplot 4.4 45 # 50% plot stat.dat using 1:3:2:6:5 with candlesticks whiskerbars 0.5 set boxwidth (p. 95), set bars (p. 93), set style fill (p. 139) 28 Circles circles x, y, 3 4 (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 pointstyle 6 variable points circles x set object circle (p. 124), fillstyle (p. 139) 29 Dots dots 2 1 2 3 3 (post, pdf ) linewidth 1 y # x 2 x y 3 x y z # 3D (splot) 30 Filledcurves filledcurves 2 3 2 2 plot... with filledcurves [option] [closed {above below} {x1 x2 y1 y2}[=<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 ( )

46 gnuplot 4.4 33 HISTEPS 3 3 x 2 y x 2 y 2 3 3 x y1 y2 2 plot data using 1:2:3 with filledcurves above below... filledcurves above {x1 x2 y1 y2}=<val>... using 1:2:3 with filledcurves below gnuplot <a>, <x>, <y> xy=<x>,<y> xrange yrange 31 Financebars financebars 2 x 1 ( ) 4 y ( ) 5 date open low high close x (high) (low) (open) (close) set bars set bars (p. 93), candlesticks (p. 44) 32 Fsteps fsteps 2 2 1 (x1,y1) (x1,y2) 2 (x1,y2) (x2,y2) lines points fsteps steps fsteps y x steps x y steps 33 Histeps histeps 2 y x x1 ((x0+x1)/2,y1) ((x1+x2)/2,y1) x

34 HISTOGRAMS gnuplot 4.4 47 ((x1+x2)/2,y1) ((x1+x2)/2,y2) lines points autoscale x steps histeps gnuplot 34 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. 139)) 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 ) x=2 2 ( set style fill (p. 139)) columnstacked ( ) x=1 2 x=2 ( )

48 gnuplot 4.4 34 HISTOGRAMS set boxwidth set style fill histograms x x1 y y1 y2 plot histograms histogram x1 x2 2, 4, 6,... 3, 5, 7,... 2 4 (clustered; ) plot (iteration) iteration (p. 64) 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 x 2 ( ) x plot for [COL=2:4:2] file.dat using COL:xticlabels(1) (y-<error>) (y+<error>) 2 set bars fullwidth set style fill solid 1 border lt -1 set style histogram errorbars gap 2 lw 2 plot for [COL=2:4:2] file.dat using COL:COL+1 (rowstacked) set style histogram rowstacked plot file.dat using 2, using 4:xtic(1) 2 2 4 set style histogram columnstacked plot file.dat using 2, using 4 2 x=1 2 x=2 4 gnuplot key x set style histogram columnstacked plot u 5:key(1) # 1 key plot u 5 title columnhead # 2 34.1 Newhistogram newhistogram {"<title>"} {<linetype>} {<fillstyle>} {at <x-coord>}

35 IMAGE gnuplot 4.4 49 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> (columnstacked) 34.2 (automated) plot (iteration) iteration (p. 64) 3 8 set style histogram columnstacked plot for [i=3:8] "datafile" using i title columnhead 35 Image image, rgbimage, rgbalpha 2 3 (PNG ) plot - matrix with image 5 4 3 1 0 2 2 0 0 1 0 0 0 1 0 0 1 2 4 3 e e 2 ( ) M x N M x N M x N (M-1) x (N-1) pm3d binary keywords flipx (p. 71),keywords center (p. 72), keywords rotate (p. 72) x y 2 binary keywords dx (p. 71), dy (p. 71) dx, dy, origin PNG 50x128 dx=0.5 dy=1.5 dx=0.5 dy=0.35 ( pdflatex )

50 gnuplot 4.4 37 LABELS 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] 35.1 (transparency) rgbalpha [0:255] alpha = 0 ( ) alpha = 255 2 0 < alpha < 255 2,3 0 255 35.2 Image failsafe 2 failsafe plot data with image failsafe 36 Impulses impulses 2 y=0 y 3 z=0 z y z 3 (linewidth > 1) 3 1 y # x (2D) 2 x y # [x,0] [x,y] (2D) 3 x y z # [x,y,0] [x,y,z] (3D) 37 Labels labels 2 3 3 4 ( rgbcolor variable (p. 35)) 3 x y string # 2 4 x y z string # 3 ( set label (p. 114)) 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

41 STEPS gnuplot 4.4 51 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. 22), set style data (p. 138) 38 Lines lines 2 3 1 2 3 ( rgbcolor variable (p. 35)) 2 1 y # x 2 x y 3 1 z # x y index 3 x y z linetype (p. 33), linewidth (p. 140), linestyle (p. 140) 39 Linespoints linespoints set pointsize 2 1 2 3 1 3 style lines (p. 51) pointinterval ( pi) with lp pi 3 3 pointinterval set pointintervalbox linespoints lp 40 Points points set pointsize 2 1 2 3 1 3 style lines (p. 51) 41 Steps steps 2 2 1 (x1,y1) (x2,y1) 2 (x2,y1) (x2,y2) lines points fsteps steps fsteps y x steps x y steps

52 gnuplot 4.4 46 XYERRORBARS 42 Rgbalpha image (p. 49) 43 Rgbimage image (p. 49) 44 Vectors 2 vectors (x,y) (x+xdelta,y+ydelta) 3 vectors 6 4 x y xdelta ydelta 6 x y z xdelta ydelta zdelta vectors splot set mapping cartesian "with vectors" arrow arrowstyle (p. 137) 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. 96), arrowstyle (p. 137) 45 Xerrorbars xerrorbars 2 xerrorbars (error bar) dots (x,y) (xlow,y) (xhigh,y) (x-xdelta,y) (x+xdelta,y) (set bars set bars (p. 93)) 3 4 3 x y xdelta 4 x y xlow xhigh 46 Xyerrorbars xyerrorbars 2 xyerrorbars (error bar) dots (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. 93)) 4 6 4 x y xdelta ydelta 6 x y xlow xhigh ylow yhigh plot using (x,y,xdelta,ylow,yhigh) plot data using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars

50 YERRORLINES gnuplot 4.4 53 47 Yerrorbars yerrorbars ( errorbars) 2 yerrorbars (error bar) points (x,y) (x,y-ydelta) (x,y+ydelta) (x,ylow) (x,yhigh) (set bars set bars (p. 93)) 3 4 3 x y ydelta 4 x y ylow yhigh errorbar 48 Xerrorlines xerrorlines 2 xerrorlines linespoints (x,y) (xlow,y) (xhigh,y) (x-xdelta,y) (x+xdelta,y) (set bars set bars (p. 93)) 3 4 3 x y xdelta 4 x y xlow xhigh 49 Xyerrorlines xyerrorlines 2 xyerrorlines linespoints (x,y) (x,yydelta) (x,y+ydelta) (x-xdelta,y) (x+xdelta,y) (x,ylow) (x,yhigh) (xlow,y) (xhigh,y) (set bars set bars (p. 93)) 4 6 4 x y xdelta ydelta 6 x y xlow xhigh ylow yhigh plot using (x,y,xdelta,ylow,yhigh) plot data using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines 50 Yerrorlines yerrorlines ( errorlines) 2 yerrorlines linespoints (x,y) (x,y-ydelta) (x,y+ydelta) (x,ylow) (x,yhigh) ( set bars (p. 93)) 3 4 3 x y ydelta 4 x y ylow yhigh

54 gnuplot 4.4 53 CALL 51 3 ( ) (3D (surface) plots) plot splot with lines with pm3d 3 X, Y, Z 3 hidden3d (p. 109), set pm3d (p. 126) depthorder (p. 130) splot Z XY set contour (p. 99) splot Z Z 2 (map) set view map (p. 147) Part III (Commands) gnuplot "plot f(x) with lines" "p f(x) w li" ({}) ( ) 52 Cd cd cd < > cd subdir cd.. (\) (") Windows cd "c:\newdata" cd c:\newdata cd "c:\\newdata" 53 Call call 1 load 10 ( )

55 EVALUATE gnuplot 4.4 55 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" 1.2 + " quoted " -- "$2" argc=7 p0=abcd p1=1.2 p2=+ p3= quoted p4=- p5=- p6=$2 p7=xx using call n $$n column(n) 54 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. 120),set size (p. 136), set origin (p. 125) 55 Evaluate evaluate eval <string expression>

56 gnuplot 4.4 57 FIT 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. 39) 56 Exit exit quit END-OF-FILE ( Ctrl-D) ( ) ( load ) exit gnuplot gnuplot bind "ctrl-x" "unset output; exit gnuplot" batch/interactive (p. 20) 57 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. 81) <expression> f(x) f(x,y) gnuplot <datafile> plot plot datafile (using, every,...) smooth thru fit plot datafile (p. 66) 1 z=f(x) z x:z 1 ( ) ( ) 2 1 2 using z 3 using ( ) z (=1/s**2) (1) using 3 z 1

57 FIT gnuplot 4.4 57 2 z=f(x,y) using 4 x:y:z:s s ( plot datafile using (p. 77)) using 1:2:3:(1) 5 1 2 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. 61) 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. 163)

58 gnuplot 4.4 57 FIT 57.1 (adjustable parameters) via 2 2 via 1.0 1 = # = # FIXED fit # FIXED 57.2 Fit (fit beginners guide) fit (SSR:Sum of the Squared Residuals) ( ) SSR ( 1.0) (WSSR) fit error estimates (p. 59) ( ) 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. 60)) ( fit (p. 56)) FIT CONVERGED fit 1 0 ( ) fit

57 FIT gnuplot 4.4 59 fit error estimates (p. 59) ( ) fit plot smooth 57.3 (error estimates) fit " " 2 WSSR fit statistical overview fit practical guidelines 57.3.1 (statistical overview) (Non-Linear Least-Squares; NLLS) ( ) ( ) 1.0 = fit stdfit RMS ( ) ( ) FIT_NDF = FIT_WSSR = FIT_STDFIT = sqrt(wssr/ndf) fit - ( ) " " " " :? 1 0

60 gnuplot 4.4 57 FIT 2 1 57.3.2 (practical guidelines) fit 1 WSSR ( * WSSR ) sum of squares of residuals ( ) chisquare ( ) WSSR fit (= - ) WSSR (WSSR/ndf; ndf = ) (stdfit = sqrt(wssr/ndf)) WSSR stdfit RMS ( ) 1 ( ) 1 (outliers) plot datafile using 1:($2-f($1)) 1.0 WSSR fit fit (y-f(x))**2 x " " y " " ( ) 57.4 (control) fit gnuplot gnuplot control variable gnuplot environment variables 57.4.1 (control variables) (1e-5) FIT_LIMIT

57 FIT gnuplot 4.4 61 2 FIT_MAXITER 0 ( ) Marquardt-Levenberg lambda ( ) ML FIT_START_LAMBDA FIT START LAMBDA 0 FIT_LAMBDA_FACTOR lambda FIT LAMBDA FACTOR 0 10.0 fit FIT FIT SKIP FIT INDEX gnuplot gnufit fit FIT SKIP every FIT INDEX (multi-branch fitting) 1 3 2 using fit multi-branch (p. 61) 57.4.2 (control environment) gnuplot FIT_LOG ( ) "fit.log" set fit logfile FIT_SCRIPT replot plot load 57.5 (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

62 gnuplot 4.4 57 FIT 57.6 (starting values) ( (SSR) ) fit SSR ( ) " (undefined value)" gnuplot replot " " ( ) fit 57.7 (tips) fit fit via 2 2 via "file" ( ) ( ) update via var1, var2,... 1 1 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

60 IF gnuplot 4.4 63 (fudgit) "Nonlinear fitting is an art! (!)" 58 Help help help {< >} < > gnuplot 1 gnuplot (?) 59 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 ) 60 If if if (< >) < > [; else if (< >)...; else...] < > ( ) < > < > ( ) else < > ; (if ) pi=3 if (pi!=acos(-1)) print "?Fixing pi!"; pi=acos(-1); print pi

64 gnuplot 4.4 62 LOAD?Fixing pi! 3.14159265358979 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. 87) 61 (iteration) plot, splot, set, unset 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 plot iteration (p. 82) 62 Load load save load load load load call comments (p. 21) load call (p. 54) load "< >" load "-" gnuplot batch/interactive (p. 20) Unix popen < load work.gnu load "func.dat" load "< loadfile_generator.sh" gnuplot load gnuplot

64 PAUSE gnuplot 4.4 65 63 Lower lower {plot_window_nb} lower (raise ) pm, win, wxt, x11 gnuplot ( ) z x11 wxt pm win 64 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. 37) pause OS ( ) pause -1 # pause 3 # 3 pause -1 " return " pause 10 "? 3 spline " pause mouse " " pause mouse keypress " A-F " pause mouse button1,keypress pause mouse any " " "pause mouse key" reread print " Tab " load "wait_for_tab"

66 gnuplot 4.4 65 PLOT "wait for tab" pause mouse key if (MOUSE_KEY!= 9) reread 65 Plot plot gnuplot plot 2 splot 3 2 plot splot splot (p. 158) binary <binary list> plot, splot plot {<ranges>} {<iteration>} {<function> {"<datafile>" {datafile-modifiers}}} {axes <axes>} {<title-spec>} {with <style>} {, {definitions{,}} <function>...} <function> (<datafile>) parametric mode 2 gnuplot ( user-defined (p. 30)) plot 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. 126) 65.1 (axes) (axes) 4 ; <axes> x1y1 ; x2y2 ; x1y2 ; x2y1 plot ( ) 65.2 (data) plot (<datafile>) plot <file_name> {binary <binary list>} {{nonuniform} matrix} {index <index list> index "<name>"} {every <every list>}

65 PLOT gnuplot 4.4 67 {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 ) volatile replot refresh refresh (p. 87) noautoscale ( ) ASCII (using ) # (VMS!) (x,y) plot ( set style errorbars (p. 53),set style errorlines (p. 53)) (x,y,ydelta), (x,y,ylow,yhigh), (x,y,xdelta), (x,y,xlow,xhigh), (x,y,xlow,xhigh,ylow,yhigh) using ( ) 3 1.0 "second column" 3.0 e, E set datafile fortran fortran d, D, q, Q (y ) x gnuplot 0 ( ) 1 plot ; (line style ) 2 index (p. 74) autoscale ( set autoscale (p. 92)) 2 i) splot ii) 2 x x2 x x (x1) x2 reset; plot -, - axes x2y1 1 1 19 19 e 1 1 19 19 e set autoscale fixmin/fixmax

68 gnuplot 4.4 65 PLOT ( labels (p. 50)) gnuplot filetype 2 matrix general matrix 32 IEEE (float) 2 ASCII matrix using (1 ) using 1 (x ) (1 ) using 2 (y ) using 3 (z ) 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 general matrix general - gnuplot array datafile binary (p. 68) 65.2.1 Binary binary ASCII matrix general binary 2 matrix 2 general binary matrix (p. 159), binary general (p. 68) 65.2.2 Binary 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. 159) ) ( gnuplot show datafile binary )

65 PLOT gnuplot 4.4 69 <binary list> filetype filetype show datafile binary filetypes filetype splot binary gnuplot plot <binary list> raw general 2 <binary list> gnuplot gnuplot ASCII using <using list> format gnuplot <using list> using 1:3 3 2 <using list> with image using 1 with rgbimage using 1:2:3 using / /index <binary list> 65.2.3 Array gnuplot array=(10,20) 2 (x) 10 2 (y) 20 1 array=25:35 2 1 gnuplot version 4.2 array=(128,128) array=128x128 gnuplot 65.2.4 Record array record gnuplot 65.2.5 Skip 1024 plot <file_name> binary skip=1024... 512 2 3 256 plot <file_name> binary record=356:356:356 skip=512:256:256...

70 gnuplot 4.4 65 PLOT 65.2.6 Format (float) format format="%uchar%int%float" using (unsigned char) 2 (int) 3 (float) using * format="%*2int%3float" 3 2 show datafile binary datasizes 65.2.7 Endian gnuplot gnuplot endian=little little: big: default: swap (swab): compiler ( ) gnuplot "middle" ( "pdp") 65.2.8 Filetype gnuplot "format=edf" ESRF show datafile binary filetypes auto gnuplot ( set datafile binary (p. 102)) 65.2.8.1 Avs avs AVS 2 long (xwidth ywidth) alpha/red/green/blue 4 65.2.8.2 Edf edf EDF ESRF (ESRF Data Format) edf ehf ( ESRF Header Format) http://www.edfplus.info/specs binary (p. 68)

65 PLOT gnuplot 4.4 71 65.2.8.3 Png gnuplot png/gif/jpeg libgd plot file.png binary filetype=png set datafile binary filetype=auto binary (p. 68) 65.2.9 Keywords (keyword) binary array, matrix, image x,y,z 65.2.9.1 Scan gnuplot gnuplot " " / / / / gnuplot (x/y/z) 2 3 3 scan=yx ( ) y ( ) x plot x y 2 splot x, y, z 3 / / x, y, z t ( ), r, z 65.2.9.2 Transpose scan=yx scan=yxz 65.2.9.3 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 65.2.9.4 Flipx, flipy, flipz gnuplot x, y, z 65.2.9.5 Origin gnuplot (transpose) (flip) 1 origin gnuplot plot 2 splot 3 origin=(100,100):(100,200) 2 2 2 origin=(0,0,3.5) 3

72 gnuplot 4.4 65 PLOT 65.2.9.6 Center origin center=(0,0) Inf center 65.2.9.7 Rotate (transpose) (flip) 2 rotate, plot, splot 2 pi degrees rotate=1.5708, rotate=0.5pi, rotate=90deg origin (center) 65.2.9.8 Perpendicular splot 3 2 xy (perpendicular) (0,0,1) rotate perpendicular 3 2 3 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 1 3 3 ( z 0 xy 2 ) 65.2.9.9 Binary (binary examples) # 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. 159)

65 PLOT gnuplot 4.4 73 65.2.10 Every every 1 ( glossary (p. 32)) plot file every {< >} {:{< >} {:{< >} {:{< >} {:{< >} {:< >}}}}} < > < > < > < > < > < > 0 ; 1 every every :::3::3 every :::::9 every 2:2 every ::5::15 # 4 (0 ) # 10 # 1 1 # # 5 15 #,, plot (simple.dem) splot splot 65.2.11 (example) "population.dat" pop(x) = 103*exp((1965-x)/10) plot [1960:1990] population.dat, pop(x) "population.dat" # Gnu population in Antarctica since 1965 1965 103 1970 55 1975 34 1980 24 1985 10

74 gnuplot 4.4 65 PLOT 65.2.12 Index index plot file index { <m>{:<n>{:<p>}} "<name>" } 2 index <m> <m> ; index <m>:<n> <m> <n> ; index <m>:<n>:<p> <m>, <m>+<p>, <m>+2<p>, <p> <n> C (index) index 0 index <p> <n> <p> index plot file index 4:5 index column(-2) 1 index pseudocolumns (p. 79), lc variable (p. 35) 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] 65.2.13 Smooth gnuplot smooth fit smooth {unique frequency cumulative kdensity csplines acsplines bezier sbezier} unique, frequency, cumulative plot x ( set samples (p. 136)) ( line style ) autoscale autoscale smooth acsplines csplines x set xrange

65 PLOT gnuplot 4.4 75 unique frequency 1 acsplines 4 3 smooth 65.2.13.1 Acsplines acsplines x ( smooth unique (p. 75)) 1 3 3 3 using 3 plot data-file using 1:2:(1.0) smooth acsplines 3 1 2 ( ) sw(x,s)=1/(x*x*s) plot data_file using 1:2:(sw($3,100)) smooth acsplines 65.2.13.2 Bezier bezier n ( ) 65.2.13.3 Csplines csplines ( smooth unique (p. 75)) 3 65.2.13.4 Sbezier sbezier ( unique (p. 75)) bezier 65.2.13.5 Unique unique x x y 65.2.13.6 Frequency frequency x x y y smooth.dem 65.2.13.7 Cumulative cumulative x x x ( ) y y smooth.dem 65.2.13.8 Kdensity kdensity ( ) 1 2 ( 1/( ) ) 3 2 3

76 gnuplot 4.4 65 PLOT 0 gnuplot ( ) 65.2.14 (special-filenames), -, +, ++ plot gnuplot 2 plot filename using 1:2, using 1:3 + ++ 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 1 1 1 "e" using - gnuplot index every plot plot - index 0, - index 1 2 4 6 10 12 14 e 2 4 6 10 12 14 e

65 PLOT gnuplot 4.4 77 plot -, - 2 4 6 e 10 12 14 e replot - 1 replot (p. 87), refresh (p. 87) ( ) 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 65.2.15 Thru thru plot file thru f(x) plot file using 1:(f($2)) plot file thru f(y) ( y ) thru splot fit 65.2.16 Using using plot file using {<entry> {:<entry> {:<entry>...}}} { format }

78 gnuplot 4.4 65 PLOT (format) C scanf ( ) datafile separator (p. 101) <entry> N column(n) column(1) column(2) column(1), column(2),... $1, $2,... valid(n) N 1...N gnuplot " " $0 column(0) pseudocolumns (p. 79) <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. 137), fit (p. 56) scanf gnuplot gnuplot %lf 7 scanf ("\t") ("\n") ("\f") "\t", "\n", "\f" 65.2.16.1 Using (using examples) 1 2 3 plot set datafile separator "," plot file using 1:($2+$3) %lf,%lf,%lf "MyData" plot MyData using "%*lf%lf%*20[^\n]%lf" %*lf %lf %*20[^\n] %lf ( x ) 20 ( y ) 3?: plot file using 1:($3>10? $2 : 1/0) 1 3 10 2 plot 1/0 gnuplot NaN using 0+( )

65 PLOT gnuplot 4.4 79 y 3 plot file plot file using 1:2 plot file using ($1):($2) 1) file 1 2 1 x 2 3 ( plot (plot with lines) ) 2) 1 plot 2 3 plot file using 1:2 plot (#) using 65.2.16.2 (pseudocolumns) plot using " " (pseudocolumns) column(0) column(-1) column(-2) 0 2 $0 0 1 index index 65.2.16.3 Xticlabels (ticlabel) xticlabels(n) xticlabels(stringcolumn(n)) 3 x plot datafile using <xcol>:<ycol>:xticlabels(3) with <plotstyle> x,x2,y,y2,z ticlabels(<labelcol>) using X,Y[,Z] xticlabels() x x xticlabels() xtic() splot "data" using 2:4:6:xtic(1):ytic(3):ztic(6) x y x,y z z plot "data" using 1:2:xtic( $3 > 10.? "A" : "B" ) x x 3 "A" "B" 65.2.16.4 X2ticlabels plot using xticlabels (p. 79)

80 gnuplot 4.4 65 PLOT 65.2.16.5 Yticlabels plot using xticlabels (p. 79) 65.2.16.6 Y2ticlabels plot using xticlabels (p. 79) 65.2.16.7 Zticlabels plot using xticlabels (p. 79) 65.3 Errorbars 1 4 ( using ) 2 gnuplot 3 4 6 (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. 80)) set bars ( set bars (p. 93)) plot using (p. 77), plot with (p. 84), set style (p. 137) 65.4 Errorlines (errorbar) 2 1 4 ( using ) errorline gnuplot 3 4 6 (x, y, ydelta), (x, y, ylow, yhigh),

65 PLOT gnuplot 4.4 81 (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. 93)) (autoscaling) ON plot using (p. 77), plot with (p. 84), set style (p. 137) 65.5 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 65.6 (ranges) (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]

82 gnuplot 4.4 65 PLOT 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. 92) plot splot set xrange set yrange ( ) gnuplot (timefmt) set timefmt (p. 145) plot cos(x) x plot [-10:30] sin(pi*x)/(pi*x) t plot [t = -10 :30] sin(pi*t)/(pi*t) x y plot [-pi:pi] [-3:3] tan(x), 1/x y plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x) x y plot [:200] [-pi:] exp(sin(x)) x set timefmt "%d/%m/%y %H:%M" plot ["1/6/93 12:00":"5/6/93 12:00"] timedata.dat 65.7 (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)

65 PLOT gnuplot 4.4 83 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 [0:1] for [n=1:4] x**n sprintf("%d",n) list = "apple banana cabbage daikon eggplant" item(n) = word(list,n) plot for [i=1:words(list)] item(i).".dat" title item(i) list = "new stuff" replot replot list = "apple banana cabbage daikon eggplant" plot for [i in list] i.".dat" title i list = "new stuff" replot 65.8 Title plot title title <text> notitle [<ignored text>] title columnheader title columnheader(n) <text> ( ) datastrings (p. 22) set key autotitle columnhead notitle (title ) notitle (tilte ) notilte key autotitles ( ) title notitle plot set key set key (p. 111) y=x x

84 gnuplot 4.4 65 PLOT 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 65.9 With with with <style> { {linestyle ls <line_style>} {{linetype lt <line_type>} {linewidth lw <line_width>} {linecolor lc <colorspec>} {pointtype pt <point_type>} {pointsize ps <point_size>} {fill fs <fillstyle>} {nohidden3d} {nocontours} {nosurface} {palette}} } <style> lines dots steps errorbars xerrorbar xyerrorlines points impulses fsteps errorlines xerrorlines yerrorbars linespoints labels histeps financebars xyerrorbars yerrorlines vectors boxes candlesticks image circles boxerrorbars filledcurves rgbimage boxxyerrorbars histograms rgbalpha pm3d 2 fillstyle (p. 139) plotting styles (p. 42) set style function set style data 6 test <line type> <point type> ( ) test <line width> <point size> set pointsize (p. 135) <point size> set pointsize

65 PLOT gnuplot 4.4 85 set pointsize 2; plot x w p ps 3 3 6 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 4 2 3 (plot splot ) using colors (p. 33), set palette (p. 130), linetype (p. 33) nohidden3d splot set hidden3d nohidden3d hidden3d nohidden3d ( ) nocontours set contour plot nosurface set surface plot 3 linewidth, pointsize, palette sin(x) plot sin(x) with impulses x x**2 plot x w points, x**2 tan(x) "data.1" plot [ ] [-2:5] tan(x), data.1 with l "leastsq.dat" plot leastsq.dat w i "population" plot population with boxes "exper.dat" ( 3 4 ): plot exper.dat w lines, exper.dat notitle w errorbars "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

86 gnuplot 4.4 69 RAISE "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 66 Print print < > pause 0 < > gnuplot print < > {, < >,...} expressions (p. 24) set print 67 Pwd pwd GPVAL PWD show variables all (p. 146) "pwd" 68 Quit exit quit END-OF-FILE gnuplot (clear ) 69 Raise raise {plot_window_nb} raise (lower ) pm, win, wxt, x11 gnuplot ( ) z ( )

72 REREAD gnuplot 4.4 87 x11 wxt pm win X11 X11 ( telnet ssh ) 70 Refresh refresh replot 2 refresh refresh ( - ) refresh replot refresh plot datafile volatile with lines, - with labels 100 200 "Special point" e # set title "Zoomed in view" set term post set output zoom.ps refresh 71 Replot replot plot splot set replot plot splot (, ) replot (range) plot splot splot plot replot plot - ;... ; replot refresh replot multiplot plot (splot) command-lineediting (p. 20) history show plot (p. 126) 72 Reread reread load gnuplot

88 gnuplot 4.4 74 SAVE reread ( reread if if (p. 63) ) reread "looper" a=a+1 plot sin(x*a) pause -1 if(a<5) reread gnuplot a=0 load looper pause 5 "data" 0 10 (yrange) 6 x 5 x "plotter" c_p = c_p+1 plot "$0" using 1:c_p with lines linetype c_p if(c_p < n_p) reread gnuplot n_p=6 c_p=1 unset key set yrange [0:10] set multiplot call plotter data unset multiplot 5 1 yrange multiplot 5 demo animate.dem 73 Reset reset set set reset set term set output set loadpath set fontpath set encoding set decimalsign set locale reset errors GPVAL ERRNO GPVAL ERRMSG reset bind 74 Save save set term set plot ( splot)

75 SET-SHOW gnuplot 4.4 89 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. 142) "-" save popen (Unix ) save gnuplot gnuplot batch/interactive (p. 20) 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 75 Set-show set plot, splot, replot show show all set unset reset (p. 88) show set timefmt set unset iteration (p. 64) 75.1 Angles gnuplot set polar set angles degrees [0:360] set mapping 3 set angles {degrees radians} show angles

90 gnuplot 4.4 75 SET-SHOW 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 #{1.16933, 0.154051} print asinh(y) #{1.0, 0.1} set angles degrees y=sinh(x) print y #{1.16933, 0.154051} print asinh(y) #{57.29578, 5.729578} poldat.dem: set angles 75.2 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. 21) "from" "to" "to" "rto" ( ) graph, screen ( ) 0 nohead 1 1 backhead heads

75 SET-SHOW gnuplot 4.4 91 size <length>,<angle> size <length>,<angle>,<backangle> <length> <angle> ( ) <length> x <length> first, second, graph, screen, character coordinates (p. 21) <backangle> filled empty <backangle> (<angle> ; ) fig 3 2 70 110 filled (heads ) pm3d (p. 126) ( ) empty metafont, metapost, latex, tgif ( set style line (p. 140)) <line type> ( ) <linewidth> ( ) ( ) set arrow lt, lw front back ( ) front (1,2) 5 set arrow to 1,2 ls 5 (-5,5,3) 3 set arrow 3 from graph 0,0 to -5,5,3 1,1,1 2 set arrow 3 to 1,1,1 nohead lw 2 x=3 set arrow from 3, graph 0 to 3, graph 1 nohead T set arrow 3 from 0,-5 to 0,5 heads size screen 0.1,90 set arrow from 0,-5 rto graph 0.1,0.1 x set logscale x set arrow from 100,-5 rto 10,10 100,-5 1000,5 (y) 10 " 10" (x) 10 " 10" 2 unset arrow 2 unset arrow ( ) show arrow

92 gnuplot 4.4 75 SET-SHOW 75.3 Autoscale (autoscale) x, y, z (plot) autoscale plot noautoscale datafile (p. 66) set autoscale {<axes>{ min max fixmin fixmax fix} fix keepfix} unset autoscale {<axes>} show autoscale <axes> ( ) x, y, z, cb, x2, y2, xy min max (xy ) gnuplot fixmin fixmax fix gnuplot set autoscale fix set autoscale keepfix fix (plot y splot z ) (y z) y z (plot x splot x,y ) 1 x (z = f(x,y) y ) set xrange (p. 150) (parametric) ( set parametric (p. 126)) 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. 104)) 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

75 SET-SHOW gnuplot 4.4 93 x, y, z, x2, y2 set autoscale x, y, z, x2, y2 unset autoscale z unset autoscale z 75.3.1 (parametric) (set parametric) xrange yrange x y x x x set autoscale t gnuplot t set autoscale t splot x, y, z 75.3.2 (polar) (set polar) xrange yrange x y rrange trange trange ( ) 1 2 75.4 Bars set bars (errorbar) set bars {small large fullwidth <size>} {front back} unset bars show bars small 0.0, large 1.0 1.0 fullwidth errorbar (histgrams) errorbar front, back errorbar (boxes, candlesticks, histograms)

94 gnuplot 4.4 75 SET-SHOW 75.5 Bind (binding) bind (p. 35) 75.6 Bmargin set bmargin set margin (p. 118) 75.7 Border set border unset border plot splot plot splot set border {<integer>} {front back} {linewidth lw <line_width>} {{linestyle ls <line_style>} {linetype lt <line_type>}} unset border show border set view 56,103 splot x-y 4 (front), (back), (left), (right) 4 x-y " (bottom right back)" " (front vertical)" ( ) 12 4 plot splot 4 splot 4 splot < > plot splot 1 2 4 8 16 32 64 128 256 512 1024 2048 31 plot 4 splot z 2 (front) set border back <line style>, <line type>, <line width> ( ) plot 2 xtics (p. 151) "unset surface; set contour base" splot

75 SET-SHOW gnuplot 4.4 95 set grid back, front, layerdefault set border plot splot set border 3 splot set border 4095 set border 127+256+512 # set border 1023-128 plot unset xtics; unset ytics; set x2tics; set y2tics; set border 12 75.8 Boxwidth set boxwidth boxes, boxerrorbars, candlesticks, histograms set boxwidth {<width>} {absolute relative} show boxwidth set boxwidth relative relative (boxwidth) x (absolute) x ( set log (p. 117)) boxwidth x=1 " " ( x ) x x=1 boxes boxerrorbars 4 4-2.0 style boxes (p. 43),style boxerrorbars (p. 42) 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

96 gnuplot 4.4 75 SET-SHOW 75.9 Clabel gnuplot clabel ( ) z set clabel { <format> } unset clabel show clabel %8.3g 3 key clabel ( +1) set contour (p. 99) 75.10 Clip gnuplot set clip <clip-type> unset clip <clip-type> show clip gnuplot (clip-type) points, one, two 3 pm3d set pm3d clip1in set pm3d clip4in points ( ) gnuplot points x y (xrange, yrange) one gnuplot two noclip points, clip one, noclip two show clip set clip unset clip set clip set clip points unset clip 3 75.11 Cntrparam set cntrparam show contour contour cntrparam

75 SET-SHOW gnuplot 4.4 97 set cntrparam { { linear cubicspline bspline points <n> order <n> levels { auto {<n>} <n> discrete <z1> {,<z2>{,<z3>...}} incremental <start>, <incr> {,<end>} } } } show contour 2 ( (isosample) ) z z <n> <z1>, <z2>... linear, cubicspline, bspline ( ) linear cubicspline (3 ) bspline (B-spline) z points bspline cubicspline cubicspline bspline ( ) points order bspline ( bspline ) bspline 2 ( ) 10 levels auto ( ), discrete, incremental <n> auto <n> z zmin zman dz dz 10 1, 2, 5 (2 ) levels discrete z = <z1>, <z2>... discrete set cntrparams levels <n> incremental z = <start> <increment> <end> set cntrparam levels <n> z set ztics <increment> set cntrparam linear, 5 points, order 4, 5 auto levels set cntrparam bspline set cntrparam points 7 set cntrparam order 10 5 set cntrparam levels auto 5.1,.37,.9 set cntrparam levels discrete.1,1/exp(1),.9 0 4 1 set cntrparam levels incremental 0,1,4

98 gnuplot 4.4 75 SET-SHOW 10 ( (end) ): set cntrparam levels 10 set cntrparam levels incremental 100,50 set contour (p. 99) set clabel (p. 96) (contours.dem) (discrete.dem). 75.12 (colorbox) pm3d palette min z max z unset colorbox (colorbox) set colorbox set colorbox { { vertical horizontal } { default user } { origin x, y } { size x, y } { front back } { noborder bdefault border [line style] } } show colorbox unset colorbox default user origin size (front) (back) vertical horizontal origin x, y size x, y user x, y 3 set view map splot 2 set colorbox horiz user origin.1,.02 size.8,.04 border ON ( ) noborder OFF border line style set style line 2604 linetype -1 linewidth.4 set colorbox border 2604 line style 2604 (-1) bdefault ( ) line style cb set/unset/show cbrange, [m]cbtics, format cb, grid [m]cb, cblabel cbdata, [no]cbdtics, [no]cbmtics set colorbox unset colorbox OFF set pm3d (p. 126), set palette (p. 130), x11 pm3d (p. 217), set style line (p. 140)

75 SET-SHOW gnuplot 4.4 99 75.13 (colornames) gnuplot pm3d gnuplot show colornames set style line 1 linecolor rgb "sea-green" 75.14 (contour) set contour splot (grid data) grid data (p. 161) set dgrid3d set contour {base surface both} unset contour show contour 3 base x/y surface both base set cntrparam (p. 96) set clabel (p. 96) ( set surface (p. 142)) 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. 158) (contours.dem) (discrete.dem). 75.15 Data style set style data (p. 138) 75.16 Datafile set datafile plot, splot, fit (field) 6

100 gnuplot 4.4 75 SET-SHOW 75.16.1 Set datafile fortran set datafile fortran Fortran D Q Fortran D Q unset datafile fortran 75.16.2 Set datafile nofpe trap set datafile nofpe trap gnuplot 75.16.3 Set datafile missing set datafile missing gnuplot (missing data) plot splot using set datafile missing {"<string>"} show datafile missing unset datafile # IEEE NaN ("Not a Number") set datafile missing "NaN" set style data linespoints plot - 1 10 2 20 3? 4 40 5 50 e set datafile missing "?" plot - 1 10 2 20 3? 4 40 5 50 e plot - using 1:2 1 10 2 20 3? 4 40 5 50 e plot - using 1:($2) 1 10 2 20 3?

75 SET-SHOW gnuplot 4.4 101 4 40 5 50 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) 75.16.4 Set datafile separator set datafile separator "<char>" gnuplot (whitespace) <char> csv ( ) (whitespace) set datafile separator {"<char>" whitespace} # set datafile separator "\t" # set datafile separator "," 75.16.5 Set datafile commentschars set datafile commentschars gnuplot gnuplot set datafile commentschars {"<string>"} show datafile commentschars unset commentschars string VMS "#!" "#" # 1 2 3 4 1 # 3 4 set datafile missing # set datafile commentschars "#!%"

102 gnuplot 4.4 75 SET-SHOW 75.16.6 Set datafile binary set datafile binary plot splot <binary list> binary (p. 68) 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 # 75.17 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(). ( )

75 SET-SHOW gnuplot 4.4 103 75.18 Dgrid3d set dgrid3d splot grid data (p. 161) set dgrid3d {<rows>} {,{<cols>}} { splines qnorm {<norm>} (gauss cauchy exp box hann) {<dx>} {,dy} } unset dgrid3d show dgrid3d dgrid3d 3 ( ) row size/col size x ( ) y ( ) z z 10 splines " " qnorm norm ( dx, dy dx^norm + dy^norm 2 4, 8, 16 (dx^2+dy^2)^norm/2 ) (kernel) z = Sum i w(d i) * z i / Sum i w(d i), z i i d i i gauss : w(d) = exp(-d*d) cauchy : w(d) = 1/(1 + d*d) exp : w(d) = exp(-d) box : w(d) = 1 d<1 = 0 hann : w(d) = 0.5*(1-cos(2*pi*d)) d<1 w(d) = 0 5 2 dx dy d i = sqrt( ((xx i)/dx)**2 + ((y-y i)/dy)**2 ), x,y x i,y i i dy dx 1 dx dy qnorm 3 (,) norm dgrid3d gnuplot

104 gnuplot 4.4 75 SET-SHOW dgrid3d.dem: scatter.dem: dgrid3d dgrid3d 75.19 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 75.20 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 cp1250 - / MS Windows cp1251 - (8 ) cp1254 - MS Windows (Latin5 ) utf8 - Unicode ( )

75 SET-SHOW gnuplot 4.4 105 set encoding locale LC ALL, LC CTYPE, LANG wxt, cairopdf UTF-8 EUC-JP set locale (p. 117), set decimalsign (p. 102) 75.21 Fit fit fit gnuplot set fit {logfile {"<filename>"}} {{no}errorvariables} 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) 75.22 Fontpath fontpath postscript fontpath fontpath terminal postscript set fontpath {"pathlist1" {"pathlist2"...}} show fontpath OS Unix ( : ), MS-DOS, Windows, OS/2, Amiga ( ; ) show fontpath, save, save set OS ( ) (! ) GNUPLOT FONTPATH fontpath set fontpath, show fontpath, save fontpath plot, splot GNUPLOT FONTPATH

106 gnuplot 4.4 75 SET-SHOW OFF show fontpath show fontpath fontpath fontpath save, save set fontpath gd TrueType GDFONTPATH 75.23 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. 40) "%" "%g m" " m" "%" "%g %%" 2 set xtics (p. 151) set decimalsign (p. 102) ( ) (electron.dem). 75.23.1 Gprintf gprintf("format",x) gnuplot set format, set timestamp gnuplot C sprintf() gprintf() gnuplot sprintf("format",x1,x2,...) gnuplot format specifiers (p. 106) 75.23.2 (format specifiers) ( / )

75 SET-SHOW gnuplot 4.4 107 %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 %P ( scientific power) 3 ("%c") -18 +18 ("%" ) "-" "+" " " ( ) "-" "#" 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) # "+12345.000 " 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) # "12.345 kg" set format y "%.0P pi"; set ytic(6.283185) # "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 ) 9.999 (time/date) strftime ( gnuplot "man strftime" ) set timefmt (p. 145) 75.23.3 (time/date specifiers) (time/date mode)

108 gnuplot 4.4 75 SET-SHOW %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 (0-99 1969-2068 2 ) %Y (4 ) (% ) "0" (" " " ") 0 ( ) 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:03" set format x "%1y/%2m/%3d %01H:%02M:%03S" # "98/ 7/ 6 5:04:003" 75.24 Function style set style function (p. 139) 75.25 Functions show functions show functions gnuplot expressions (p. 24) (spline.dem) (airfoil.dem)

75 SET-SHOW gnuplot 4.4 109 75.26 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. 151)) z set border (p. 94) 75.27 Hidden3d set hidden3d ( splot (p. 158)) set hidden3d {defaults} { {front back} {{offset <offset>} {nooffset}} {trianglepattern <bitpattern>} {{undefined <level>} {noundefined}} {{no}altdiagonal} {{no}bentover} } unset hidden3d

110 gnuplot 4.4 75 SET-SHOW show hidden3d gnuplot ( splot datafile (p. 158)) with lines with linespoints hidden3d ( set contour (p. 99)) (set contour surface) (key) gnuplot 4.5 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. 136), set isosamples (p. 111) defaults defaults set {no}hidden3d / offset offset <offset> 1 nooffset offset 0 trianglepattern <bitpattern> <bitpattern> 0 7 0 1 2 2 3 7 undefined <level> ( ) x,y,z <level> = 3 noundefined <level> = 2 <level> = 1 noaltdiagonal undefined ( <level> 3 ) 2 4 undefined altdiagonal

75 SET-SHOW gnuplot 4.4 111 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). 75.28 Historysize set historysize gnuplot GNU readline configure set historysize <int> unset historysize historysize gnuplot history 500 unset historysize history history 75.29 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. 136),set hidden3d (p. 109) isosamples samples 75.30 Key set key

112 gnuplot 4.4 75 SET-SHOW (key) plot ( splot) title, with plot title (p. 83),plot with (p. 84) set key {on off} {default} {{inside outside} {lmargin rmargin tmargin bmargin} {at <position>}} {left right center} {top bottom center} {vertical horizontal} {Left Right} {{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. 113) Left, Right ( ) (reverse) (box {...}) (linetype), (linewidth) (linestyle) invert (histograms) <height increment> ( ) plot splot autotitles (title) noautotaitle (s)plot... title... set key autotitle columnheader gnuplot plot plot "datafile" using (($2+$3)/$4) title columnhead(3) with lines

75 SET-SHOW gnuplot 4.4 113 (title "<text>") ( ) (") syntax (p. 40) 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, PostScript, gnuplot set key left Left reverse splot set clabel (p. 96) 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 75.30.1 (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 outside key key key 4

114 gnuplot 4.4 75 SET-SHOW (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. 21) <position> left, right, top, bottom, center label left key <position> 75.30.2 (key samples) / / font textcolor textcolor "rgb variable" gnuplot samplen <sample length>*( ) sapmlen ( ) spacing (pointsize) <vertical spacing> <width increment> ( ) gnuplot 75.31 (label) set label (label) set label {<tag>} {"<label text>"} {at <position>} {left center right} {norotate rotate {by <degrees>}}

75 SET-SHOW gnuplot 4.4 115 {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. 21) (<tag>) set label <label text> strings (p. 38), sprintf (p. 27), gprintf (p. 106) x,y,z x,y,z <justification> left, right, center rotate ( ) rotate by <degrees> font "<name>{,<size>}" (enhanced text mode) noenhanced ( ) enhanced text (p. 22) front back ( ) front textcolor <colorspec> <colorspec> rgb colorspec (p. 34), palette (p. 130) 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. 84)) (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. 21) ( ) timefmt set xdata (p. 148), set timefmt (p. 145)

116 gnuplot 4.4 75 SET-SHOW EEPIC, Imagen, LaTeX, TPIC \\ ( labels (p. 50)) (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 75.32 Lmargin set lmargin set margin (p. 118)

75 SET-SHOW gnuplot 4.4 117 75.33 Loadpath loadpath call, load, plot, splot loadpath set loadpath {"pathlist1" {"pathlist2"...}} show loadpath OS Unix ( : ), MS-DOS, Windows, OS/2, Amiga ( ; ) show loadpath, save, save set OS ( ) GNUPLOT LIB loadpath show loadpath loadpath loadpath save, save set loadpath 75.34 Locale locale {x,y,z}{d,m}tics set locale {"<locale>"} <locale> set locale "" LC TIME, LC ALL, LANG locale set decimalsign (p. 102) set encoding (p. 104) 75.35 Logscale set logscale <axes> <base> unset logscale <axes> show logscale <axes> ( ) x, x2, y, y2, z, cb <base> <base> 10 <axes> unset logscale x, z set logscale xz y 2 set logscale y 2 pm3d plot z set logscale zcb z unset logscale z

118 gnuplot 4.4 75 SET-SHOW 75.36 Macros @<stringvariablename> <stringvariablename> substitution (p. 39) set macros 75.37 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 ) 2 3 2 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 75.38 Margin (margin) set margin show margin 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)

75 SET-SHOW gnuplot 4.4 119 at screen (multiplot) 2D, 3D set origin set size key ( ) ( set xtics axis ) 75.39 Mouse set mouse pm, x11, ggi, windows, wxt 2 2 2 ( z 0, 90, 180, 270, 360 set view splot set view map) splot 3 (view) 1 2 ( ) <ctrl> 2 shift z (xyplane) (multiplot) unset multiplot ON ( 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 (ms) 1 (clipboard) 0 ms 300 ms zoomcoordinates (zoom) ON noruler ruler (ruler) off, on ruler ruler on ruler ruler r polardistance (ruler) ( ) 5 format fprintf "% #g" clipboardformat mouseformat 1 2 ( ) 1, 2, 3, 4 ( ) C 2 set mouse mouseformat "mouse = %5.2g, %10.2f" OFF set mouse mouseformat "" ( 6 ): 0 [1.23, 2.45]

120 gnuplot 4.4 75 SET-SHOW 1 1.23, 2.45 2 x == (timefmt) [( set timefmt ), 2.45] 3 x == [31. 12. 1999, 2.45] 4 x == [23:59, 2.45] 5 x == / [31. 12. 1999 23:59, 2.45] 6 "" 2 gnuplot labels nolabels 2 mouseformat labeloptions set label "point pointstyle 1" (+) replot Ctrl 2 pointsize zoomjump ON 3 ( ) zoomjump OFF verbose ON 6 ON/OFF verbose OFF h bind hotkeys ( bind (p. 35)) hotkeys q bind bind (p. 35), label (p. 114) 75.39.1 X11 (X11 mouse) x11 set term x11 <n> X11 X11 ON UNIX OS /dev/null ON gnuplot unset mouse OFF 75.40 Multiplot set multiplot gnuplot set multiplot { layout <rows>,<cols> {rowsfirst columnsfirst} {downwards upwards} {title <page title>} {scale <xscale>{,<yscale>}} {offset <xoff>{,<yoff>}} } unset multiplot (terminal) unset multiplot gnuplot plot

75 SET-SHOW gnuplot 4.4 121 " " 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. 125), set size (p. 136) 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. 18) set margin set margin (p. 118) 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 [ 6 ] unset multiplot 6 2 1.1/2 0.9/3 multiplot (multiplt.dem) 75.41 Mx2tics x2 ( ) set mx2tics set mxtics (p. 122)

122 gnuplot 4.4 75 SET-SHOW 75.42 Mxtics x set mxtics unset mxtics set mxtics {<freq> default} unset mxtics show mxtics mytics, mztics, mx2tics, my2tics, mcbtics <freq> ( ) 2 5 1 4 default (10 ) <freq> ( 1 10 2, 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" 0.0001) set mytics 10 axis border {no}mirror set xtics (p. 151) 75.43 My2tics y2 ( ) set my2tics set mxtics (p. 122) 75.44 Mytics y set mytics set mxtics (p. 122) 75.45 Mztics z set mztics set mxtics (p. 122)

75 SET-SHOW gnuplot 4.4 123 75.46 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. 34), fillstyle (p. 139) default set style rectangle (p. 142) 75.46.1 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. 21)) 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 # 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

124 gnuplot 4.4 75 SET-SHOW 75.46.2 Ellipse set object <index> ellipse {at center} <position> size <w>,<h> {angle <orientation>} {<other-object-properties>} ( ) at center (first, second) (graph) (screen) ( coordinates (p. 21)) (orientation) x y gnuplot set object ellipse size <2r>,<2r> set object circle <r> circle x x y 1 set object ellipse 2r x 2r y x y 1 75.46.3 Circle set object <index> circle {at center} <position> size <radius> {arc [<begin>:<end>]} {<other-object-properties>} at center x (graph) (screen) ( coordinates (p. 21)) arc 75.46.4 Polygon set object <index> polygon from <position> to <position>... {to <position>} from <position> rto <position>... {rto <position>} (first, second) (graph) (screen) (rto) coordinates (p. 21) 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 75.47 Offsets x1,y1 2 plot

75 SET-SHOW gnuplot 4.4 125 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 75.48 Origin set origin ( ) (screen) coordinates (p. 21) set origin <x-origin>,<y-origin> 75.49 Output set output set output {"<filename>"} show output set output (STDOUT) ( set output "STDOUT" "STDOUT"! [" " x11 wxt terminal ( ) set output ]) set terminal set output set terminal terminal OS OS ( ) OS popen (Unix ) set output " lpr -Plaser filename" set output " lp -dlaser filename" MS-DOS set output "PRN" VMS DECnet

126 gnuplot 4.4 75 SET-SHOW 75.50 Parametric set paramaetric plot splot (parametric) unset parametric set parametric unset parametric show parametric 2 2 plot sin(t),cos(t) ( set size (p. 136)) 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] 75.51 Plot show plot replot plot splot show plot add2history history replot 75.52 Pm3d pm3d splot 3 4 / / pm3d palette OS/2 Presentation Manager X11 Linux VGA (vgagl) GGI Windows AquaTerm (Mac OS X) wxwidgets (wxt)

75 SET-SHOW gnuplot 4.4 127 PostScript pslatex, pstex, epslatex gif, png, jpeg (x)fig tgif cgm pdf svg emf / splot data file ( ) pm3d 2 2 4 z ( color using (p. 77)) ( ) 4 corners2color 2 ( ) pm3d ( ) 1. 1 3 splot: 4 z ( corners2color) [0:1] zrange cbrange [min color z,max color z] / set palette (p. 130) 2. 2 4 splot: / z z 4 1. gnuplot iso curve ( ) (scan) 1 2. gray color (scale) " (colorbox)" set colorbox (p. 98),set cbrange (p. 157) 3. pm3d 3 2 set view map set pm3d map ( ): set pm3d set pm3d { } { at <bst combination> } { 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 }

128 gnuplot 4.4 75 SET-SHOW show pm3d unset pm3d (style) with pm3d implicit pm3d ( / ) z ( / ) at b, t, s 6 at b at st at bstbst... (at s) ( ) (gnuplot ) scansforward scansbackward scansautomatic gnuplot depthorder pm3d depthorder (p. 130) 2 (flush begin) (flush end) (flush center) flush (center end) scansautomatic flush center flush end scansautomatic scansforward 2 ftriangles x,y 2 clip1in: 4 1 x, y clip4in: 4 x, y 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. 35) splot... using 1:2:3:4 with pm3d lc rgb variable z z cb set log set zrange set cbrange cb set view map (p. 147),set colorbox (p. 98) hidden3d (linestyle) set style line... ( pm3d ) set hidden3d pm3d

75 SET-SHOW gnuplot 4.4 129 set pm3d at s hidden3d 100 set style line 100 lt 5 lw 0.5 unset hidden3d unset surf splot x*x+y*y {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 (?) interpolate m,n samples isosamples m, n m n m, n m, n 0 interpolate 0,0 set palette origin size mutiplot set palette maxcolors gnuplot explicit set pm3d; ( ) set pm3d at X... ( at ) implicit set pm3d; implicit ON splot fred.dat with lines, lola.dat with lines ( ) pm3d set pm3d; explicit ON ( implicit OFF) with pm3d pm3d splot fred.dat with lines, lola.dat with pm3d freq.dat ( ) lola.dat pm3d / pm3d set style data pm3d implicit explicit splot with pm3d at 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. 130), set cbrange (p. 157), set colorbox (p. 98), x11 pm3d (p. 217) demo/pm3d.dem

130 gnuplot 4.4 75 SET-SHOW 75.52.1 Depthorder pm3d scansautomatic scansforward scansbackward (scan) gnuplot set pm3d depthorder hidden3d depthorder hidden3d ( ) set hidden3d pm3d 75.53 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> } { 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 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

75 SET-SHOW gnuplot 4.4 131 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 ( ) http://zimg.sourceforge.net 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) gamma=1 ( test palette (p. 162)) ( gif 256 ) gnuplot pm3d multiplot set palette maxcolors <maxcolors> z= 0 RGB 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 Color Television Broadcasting) RGB XYZ CIE ( Commission Internationale de l Eclairage ; ) 3 http://en.wikipedia.org/wiki/color space 75.53.1 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 positive (p. 132), negative (p. 132)) RGB 7,5,15... pm3d ( - - - )

132 gnuplot 4.4 75 SET-SHOW 3,11,6... - - 23,28,3... ( - - ); 21,22,23... ( - - - ) 30,31,32... ( - - - - ) 33,13,10... ( - - - ) 34,35,36... AFM ( - - - ) HSV 3,2,2... - - - - - - rgbformulae <H>,<S>,<V> <X>,<Y>,<Z>,... positive negative rgbformulae show palette fit2rgbformulae 75.53.2 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 ( ) set palette model RGB set palette defined ( 0 "black", 1 "white" ) ( ) set palette defined ( 0 "blue", 1 "yellow", 2 "red" ) set palette defined ( 0 0 0 1, 1 1 1 0, 2 1 0 0 ) set palette defined ( 0 "#0000ff", 1 "#ffff00", 2 "#ff0000" ) set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" ) HSV

75 SET-SHOW gnuplot 4.4 133 set palette model HSV set palette defined ( 0 0 1 1, 1 1 1 1 ) set palette defined ( 0 0 1 0, 1 0 1 1, 6 0.8333 1 1, 7 0.8333 0 1) set palette model RGB maxcolors 4 set palette defined ( 0 "blue", 1 "green", 2 "yellow", 3 "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" ) 75.53.3 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) 75.53.4 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 "-" 0 0 1 0 1 0 1 1 0 1 0 0 e binary general (p. 68) R,G,B double 64 3 palette.bin set palette file "palette.bin" binary record=64 using 1:2:3

134 gnuplot 4.4 75 SET-SHOW 75.53.5 (gamma correction) set palatte gamma <gamma> ON <gamma> 1.5 gnuplot set palette model RGB set palette functions gray**0.64, gray**0.67, gray**0.70 set palette defined ( 0 0 0 0, 1 1 1 1 ) set palette defined ( 0 0 0 0, 0.5.73.73.73, 1 1 1 1 ) " " 75.53.6 Postscript postscript RGB postscript pm3d /g /cf 3 multiplot postscript nops allcf ps allcf postscript 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> 75.54 Pointintervalbox pointinterval linespoints pointinterval -N N ( ) set pointintervalbox ( )

75 SET-SHOW gnuplot 4.4 135 75.55 Pointsize set pointsize set pointsize <multiplier> show pointsize 1.0 plot plot with (p. 84) 75.56 Polar set polar xy set polar unset polar show polar (t) t [0:2*pi] [0:360] ( set angles (p. 89)) unset polar xy set polar splot splot set mapping (p. 118) t r=f(t) t trange ( ) xrange yrange x,y rrange ranges set xrange (p. 150) set polar plot t*sin(t) plot [-2*pi:2*pi] [-3:3] [-3:3] t*sin(t) plot 0 2*pi 2 plot x,y [-3:3] set size square gnuplot ( ) 1 ( ) (polar.dem) (poldat.dem) 75.57 Print set print print set print set print "-" set print "<filename>" set print "<filename>" append set print " <shell_command>"

136 gnuplot 4.4 75 SET-SHOW "<filename>" <STDERR> "-" <filename> <STDOUT> append (append) <filename> " " <shell command> 75.58 Rmargin set rmargin set margin (p. 118) 75.59 Rrange set rrange set xrange (p. 150) 75.60 Samples set samples set samples <samples_1> {,<samples_2>} show samples 100 / 2 plot smooth 3 set dgrid3d (p. 103) 2 <samples 1> samples v- <samples 1> u- <samples 2> <samples 1> <samples 2> <samples 1> set isosamples (p. 111) 75.61 Size set size {{no}square ratio <r> noratio} {<xscale>,<yscale>} show size <xscale> <yscale> gnuplot set size ( ) version 4.4 set term <terminal type> size <XX>, <YY> " " set size <XX>, <YY> 1 1 1

75 SET-SHOW gnuplot 4.4 137 ratio <xscale>, <yscale> ( ) <r> (<r> x y ) <r> <r>=-1 x y ( 1) ( ) <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. 147) 3 x y set size 1,1 set size square 0.5,0.5 2 set size ratio 2 75.62 Style set style data set style function plot with (p. 84) plotting styles (p. 42) 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> 75.62.1 Set style arrow test set style arrow

138 gnuplot 4.4 75 SET-SHOW 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. 21) <backangle> filled empty <backangle> (<angle> ; ) fig 3 2 70 110 filled (heads ) pm3d (p. 126) ( ) empty metafont, metapost, latex, tgif ( set style line (p. 140)) <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. 90) 75.62.2 Set style data set style data set style data <plotting-style>

75 SET-SHOW gnuplot 4.4 139 show style data plotting styles (p. 42) show style data 75.62.3 Set style fill set style fill boxes, histograms, candlesticks, filledcurves (fillstyle) set style rectangle (p. 142) 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 75.62.3.1 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 wxt yes yes yes x11 no yes no png "truecolor" PDF PDF PostScript Ghostscript/gv 75.62.4 Set style function set style function

140 gnuplot 4.4 75 SET-SHOW set style function <plotting-style> show style function plotting styles (p. 42) show style function 75.62.5 Set style increment 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 75.62.6 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 line <index> linestyle <index> index index ( <point size> set pointsize ) pointinterval linespoints 0 ( ) set style line N pi 3 N

75 SET-SHOW gnuplot 4.4 141 with linespoints 3 ( ) (, ) set style increment (p. 140) linewidth pointsize linecolor <colorspec> linetype <colorspec> ( lc, lt) RGB 3 gnuplot cbrange colors (p. 33), colorspec (p. 34),set palette (p. 130), colornames (p. 99), cbrange (p. 157) 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 0.5 2 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. 130), set pm3d (p. 126) set style line 10 linetype 1 linecolor rgb "cyan" RGB 10 75.62.7 Set style circle set style circle {radius {graph screen} <R>} "with circles" 2 (x,y) "set style circle radius graph 0.02"

142 gnuplot 4.4 75 SET-SHOW 75.62.8 Set style rectangle set object set style rectangle set style rectangle {front back} {lw linewidth <lw>} {fillcolor <colorspec>} {fs <fillstyle>} colorspec (p. 34), fillstyle (p. 139) 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 75.63 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. 99) 75.64 Table table plot splot X Y {Z} R R 3 "i" "o" (undefined) "u" ( set format (p. 106)) plot set contour (p. 99) ( set samples (p. 136), set dgrid3d (p. 103)) set table {"outfile"} plot <whatever> unset table set output unset table 75.65 Terminal gnuplot set terminal gnuplot set output

75 SET-SHOW gnuplot 4.4 143 set terminal {<terminal-type> push pop} show terminal <terminal-type> gnuplot <terminal-type> set terminal set output set terminal OS png (p. 196), postscript (p. 198) <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. 163) 75.66 Termoption set termoption set terminal set termoption {no}enhanced set termoption font "<fontname>{,<fontsize>}" set termoption {solid dashed} set termoption {linewidth <lw>}{lw <lw>} 75.67 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} { format "formatstring" } { font "name{,<size>}" } { textcolor <colorspec> } set tics {front back} unset tics show tics x, y, z, x2, y2, cb tics front back 2D (splot ) 1 axis border gnuplot ( ) axis (

144 gnuplot 4.4 75 SET-SHOW set border (p. 94)) mirror gnuplot nomirror in out scale <minor> 0.5*<major> 1.0 0.5 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. 21) nooffset offset OFF set tics ( ) set xtics (p. 151) set mxtics (p. 122) 75.68 Ticslevel set xyplane (p. 154) 75.69 Ticscale set ticscale set tics scale 75.70 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 <xoff> <yoff> (offset) <font> timestamp time set timestamp "%d/%m/%y %H:%M" offset 80,-2 font "Helvetica" set timefmt (p. 145)

75 SET-SHOW gnuplot 4.4 145 75.71 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, 1 365 %H, 0 24 %M, 0 60 %s Unix epoch (1970-01-01, 00:00 UTC) %S, 0 60 %b ( ) 3 %B ( ) \t ( ) + 8 (\nnn) %d, %m, %y, %H, %M, %S 2 %Y 4 %j 3 %b 3 %B ( ) 1 0 1 "%H %M" "1220" "12 20" "12 20" using n:n 11:11 25/12/76 21.0 3 gnuplot using "%a", "%A", "%b", "%B" gnuplot set format (p. 106) 2 %y 69-99 2000 00-68 2000 UNIX98 2 set xdata (p. 148), time/date (p. 41) set timefmt "%d/%m/%y\t%h:%m" gnuplot (? ) (time data) 75.72 Title set title set title set label

146 gnuplot 4.4 75 SET-SHOW 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. 21) character "set title offset 0,-1" y 1 1 <font> <size> (terminal) textcolor <colorspec> <colorspec> rgb colorspec (p. 34), palette (p. 130) noenhanced (enhanced text) set title : syntax (p. 40) 75.73 Tmargin set tmargin set margin (p. 118) 75.74 Trange set trange x,y set xrange (p. 150) 75.75 Urange set urange set vrange splot x,y,z set xrange (p. 150) 75.76 Variables show variables gnuplot GPVAL, MOUSE, FIT, TERM show variables # GPVAL_ show variables all # GPVAL_ show variables NAME # NAME 75.77 Version show version gnuplot FAQ info-gnuplot show version {long} long gnuplot ( )

75 SET-SHOW gnuplot 4.4 147 75.78 View set view splot 3 2 (screen) 3 2 2 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,,0.5 4 2 0.5 75.78.1 Equal axes set view equal xy x y set view equal xyz z x y z 3 set xyplane (p. 154) 75.79 Vrange set urange set vrange splot ( ) x, y, z set xrange (p. 150) 75.80 X2data set x2data x2 ( ) ( ) set xdata (p. 148) 75.81 X2dtics set x2dtics x2 ( ) set xdtics (p. 148) 75.82 X2label set x2label x2 ( ) set xlabel (p. 149)

148 gnuplot 4.4 75 SET-SHOW 75.83 X2mtics set x2mtics x2 ( ) 1 set xmtics (p. 150) 75.84 X2range set x2range x2 ( ) set xrange (p. 150) 75.85 X2tics set x2tics x2 ( ) set xtics (p. 151) 75.86 X2zeroaxis set x2zeroaxis x2 ( ) (y2 = 0) set zeroaxis (p. 156) 75.87 Xdata x set xdata {time} show xdata ydata, zdata, x2data, y2data, cbdata time gnuplot set timefmt (p. 145) ( 2000 1 1 ) (timefmt) (label) strftime (unix "man strftime" ) set format x "string" 10 (2 % %f %g ) gnuplot time/date (p. 41) 75.88 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. 106)

75 SET-SHOW gnuplot 4.4 149 75.89 Xlabel set xlabel x set xlabel {"<label>"} {offset <offset>} {font "<font>{,<size>}"} {{textcolor tc} {lt <line_type> default}} {{no}enhanced} {rotate by <degrees>} show xlabel x2label, ylabel, y2label, zlabel, cblabel <offset> x,y x,y,z first, second, graph, screen, character coordinates (p. 21) character "set xlabel offset -1,0" x 1 1 <font> <size> ( ) textcolor lt <n> <n> noenhanced (enhanced text) "set y2label" xlabel: x ylabel: y 3 1. set x2tics ylabel x2 ylabel 2. 3. LaTeX, TPIC EEPIC (LaTeX TPIC ) ylabel \\ 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 x, x2, y, y2 ( ) 2 set label syntax (p. 40)

150 gnuplot 4.4 75 SET-SHOW 75.90 Xmtics set xmtics x 1=Jan (1 ) 12=Dec (12 ) 12 12 unset xmtics set xmtics unset xmtics show xmtics x2mtics, ymtics, y2mtics, zmtics, cbmtics set format (p. 106) 75.91 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) writeback set xrange writeback plot set xrange restore set xrange [-10:10] set yrange [] writeback plot sin(x) set yrange restore replot x/2 y (yrange) sin(x) [-1:1] x/2 [-5:5] show yrange 2 xrange yrange trange 3 xrange, yrange, zrange urange yrange rrange <rmin> <rmax> (clip) <rmax> xrange yrange r(t)-rmin rmin

75 SET-SHOW gnuplot 4.4 151 plot plot set splot x set xrange [-10:10] y set yrange [10:-10] z ( ) 10 set zrange [:10] x set xrange [*:] 75.92 Xtics x ( ) set xtics unset xtics set xtics ( ) y,z,x2,y2 set xtics {axis border} {{no}mirror} {in out} {scale {default <major> {,<minor>}}} {{no}rotate {by <ang>}} {offset <offset> nooffset} {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> 1.0 0.5 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

152 gnuplot 4.4 75 SET-SHOW z set border <offset> x,y x,y,z first, second, graph, screen, character <offset> character coordinates (p. 21) nooffset xtics set xtics offset 0,graph 0.05 set xtics ( ) autofreq 2 <start>, <incr>, <end> <start> <end> <incr> <end> <incr> <start> <end> <start> - <end> + <incr> ( ) <start> <incr> ( rotate by <angle> offset <offset> ) gnuplot <start> <incr> 0-<start> 0-<incr> set xtics border offset 0,0.5-5,1,5, set xtics border offset 0,0.5 0-5,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. 106)

75 SET-SHOW gnuplot 4.4 153 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) 2 3 4 ( ) set xtics auto add set xtics 0,.5,10 set xtics add ("Pi" 3.14159) x 0.5 ( ) set format set xtics (<label>) ( ) set mxtics set xtics ("" <pos> 1,...) 75.92.1 Xtics time data timefmt <start>, <incr>, <end> <start> <end> timefmt <incr> set format set xdata time set timefmt "%d/%m" set xtics format "%b %d" set xrange ["01/12":"06/12"] set xtics "01/12", 172800, "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" 75.92.2 Xtics rangelimited "file.dat" 2 < y < 4 (y ) y ([0:10]) ([2:4])

154 gnuplot 4.4 75 SET-SHOW ([2:4]) y ([0:10]) 0 2 4 10 (range-frame) set border 3 set yrange [0:10] set ytics nomirror rangelimited plot "file.dat" 75.93 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 0.5 3 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. 147), set zeroaxis (p. 156) 75.94 Xzeroaxis set xzeroaxis y = 0 set zeroaxis (p. 156) 75.95 Y2data set y2data y2 ( ) ( ) set xdata (p. 148) 75.96 Y2dtics set y2dtics y2 ( ) set xdtics (p. 148) 75.97 Y2label set y2label y2 ( ) set xlabel (p. 149) 75.98 Y2mtics set y2mtics y2 ( ) 1 set xmtics (p. 150)

75 SET-SHOW gnuplot 4.4 155 75.99 Y2range set y2range y2 ( ) set xrange (p. 150) 75.100 Y2tics set y2tics y2 ( ) set xtics (p. 151) 75.101 Y2zeroaxis set y2zeroaxis y2 ( ) (x2 = 0) set zeroaxis (p. 156) 75.102 Ydata set ydata y ( ) set xdata (p. 148) 75.103 Ydtics set ydtics y set xdtics (p. 148) 75.104 Ylabel y set xlabel (p. 149) 75.105 Ymtics set ymtics y set xmtics (p. 150) 75.106 Yrange set yrange y set xrange (p. 150) 75.107 Ytics set ytics y ( ) set xtics (p. 151) 75.108 Yzeroaxis set yzeroaxis x = 0 (y ) set zeroaxis (p. 156) 75.109 Zdata set zdata z ( ) set xdata (p. 148) 75.110 Zdtics set zdtics z set xdtics (p. 148)

156 gnuplot 4.4 75 SET-SHOW 75.111 Zzeroaxis set zzeroaxis (x=0,y=0) 2D set view map splot set zeroaxis (p. 156), set xyplane (p. 154) 75.112 Cbdata ( ) set xdata (p. 148) 75.113 Cbdtics cbdtics set xdtics (p. 148) 75.114 Zero zero 0.0 set zero <expression> show zero gnuplot ( ) zero ( ) gnuplot ( ) zero 1e-8 1e-3 (= ) zero zero 0.0 75.115 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

76 SHELL gnuplot 4.4 157 75.116 Zlabel z set xlabel (p. 149) 75.117 Zmtics set zmtics z set xmtics (p. 150) 75.118 Zrange set zrange z splot plot set xrange (p. 150) 75.119 Ztics set ztics z ( ) set xtics (p. 151) 75.120 Cblabel set xlabel (p. 149) 75.121 Cbmtics set cbmtics set xmtics (p. 150) 75.122 Cbrange set cbrange with pm3d, with image with palette (palette) (cb- ) splot zrange splot... pm3d palette zrange cbrange set cbrange set xrange (p. 150) set palette (p. 130), set colorbox (p. 98) 75.123 Cbtics set cbtics ( ) set xtics (p. 151) 76 Shell shell gnuplot VMS logout Unix exit END-OF-FILE AmigaOS endcli MS-DOS OS/2 exit 2 system! (VMS $) gnuplot

158 gnuplot 4.4 77 SPLOT gnuplot AmigaOS, 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" 77 Splot splot 3 ( 2 ) plot splot x, y, z plot 2 x2, y2 plot plot (p. 66) splot {<ranges>} {<iteration>} <function> "<datafile>" {datafile-modifiers}} {<title-spec>} {with <style>} {, {definitions{,}} <function>...} <function> 3 splot xy z xy set xyplane splot set view set view (p. 147), set xyplane (p. 154) 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. 126) 77.1 (datafile) plot splot <file_name> {binary <binary list>} {{nonuniform} matrix} {index <index list>} {every <every list>} {using <using list>}

77 SPLOT gnuplot 4.4 159 "" "-" plot 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. 161) 3 splot (parametric) 77.1.1 Binary matrix Gnuplot array, record, format, filetype general binary matrix general matrix ( binary general (p. 68) ) gnuplot binary <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)

160 gnuplot 4.4 77 SPLOT bf test.c demo/binary.dem index 1 1 every using using 3 binary general (p. 68) splot 77.1.2 3 splot datafile.dat "datafile.dat" # The valley of the Gnu. 0 0 10 0 1 10 0 2 10 1 0 10 1 1 5 1 2 10 2 0 10 2 1 1 2 2 10 3 0 10 3 1 0 3 2 10 "datafile.dat" 4*3 ( 3 4 ) ( ) 1 x y (grid data) x y gnuplot 77.1.3 Ascii matrix (matrix ascii) {s}plot a.dat matrix matrix ( binary ) ascii z z11 z12 z13 z14... z21 z22 z23 z24... z31 z32 z33 z34... 3 x y (0 ) x=$1, y=$2, z=$3 3

77 SPLOT gnuplot 4.4 161 splot a.dat matrix using (1+$1/100):(1+$2*10):3 (mesh) splot index 2 matrix (p. 161) 77.1.4 Matrix ascii matrix ( ) binary matrix binary matrix ascii (p. 160), matrix binary (p. 159) splot splot a.dat matrix splot a.gpbin {matrix} binary splot splot a.dat matrix using 1:2:3 splot a.gpbin {matrix} binary using 1:2:3 z 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 ( 0 3 2 ) 77.2 (grid data) 3 ( set isosamples (p. 111)) ( splot datafile (p. 158)) " " x, y u,v set isosamples (p. 111) gnuplot samples isosamples x- 1 y- " " " " " " set dgrid3d { } y- y- z x- y- splot

162 gnuplot 4.4 80 UNDEFINE 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 77.3 Splot (splot overview) splot plot set isosamples (p. 111) set surface (p. 142) set hidden3d 3 set view splot ( set contour (p. 99)) ( set cntrparam (p. 96)) set isosamples set samples data-file ( set dgrid3d (p. 103)) plot plot 78 System system "command" "command" shell (p. 157) system("command") gnuplot f(x) = real(system(sprintf("somecommand %f", x))) 79 Test test {terminal palette [rgb rbg grb gbr brg bgr]} test test terminal (terminal) test palette (palette) R(z), G(z),B(z) (0<=z<=1) show palette palette 256 float r,g,b set palette gray rgb 80 Undefine 1

83 gnuplot 4.4 163 undefine foo foo1 foo2 if (!exists("foo")) load "initialize.gp" 81 Unset set unset unset iteration (p. 64) set xtics mirror rotate by -45 0,10,100... unset xtics # 100 200 unset unset for [i=100:200] label i 82 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. 56) Part IV (Terminal) 83 gnuplot set terminal (p. 142) gnuplot set terminal 83.1 Aed767 aed512 aed767 AED 2 512 767 575

164 gnuplot 4.4 83 83.2 Aifm Adobe Illustrator 1 PostScript set terminal post level1 Adobe Illustrator 3.0+ aifm set terminal aifm {<color>} {"<fontname>"} {<fontsize>} <color> color monochrome "<fontname>" PostScript <fontsize> PostScript set size default monochrome, "Times-Roman", 14pt, AI AI ( ) set term aifm set term aifm 22 set size 0.7,1.4; set term aifm color "Times-Roman" 14 83.3 Amiga Commodore ( ) Amiga amiga (default) Kickstart 3.0 set terminal amiga {screen window} {"<fontname>"} {<fontsize>} 8 "topaz" screen 83.4 Apollo apollo Apollo gpr 83.5 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) {fname "<fontname>"} {fsize <fontsize>}

83 gnuplot 4.4 165 aqua (enhanced text mode; enhanced (p. 22)) set encoding iso latin 1, iso latin 2, cp1250 default (= UTF8) ( ) <dashlength> (>0) 83.6 Be gnuplot X be 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 83.6.1 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

166 gnuplot 4.4 83 83.6.2 Monochrome options gnuplot (foreground) (background) -rv gnuplot*reversevideo: on 83.6.3 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 83.6.4 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 83.6.5 Line resources gnuplot ( ) ( ) 0 1 1 2 3

83 gnuplot 4.4 167 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 0 2 10 jk (j k 1 9 ) j k 16 1 6 4 10 4441 4 4 4 1 (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 83.7 Canvas set terminal canvas {size <xsize>, <ysize>} {fsize <fontsize>} {{no}enhanced} {linewidth <lw>} {standalone {mousing} name <funcname> } {jsdir URL/for/javascripts } {title <some string> } <xsize> <ysize> standalone 600x400 10 canvastext.js Hershey simplex Roman canvasmath.js UTF-8 Hershey simplex Greek math symbols standalone HTML 5 canvas javascript HTML HTML 2 javascript canvastext.js gnuplot common.js Unix /usr/local/share/gnuplot/<version>/js jsdir URL canvas mousing standalone canvastext.js URL gnuplot mouse.js javascript gnuplot mouse.css

168 gnuplot 4.4 83 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> 83.8 Cgi cgi hcgi SCO CGI hcgi CGIPRNT cgi CGIDISP CGIPRNT 83.9 Cgm cgm CGM (Computer Graphics Metafile Version 1) ANSI X3.122-1986 "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>"} {<color0> <color1> <color2>...} solid ; <mode> landscape, portrait, default ; <plot width> ; <line width> ( 1); <fontname> ( ); <fontsize> ( 12) 6 default (color) xrrggbb x x rrggbb 16 x00ff00 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 #!

83 gnuplot 4.4 169 83.9.1 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 Helvetica Bold Helvetica Oblique Helvetica Bold Oblique Times Roman Times Bold Times Italic Times Bold Italic Courier Courier Bold Courier Oblique Courier Bold Oblique Symbol Hershey/Cartographic Roman Hershey/Cartographic Greek Hershey/Simplex Roman Hershey/Simplex Greek Hershey/Simplex Script Hershey/Complex Roman Hershey/Complex Greek Hershey/Complex Script Hershey/Complex Italic Hershey/Complex Cyrillic Hershey/Duplex Roman Hershey/Triplex Roman Hershey/Triplex Italic Hershey/Gothic German Hershey/Gothic English Hershey/Gothic Italian Hershey/Symbol Set 1 Hershey/Symbol Set 2 Hershey/Symbol Math ZapfDingbats Script 15 13 WebCGM Microsoft Office CGM import 13 ZapfDingbats Script (script) 15 Microsoft import font C:\Program Files\Microsoft Office\Office\Cgmimp32.hlp C:\Program Files\Common Files\Microsoft Shared\Grphflt\Cgmimp32.cfg

170 gnuplot 4.4 83 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 83.9.2 Cgm fontsize 6 size CGM width 83.9.3 Cgm linewidth linewidth (pt) 1 pt fontsize width 83.9.4 Cgm rotate norotate Word for Windows 6.0c CGM Word DRAW ( ) Y norotate Y rotate 83.9.5 Cgm solid solid dashed 83.9.6 Cgm size CGM (landscape) 32599, 23457 (portrait) 23457, 32599 83.9.7 Cgm width CGM 6 (15.24 cm) width

83 gnuplot 4.4 171 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 83.9.8 Cgm nofontlist (font table) WebCGM Microsoft Office Corel Draw CGM (Computer Graphics Metafile) nofontlist (winword6 ) CGM gnuplot Helvetica 1 Helvetica Bold 2 83.10 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 83.11 Debug gnuplot 83.12 Dospc dospc PC gcc, Zortec C/C++ 83.13 Dumb (dumb) set terminal dumb {[no]feed} {<xsize> <ysize>} {[no]enhanced} <xsize>, <ysize> 79, 24 feed set term dumb nofeed set term dumb 79 49 # VGA screen---?

172 gnuplot 4.4 83 83.14 Dxf dxf AutoCad ( 10.x) AutoCad 120x80 set size dxf 7 ( ) AutoCad / 83.15 Dxy800a Roland DXY800A 83.16 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 ( ) 10 pt 3.5 mm \footnotesize # ( (La)TeX ) \\ ( 2 ) ( tpic specials eepic.sty dvips/dvipdfm ) eepic 5x3 teminal size (point) LaTeX "\Diamond", "\Box" LaTeX2e latexsym LaTeX latexsym amssymb LaTeX { } [ (t,b,l,r 2 ) ]{ } LaTeX LR-box \rule{}{} set term eepic picture eepic

83 gnuplot 4.4 173 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}} 83.17 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} {"<fontname>"} {<fontsize>} # {font "<fontname>,<fontsize>"} # monochorome color 8 solid linewidth <factor> dashlength <factor> <fontname> <fontsize> ( ) 1024x768 size (enhanced text mode) noproportional color dashed font "Arial,12" size 1024,768 default set terminal emf Times Roman Italic 12 set terminal emf color solid #! 83.18 Emxvga emxvga, emxvesa, vgal SVGA, vesa SVGA, VGA PC DOS OS/2 "emx-gcc" VESA SVGAKIT Johannes Martin (JMARTIN@GOOFY.ZDV.UNI-MAINZ.DE) David J. Liu (liu@phri.nyu.edu)

174 gnuplot 4.4 83 set terminal emxvga set terminal emxvesa {vesa-mode} set terminal vgal emxvesa vesa G640x480x256 83.19 Epslatex epslatex LaTeX set terminal epslatex set terminal epslatex {default} {standalone input} {oldstyle newstyle} {level1 leveldefault} {color colour monochrome} {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>}} epslatex PostScript LaTeX terminal postscript eps postscript terminal version 4.0 4.2 postscript epslatex 5 x 3 5 x 3.5 50% 60% Postscript oldstyle ( (tics) set tics scale (arrow) postscript ) "Can t find PostScript prologue file... " postscript prologue (p. 201) 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

83 gnuplot 4.4 175 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 0.0 1.0 set size BoundingBox blacktext epslatex (a) { } LaTeX (b) [ (t,b,l,r,c 2 ) ]{ } LaTeX LR-box \rule{}{} pslatex (p. 202) \shortstack set ylabel [r]{\shortstack{first line \\ second line}} set label back front back 2 1 eps LaTeX LaTeX set output eps (.tex).eps LaTeX! multiplot LaTeX \input{filename}.eps \includegraphics{...} LaTeX \usepackage{graphicx} textcolour LaTeX \usepackage{color} eps epstopdf pdf graphics LaTeX pdflatex eps pdf standalone include LaTeX LaTeX LaTeX 12pt "" 12 standalone TeX Bool \ifgpcolor \ifgpblacktext \ifgpcolor true \ifgpblacktext false TeX TeX \newif\ifgpblacktext

176 gnuplot 4.4 83 \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 3 4 1 2 1 j x expert http://www.tug.org/fontname/fontname.pdf cmr Computer Modern Roman ptm Times-Roman, phv Helvetica m ("medium") bx b (bold) n (upright) it sl (slanted) sc (small caps) Times-Roman ( ) set terminal epslatex ptm,bx Helvetica set terminal epslatex phv,bx,it set terminal epslatex,,sl (small caps) set terminal epslatex,,sc "gnuplot.cfg" header standalone set terminal LaTeX "size<size>.clo" 10pt, 11pt, 12pt "extsizes" 8pt, 9pt, 14pt, 17pt, 20pt header LaTeX standalone \begin{document} input \begingroup T1 Times-Roman Helvetica set terminal epslatex standalone header \ "\\usepackage[t1]{fontenc}\n\\usepackage{mathptmx}\n\\usepackage{helvet}"

83 gnuplot 4.4 177 (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 83.20 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-800 24 okidata 9 OKIDATA 320/321 starc Star tandy 60dpi 9 60dpi Tandy DMP-130 dpu414 Seiko DPU-414 nec cp6 set terminal nec_cp6 {monochrome colour draft} (monochrome) dpu414 set terminal dpu414 {small medium large} {normal draft} medium (= ) normal medium normal small draft 83.21 Excl excl EXCL 1590 Talaris 83.22 Fig fig Fig set terminal fig {monochrome color} {landscape portrait} {small big size <xsize> <ysize>}

178 gnuplot 4.4 83 {metric inches} {pointsmax <max_points>} {solid dashed} {font <fontname>} {fontsize <fsize>} {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 fontsize <fsize> textnormal postscript textspecial LaTeX special texthidden, textrigid depth (depth layer) 10 "xfig" version fig 3.1 3.2 thickness 1 plot linetype 100 ( ) <linetype> 1000 <layer>+<linetype>/1000 (<linetype>%1000) /100 0 linewidth thickness plot point fig (pointtype ) % 100 50 <pointtype> % 5 (<pointtype> % 10 < 5 ) 50-59: 60-69: 70-79: 80-89: 90-99: 1 <pointtype> 1000 <layer> +<pointtype>/1000-1 <pointtype>%1000 100 (<pointtype>%1000)/100-1 (1 9) ( 1 6 7 9 ) <linetype> <pointtype> plot with (p. 84) big bfig set terminal fig monochrome small pointsmax 1000 plot file.dat with points linetype 102 pointtype 759 #

83 gnuplot 4.4 179 1 plot file.dat using 1:2:3 with err linetype 1 pointtype 554 1 ( 9) plot file.dat using 1:2:3 with err linetype 1 pointtype 2554 83.23 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 83.24 Gif set terminal gif {{no}transparent} {rounded butt} {linewidth <lw>} {dashlength <dl>} {tiny small medium large giant} {font "<face> {,<pointsize>}"} {{no}enhanced} {size <x>,<y>} {{no}crop} {animate {delay <d>} {loop <n>} {{no}optimize}} {<background_color>} PNG, JPEG, GIF libgd GIF ImageMagick display set term gif set output display gif:-

180 gnuplot 4.4 83 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. 18), set size (p. 136) crop nocrop xrrggbb x x rrggbb 16 x00ff00 83.24.1 set terminal gif medium size 640,480 xffffff medium (xffffff) set terminal gif font arial 14 enhanced arial 14pt fonts (p. 31) set term gif animate transparent opt delay 10 size 200,200 x000000 load "animate2.dem" GIF gif animate2.dem

83 gnuplot 4.4 181 83.25 Gnugraph(GNU plotutils) gnugraph GNU plot "plot2ps" PostScript 5 x 3 set size 8.25 x 8.25 set terminal gnugraph {"<fontname>"} {<fontsize>} {type <pt>} {size "<size>"} 10 "Courier" type X, pnm, gif, ai,ps, cgm, fig, pcl5, hpgl, tek, meta (default) size (default a4) plotutils plotutils set terminal gnugraph type hpgl size "a4" set terminal gnugraph size "a4,xoffset=-5mm,yoffset=2.0cm" type pnm GNU gnugraph GNU 83.26 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 ylab @space 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

182 gnuplot 4.4 83 2 2 4 8 set terminal gpic x y.ps 6.0 copy "trig.pic".pe 83.27 Gpr gpr Apollo Graphics Primitive Resource apollo 83.28 Grass grass GRASS gnuplot grassp-list@moon.cecer.army.mil GRASS 83.29 Hercules PC gcc, Zortec C/C++ 83.30 Hp2623a hp2623a (Hewlett Packard) HP2623A 83.31 Hp2648 hp2648 (Hewlett Packard) HP2647 HP2648 83.32 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

83 gnuplot 4.4 183 83.33 Hpgl hpgl HP7475A HPGL 2 eject "eject" 6 ISO-8859-1 CP850 set encoding iso 8859 1 set encoding cp850 ( set encoding (p. 104)) set terminal hpgl {<number_of_pens>} {eject} set terminal hpgl 8 eject hp7550 set terminal hpgl 4 hp7580b pcl5 Hewlett-Packard Designjet 750C Hewlett-Packard Laserjet III, Hewlett-Packard Laserjet IV HPGL-2 set terminal pcl5 {mode <mode>} {<plotsize>} {{color {<number_of_pens>}} monochrome} {solid dashed} {font <font>} {size <fontsize>} {pspoints nopspoints} <mode> landscape portrait <plotsize> letter (8 1/2" X 11") legal (8 1/2" X 14") noextended (36" X 48") (letter ) extended (36" X 55") ( legal ) color ( ) <number of pens> ( ) monochrome 1 ( ) solid dashed <font> stick, univers, cg times, zapf dingbats, antique olive, arial, courier, garamond antigua, letter gothic, cg omega, albertus, times new roman, clarendon, coronet, marigold, truetype symbols, wingdings <fontsize> (point type) nopspoints pspoints postscript terminal HP Laserjet IV HP Laserjet III Designjet 750C 2,3 ( univers, stick) laserjet landscape, noextended, color (6 pens), solid, univers, 12 point, nopspoints pcl5 8-bit set encoding HPGL 83.34 Hpljii hpljii HP Laserjet Sries II hpdj HP DeskJet 500

184 gnuplot 4.4 83 set terminal hpljii hpdj {<res>} res 75, 100, 150, 300 (DPI; dots per inch) 75 hp500c hpdj hp500c 83.35 Hppj hppj HP PaintJet HP3630 set terminal hppj {FNT5X9 FNT9X17 FNT13X25} (FNT9X17) 83.36 Imagen imagen Imagen 1 set terminal imagen {<fontsize>} {portrait landscape} {[<horiz>,<vert>]} fontsize 12 landscape <horiz> <vert> 1 set terminal imagen portrait [2,3] 1 6 2 3 (portrait) 83.37 Jpeg set terminal jpeg {{no}interlace} {linewidth <lw>} {dashlength <dl>} {rounded butt} {tiny small medium large giant} {font "<face> {,<pointsize>}"} {{no}enhanced} {size <x>,<y>} {{no}crop} {<background_color>} PNG, JPEG, GIF libgd PNG GIF JPEG gnuplot interlace JPEG nointerlace linewidth dashlength butt 1 rounded ( )

83 gnuplot 4.4 185 set term jpeg font arial 11 set term jpeg font "arial,11" fonts <x,y> 640x480 canvas (p. 18), set size (p. 136) crop nocrop xrrggbb x x rrggbb 16 x00ff00 83.38 Kyo kyo prescribe Kyocera ( ) kyo "Helvetica" prescribe "Courier" 83.39 Latex set terminal {latex emtex} {default {courier roman} {<fontsize>}} {size <XX>{unit}, <YY>{unit}} {rotate norotate} Courier (cmtt) Roman (cmr) DVI ( dvips) 10, 11, 12 METAFONT METAFONT LaTeX { } [ (t,b,l,r 2 ) ]{ } LaTeX LR-box \rule{}{} (point) LaTeX "\Diamond" "\Box" LaTeX2e latexsym LaTeX amssymb 5 inch 3 inch size X Y inch ( cm ) rotate y (graphics graphicx ) y gnuplot ( ): set title \LaTeX\ -- $ \gamma $ set label {\LaTeX\ -- $ \gamma $} at 0,0 ( ): set xlabel [t]{\latex\ -- $ \gamma $} set ylabel [r]{\latex\ -- $ \gamma $\rule{7mm}{0pt}}

186 gnuplot 4.4 83 83.40 Linux linux GSVG- AMODE 1024x768x256 640x480x16 ( VGA) 83.41 Lua lua Lua TikZ -> pdflatex Lua http://www.lua.org 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 TikZ set terminal lua tikz {help} {monochrome} {solid} {originreset} {gparrows} {gppoints} {nopicenvironment} {size <x>{unit},<y>{unit}} {scale <x>,<y>} {plotsize <x>{unit},<y>{unit}} {charsize <x>{unit},<y>{unit}} {font "<fontdesc>"} {createstyle} {fulldoc standalone} {{preamble header} "<preamble_string>"} {tikzplot <ltn>,...} {tikzarrows} {cmykimages} {nobitmap} {providevars <var name>,...} 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

83 gnuplot 4.4 187 originreset TikZ tikzpicture multiplot pm3d gparrows TikZ (arrow) gnuplot (arrow) gppoints TikZ gnuplot nopicenvironment tikzpicture PGF/TikZ size 2 <x>, <y> 12.5cm x 8.75cm scale size <x>, <y> plotsize gnuplot originreset multiplot pm3d charsize TeX createstyle LaTeX gnuplot-lua-tikz.sty 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 nobitmap PS, PDF providevars gnuplot TeX \gpgetvar{<var name>} show variables all <fontdesc> \small LaTeX "font=<fontdesc>" \small,yshift=1ex,yshift=1ex 2 < >{ } 1 pt \sffamily,12,fill=red 12pt LaTeX sans serif \n

188 gnuplot 4.4 83 83.42 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 83.43 Mf mf METAFONT TeX gnuplot METAFONT METAFONT METAFONT Computer Modern Roman METAFONT METAFONT ( ) METAFONT ( PC) mf 83.43.1 METAFONT Instructions - (terminal) METAFONT set terminal mf - set output "myfigures.mf" - 5x3 set size 0.5,0.5 - gnuplot - gnuplot METAFONT TFM GF (5x3 ) memmax 150000 METAFONT Unix bigmf virmf big METAFONT - METAFONT

83 gnuplot 4.4 189 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 0 2 1 1 2 plain TeX \centerline{\gnufigs\char0} \centerline{\gnufigs\char1} LaTeX picture \makebox \put TeX TeX METAFONT DVI eepic tpic \special 83.44 Mgr mgr Mgr 83.45 Mif mif Frame Maker MIF (version 3.00) 15*10 cm MIF MIF gnuplot 1 MIF MIF MIF MIF "Times" MIF 3.00

190 gnuplot 4.4 83 set terminal mif {color colour monochrome} {polyline vectors} {help?} colour (line type) >= 0 (MIF separation 2 7) monochrome (MIF separation 0) polyline vectors help? help set term mif colour polylines set term mif set term mif vectors set term mif help # # 83.46 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

83 gnuplot 4.4 191 LaTeX inputenc(latin1), fontenc(t1), mathptmx, helvet(scaled=09.2), courier, latexsym, textcomp psnfss-version7 postscript LaTeX (latex ) LaTeX inputenc(latin1), fontenc(t1), times, mathptmx, helvet, courier nopsnfss ( cmr10) prologues metapost prologues:=< > 2 metapost eps postscript ghostscript metapost TeX (La)TeX noprologues prologue a4paper [a4paper] documentclass letter ( ) LaTeX latex amstex latex LaTeX amsfonts, amsmath(intlimits) set label set title TeX (TFM ) notex "cmr10" "pcrr8r" (Courier) notex Metapost TFM pcrr8r.tfm LaTeX psnfss Courier notex 32-126 ASCII cmtt10 32 ( ) 5.0 99.99 10.0 magstep 1.2 0.5 10 2 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

192 gnuplot 4.4 83 83.46.1 Metapost Instructions - terminal Metapost set terminal mp mono "cmtt12" 12 - set output "figure.mp" - plot ( multiplot ) Metapost beginfig...endfig 5x3 set size 0.5,0.5 - gnuplot - gnuplot Metapost EPS mpost figure.mp OR mp figure.mp Metapost Unix mpost mp Metapost 1 EPS - LaTeX graphics plaintex epsf.tex \usepackage{graphics} % LaTeX \input epsf.tex % plaintex TeX DVI PS dvips DVI LaTeX \DeclareGraphicsRule{*}{eps}{*}{} figure.0, 2 figure.1 3 \includegraphics{figure.2} % LaTeX \epsfbox{figure.2} % plaintex mp postscript Metapost lt[] col[] / / dashedlines colorlines tex vebatimtex...etex LaTeX LaTeX Metapost plaintex LaTeX MP 83.47 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

83 gnuplot 4.4 193 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 83.48 Openstep (next) openstep (next) set terminal openstep {<mode>} {<type> } {<color>} {<dashed>} {"<fontname>"} {<fontsize>} title {"<newtitle>"} <mode> default <type> new old old <color> color ( ) monochrome ( ) <dashed> solid ( ) dashed ( ) "<fontname>" PostScript <fontsize> PostScript <title> GnuTerm new, monochrome, dashed, "Helvetica", 14pt set term openstep default set term openstep 22 set term openstep color "Times-Roman" 14 set term openstep color "Helvetica" 12 title "MyPlot" set term openstep old set linestyle 83.49 Pbm set terminal pbm {<fontsize>} {<mode>} {size <x>,<y>} <fontsize> small medium large <mode> monochrome gray color 640 480 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 http://netpbm.sourceforge.net/ set terminal pbm small monochrome # set terminal pbm color medium size 800,600 set output pnmrotate 45 pnmtopng > tilted.png # NETPBM

194 gnuplot 4.4 83 83.50 Pdf Adobe PDF (Portable Document Format) Acrobat Reader set terminal pdf {monochrome color colour} {{no}enhanced} {fname "<font>"} {fsize <fontsize>} {font "<fontname>{,<fontsize>}"} {linewidth <lw>} {rounded butt} {solid dashed} {dl <dashlength>}} {size <XX>{unit},<YY>{unit}} monochrome dashed <font> ( Helvetica) <fontsize> ( 12) pdflib enhanced ( ) enhanced (p. 22) linewidth <n> dashlength rounded butt PDF 5inch x 3inch size X, Y ( cm ) 83.51 Pdfcairo pdfcairo PDF 2D cairo pango set term pdfcairo {{no}enhanced} {mono color} {solid dashed} {font <font>} {linewidth <lw>} {rounded butt} {dashlength <dl>} {size <XX>{unit},<YY>{unit}} (enhanced text mode) ( ) gnuplot enhanced (p. 22) linewidth <lw> 0.25 (1 "PostScript" = 1/72 = 0.353 mm) rounded butt PDF 5inch x 3inch size X, Y ( cm ) size 0.0 1.0 <font> "FontFace,FontSize" FontFace Arial pdfcairo Sans FontSize pdfcairo 6

83 gnuplot 4.4 195 : 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. 104) pango unicode Symbol pdfcairo unicode http://www.unicode.org/ "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 ) 83.52 Pm pm OS/2 multiplot set terminal pm {server {n}} {persist} {widelines} {enhanced} {"title"} persist gnuplot server gnuplot widelines enhanced ( enhanced text (p. 22)) PostScript 1 (T/H/C/S Times/Helvetica/Courier/Symbol ) title set linestyle

196 gnuplot 4.4 83 83.53 Png set terminal png {{no}transparent} {{no}interlace} {{no}truecolor} {rounded butt} {linewidth <lw>} {dashlength <dl>} {tiny small medium large giant} {font "<face> {,<pointsize>}"} {{no}enhanced} {size <x>,<y>} {{no}crop} {<background_color>} PNG, JPEG, GIF libgd PNG ImageMagick display set term png set output display png:- display <space> display save transparent (transparent) notransparent interlace GIF nointerlace linewidth dashlength PNG 256 truecolor 24 / TrueColor (transparent fill) truecolor fillstyle (p. 139) TrueColor butt 1 rounded ( ) set term png font arial 11 set term png font "arial,11" fonts <x,y> 640x480 canvas (p. 18), set size (p. 136) crop nocrop xrrggbb x x rrggbb 16 x00ff00 83.53.1 set terminal png medium size 640,480 xffffff medium (xffffff) set terminal png font arial 14 size 800,600 arial 14pt fonts (p. 31)

83 gnuplot 4.4 197 set terminal png transparent truecolor enhanced 24 / enhanced text 83.54 Pngcairo pngcairo PNG 2D cairo pango set term pngcairo {{no}enhanced} {mono color} {solid dashed} {{no}transparent} {{no}crop} {font <font>} {linewidth <lw>} {rounded butt} {dashlength <dl>} {size <XX>{unit},<YY>{unit}} (enhanced text mode) ( ) gnuplot enhanced (p. 22) linewidth <lw> 0.25 (1 "PostScript" = 1/72 = 0.353 mm) rounded butt PDF 640 x 480 size X, Y ( cm ) cm 72 dpi ( ) size 0.0 1.0 <font> "FontFace,FontSize" FontFace Arial pngcairo Sans FontSize pngcairo 6 : 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. 104) pango unicode Symbol pngcairo unicode http://www.unicode.org/ "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"

198 gnuplot 4.4 83 2 gnuplot ( plot x ) 83.55 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} {solid dashed} {dashlength dl <DL>} {linewidth lw <LW>} {rounded butt} {clip noclip} {palfuncparam <samples>{,<maxdeviation>}} {size <XX>{unit},<YY>{unit}} {blacktext colortext colourtext} {{font} "fontname{,fontsize}" {<fontsize>}} "Can t find PostScript prologue file... " postscript prologue (p. 201) landscape portrait eps EPS (Encapsulated PostScript) PostScript ( PostScript ) EPS eps 1 1 eps enhanced ( ) enhanced (p. 22) 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>

83 gnuplot 4.4 199 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 0.0 1.0 set size BoundingBox fontfile fontfile add postscript Type 1, TrueType gnuplot postscript postscript fontfile (p. 200) 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. 200)

200 gnuplot 4.4 83 83.55.1 Editing postscript PostScript gnuplot PostScript PostScript "/Color true def" (set terminal postscript color ) (weight) PostScript gnuplot PostScript gnuplot docs/ps "ps file.doc" 83.55.2 Postscript fontfile fontfile fontfile add 1 postscript ( ) fontfile delete 1 postscript ASCII Type 1 ( ".pfa") Type 1 ( ".pfb") TrueType ( ".ttf") pfa pfb ttf gnuplot ( ) fontfile set fontpath GNUPLOT FONTPATH set fontpath (p. 105) ( ) 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

83 gnuplot 4.4 201 ftp ftp://ftp.dante.de/tex-archive/fonts/utilities/ps2mf/ "pfbtopfa" "pfb2ps" "pfbtops" pfa "pfbtopfa" TrueType "ttf2pt1" Type 1 pfa http://ttf2pt1.sourceforge.net/ gnuplot GNU- PLOT TTFTOPFA ttf2pt1 "ttf2pt1 -a -e -W 0 %s - " %s ( OS ) "<" pfa pfa set fontfile "< cat garamond.pfa" Type 1 LaTeX postscript pfb "european computer modern" ("computer modern" ) CTAN ftp://ftp.dante.de/tex-archive/fonts/ps-type1/cm-super/ "sfrm1000.pfb" 10 ( "SFRM1000") computer modern ftp://ftp.dante.de/tex-archive/fonts/cm/ps-type1/bluesky TeX computer modern ( cmr10.pfb sfrm1000.pfb ) TeX gnuplot /docs/psdoc "ps fontfile doc.tex" TeX "CMEX10" ( "cmex10.pfb") gnuplot "CMEX10- Baseline" (CMEX10 ) 83.55.3 Postscript prologue PostScript %%Prolog gnuplot PostScript prologue gnuplot GNUPLOT PS DIR gnuplot set loadpath set loadpath (p. 117) 83.55.4 Postscript adobeglyphnames UTF-8 PostScript 0x00FF Unicode ( Latin1 ) unicode unicode Adobe ( ) gnuplot Adobe /alpha noadobeglyphnames gnuplot /uni03b1 Adobe

202 gnuplot 4.4 83 fontfile (p. 200) 83.56 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} {solid dashed} {dashlength dl <DL>} {linewidth lw <LW>} {rounded butt} {clip noclip} {palfuncparam <samples>{,<maxdeviation>}} {size <XX>{unit},<YY>{unit}} {<font_size>} "Can t find PostScript prologue file... " postscript prologue (p. 201) 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

83 gnuplot 4.4 203 PostScript 10 x 7 EPS 5 x 3.5 size X Y ( cm ) BoundingBox (PostScript ) size 0.0 1.0 set size BoundingBox rotate y <font size> ( ) auxfile PostScript LaTeX dvips PostScript set output TeX.tex ( ).ps TeX.ps.ps \special{psfile=...}.tex multiplot version 4.2 gnuplot ps(la)tex 5 x 3 5 x 3.5 postscript eps epslatex 50% 60% oldstyle pslatex (a) { } LaTeX (b) [ (t,b,l,r 2 ) ]{ } LaTeX LR-box \rule{}{} Postscript terminal set term pslatex monochrome dashed rotate PostScript "foo.ps" set term pslatex auxfile set output "foo.tex"; plot...; set output # gnuplot ( ): set title \LaTeX\ -- $ \gamma $ set label {\LaTeX\ -- $ \gamma $} at 0,0 ( ): set xlabel [t]{\latex\ -- $ \gamma $} set ylabel [r]{\latex\ -- $ \gamma $\rule{7mm}{0pt}} set style line 83.57 Pstricks pstricks LaTeX "pstricks.sty" eepic latex "pstricks.sty" PostScript Ghostscript PSTricks anonymous ftp Princeton.EDU /pub PSTricks

204 gnuplot 4.4 83 set terminal pstricks {hacktext nohacktext} {unit nounit} 2 hacktext nounit 83.58 Qms qms QMS/QUIC Talaris 1200 83.59 Regis regis REGIS 4 ( ) 16 set terminal regis {4 16} 83.60 Rgip rgip uniplex RGIP 1 set terminal rgip uniplex {portrait landscape} {[<horiz>,<vert>]} {<fontsize>} 1 8 1 (layout) (landscape) horizxvert [1,1] set terminal uniplex portrait [2,3] 1 6 2 3 (portrait) 83.61 Sun sun SunView 83.62 Svg W3C SVG (Scalable Vector Graphics) set terminal svg {size <x>,<y> { fixed dynamic}} {{no}enhanced} {fname "<font>"} {fsize <fontsize>} {font "<fontname>{,<fontsize>}"} {fontfile <filename>} {rounded butt} {solid dashed} {linewidth <lw>} <x> <y> SVG dynamic svg fixed ( ) linewidth <w> <w>

83 gnuplot 4.4 205 <font> ( Arial) <fontsize> ( 12) svg svg (enhanced) enhanced (p. 22) SVG SVG fontfile SVG <defs> gnuplot GNUPLOT FONTPATH TrueType PostScript svg 83.63 Svga svga SVGA PC DJGPP set terminal svga {"<fontname>"} 83.64 Tek40 VT- tek40xx Tektronix 4010 TEK vttek VT- tek40xx gnuplot kc-tek40xx MS-DOS Kermit Tek4010 km-tek40xx selanar Selanar bitgraph BBN Bitgraph 83.65 Tek410x tek410x Tektronix 410x, 420x 83.66 Texdraw texdraw LaTeX texdraw texdraw "texdraw.sty" "texdraw.tex" (point) LaTeX "\Diamond", "\Box" LaTeX2e latexsym LaTeX 83.67 Tgif Tgif X11 GIF tgif (set pointsize ) ( set label "Hallo" at x,y font "Helvetica,34") 1

206 gnuplot 4.4 83 set terminal tgif {portrait landscape default} {<[x,y]>} {monochrome color} {{linewidth lw} <LW>} {solid dashed} {font "<fontname>"} {<fontsize>} <[x,y]> x y color linewidth <LW> "<fontname>" PostScript <fontsize> PostScript defaults portrait, [1,1], color, linewidth 1.0, dashed, "Helvetica", 18 solid dashed (multiplot) 2 gnuplot set terminal tgif set output "file.obj" set multiplot set origin x01,y01 set size xs,ys plot...... set origin x02,y02 plot... unset multiplot set multiplot (p. 120) [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 # 83.68 Tikz TeX TikZ lua script set term tikz set term lua tikz term lua (p. 186) set term tikz help

83 gnuplot 4.4 207 83.69 Tkcanvas Tcl/Tk ( ) Perl Tk canvas widget "term.h" gnuplot make gnuplot> set term tkcanvas {perltk} {interactive} gnuplot> set output plot.file "wish" Tcl/Tk % source plot.file % canvas.c % pack.c % gnuplot.c Perl/Tk use Tk; my $top = MainWindow->new; my $c = $top->canvas->pack; my $gnuplot = do "plot.pl"; $gnuplot->($c); MainLoop; gnuplot "gnuplot" canvas canvas canvas 2 (plot) 2 "gnuplot plotarea" "xleft, xright, ytop, ybot" canvas 2 "x1min, x1max, y1min, y1max, x2min, x2max, y2min, y2max" "gnuplot axisranges" "interactive" canvas "user gnuplot coordinates" "win id x1s y1s x2s y2sx1e y1e x2e y2e x1m y1m x2m y2m" canvas id 2 tkcanvas multiplot replot 83.70 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 ( ):

208 gnuplot 4.4 83 set title \LaTeX\ -- $ \gamma $ set label {\LaTeX\ -- $ \gamma $} at 0,0 ( ): set xlabel [t]{\latex\ -- $ \gamma $} set ylabel [r]{\latex\ -- $ \gamma $\rule{7mm}{0pt}} 83.71 Unixpc unixpc AT&T 3b1 AT&T 7300 Unix PC 83.72 Unixplot unixplot Unix "plot" GNU plot gnugraph (terminal) 83.73 Vgagl vgagl pm3d linux SVGALIB DEFAULT MODE 256 set terminal vgagl \ background [red] [[green] [blue]] \ [uniform interpolate] \ [mode] mode G1024x768x256 background [0, 255] 1 3 1 3 interpolate uniform ( ON) libvga ( /etc/vga/libvga.conf) VESA fb vgagl * * vga - vgagl set term vgagl G1024x768x256 G1024x768x256 - SVGALIB_DEFAULT_MODE - G1024x768x256 - G800x600x256 - G640x480x256 - G320x200x256 - G1280x1024x256 - G1152x864x256 - G1360x768x256 - G1600x1200x256

83 gnuplot 4.4 209 83.74 VWS VWS VAX ( ) 83.75 Vx384 vx384 Vectrix 384 Tandy 83.76 Windows windows 3 set terminal windows {color monochrome} {enhanced noenhanced} {{font} "fontname{,fontsize}" {<fontsize>}} {title "Plot Window Title"} {size <width>,<height>} {position <x>,<y>} {close} color, monochrome enhanced (enhanced text mode) ( ) enhanced (p. 22) "<fontname>" Windows <fontsize> size position WGNUPLOT.INI ( ) Windows - -persist (x11 gnuplot ; Windows /noend -noend ) gnuplot OS gnuplot -persist gnuplot gnuplot set term windows close 83.76.1 Graph-menu gnuplot graph Options Bring to Top Color Copy to Clipboard EMF Save as EMF... EMF Background... Choose Font... Line Styles... Print... Windows Print gnuplot

210 gnuplot 4.4 83 Update wgnuplot.ini WGNUPLOT.INI 83.76.2 Printing 1. gnuplot set terminal set output 2. gnuplot graph Print... screendump 3. set output "PRN" gnuplot set output ( ) OK ( ) 83.76.3 Text-menu gnuplot text Options Copy to Clipboard Paste Choose Font... System Colors Update wgnuplot.ini WGNUPLOT.INI MENU BAR WGNUPLOT.MNU WGNUPLOT.EXE WGNUPLOT.MNU [Menu] [EndMenu] [ ] [ ] [Button] 2 ( ) 2 [INPUT] [EOS] {ENTER} [EOS] (End Of String) [OPEN] [EOS] [EOS] {ENTER} [SAVE] ([OPEN] ) {ENTER} \r {TAB} \011 {ESC} \033

83 gnuplot 4.4 211 {^A} \001... {^ } \031 256 83.76.4 Wgnuplot.ini Windows gnuplot %APPDATA% WGNUPLOT.INI [WGNUPLOT] WGNUPLOT.INI [WGNUPLOT] TextOrigin=0 0 TextSize=640 150 TextFont=Terminal,9 GraphOrigin=0 150 GraphSize=640 330 GraphFont=Arial,10 GraphColor=1 GraphToTop=1 GraphBackground=255 255 255 Border=0 0 0 0 0 Axis=192 192 192 2 2 Line1=0 0 255 0 0 Line2=0 255 0 0 1 Line3=255 0 0 0 2 Line4=255 0 255 0 3 Line5=0 0 128 0 4 GraphFont Border, Axis, Line (0 255) 5 (linestyle) 0= 1= 2= 3= 4= WGNUPLOT.INI Line 2 1 Line1 points 1 83.77 Wxt wxt wxwidgets ( wxt ) 2D cairo / pango set term wxt {<n>} {size <width>,<height>} {{no}enhanced} {font <font>} {title "title"} {dashed solid} {dashlength <dl>} {{no}persist} {{no}raise} {{no}ctrl} {close} set terminal wxt <n> n

212 gnuplot 4.4 83 "title" gnuplot q close set term wxt <n> close 640x384 wxt replot replot plot (set term wxt <n> ) mouse (p. 119) (enhanced text mode) ( ) gnuplot enhanced (p. 22) <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. 104) pango unicode Symbol wxt unicode http://www.unicode.org/ 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 )

83 gnuplot 4.4 213 1 1 (1 ) ( ) "raise" "persist" gnuplot <space> gnuplot q "ctrl" <ctrl>+<space> <ctrl>+ q 3 (raise, persist, ctrl) 83.78 X11 gnuplot X x11 DISPLAY TERM xterm -display 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. 22)) 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

214 gnuplot 4.4 83 -persisit persist raise (persist == no raise == yes) -persist / -raise X [no]persist [no]raise X raise (p. 86) 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 ) 83.78.1 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- *-*-*-*-*-iso8859-1 <size>, <slant>, <weight> <slant> <weight> X11 gnuplot*encoding: iso8859-15 x11 PostScript X11 TrueType set label

83 gnuplot 4.4 215 gnuplot configure enable-x11-mbfonts "mbfont:" locale LC CTYPE ( ja JP.eucJP, ko KR.EUC, zh CN.EUC ) set term x11 font mbfont:kana14;k14 # kana14 k14 X11 font ; # set term x11 font mbfont:fixed,16,r,medium # <font>,<size>,<slant>,<weight> set title (mb strings) font mbfont:*-fixed-medium-r-normal--14-* X gnuplot*font: \ mbfont:-misc-fixed-medium-r-normal--14-*-*-*-c-*-jisx0208.1983-0 gnuplot enable-x11-mbfonts "mbfont:" 2 PostScript Ryumin-Light-*, GothicBBB-Medium-* ( PS ) 83.78.2 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>

216 gnuplot 4.4 83 83.78.3 Monochrome options gnuplot (foreground) (background) -rv gnuplot*reversevideo: on 83.78.4 Color resources x11 ( ) (greyscale) X11 rgb.txt 16 (X11 ) (0 1 ) blue, 0.5 gnuplot*background: white gnuplot*textcolor: black gnuplot*bordercolor: black gnuplot*axiscolor: black gnuplot*line1color: red gnuplot*line2color: green gnuplot*line3color: blue gnuplot*line4color: magenta gnuplot*line5color: cyan gnuplot*line6color: sienna gnuplot*line7color: orange gnuplot*line8color: coral (bacground) X11 toolkit "-bg" "-xrm" gnuplot -background coral 1 gnuplot -xrm gnuplot*line1color:blue 83.78.5 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

83 gnuplot 4.4 217 83.78.6 Line resources gnuplot ( ) ( ) 0 1 1 2 3 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 0 2 10 jk (j k 1 9 ) j k 16 1 6 4 10 4441 4 4 4 1 (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 83.78.7 X11 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 x11 1 1

218 gnuplot 4.4 ( ) visual gnuplot visual visual 8bit PseudoColor 24bit TrueColor X xdpyinfo visual StaticGray, GrayScale, StaticColor, PseudoColor, TrueColor, DirectColor X visual gnuplot ( ) visual visual visual visual 8bit PseudoColor visual gnuplot*maxcolors: 240 gnuplot*mincolors: 240 private gnuplot*maxcolors: gnuplot*mincolors: gnuplot*visual: visual 83.78.8 X11 other resources X X11 gnuplot*exportselection off false gnuplot.fastrotate off gnuplot*exportselection: off gnuplot*fastrotate: on gnuplot*ctrlq: off 83.79 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 (Graphical User Interfaces) gnuplot win32 Bruce Ravel (ravel@phys.washington.edu) Gershon Elber gnuplot.el GNU emacs, XEmacs gnuplot-mode gnuplot CVS http://feff.phys.washington.edu/~ ravel/software/gnuplot-mode/ Python, Tk/Tcl, http://gnuplot.sourceforge.net/links.html

85 (EXTERNAL LIBRARIES) gnuplot 4.4 219 Part VI (Bugs) SourceForge e-mail gnuplot-bugs SourceForge gnuplot gnuplot seekingassistance (p. 17) gnuplot 4.4 gnuplot 84 Gnuplot (limitations) ( ( ) 0 ) (gnuplot ) gnuplot ( ) erf x11 1 multiplot x11 " " 24 1 (errorbars) / nohidden3d set hidden3d (parametric) 85 (External libraries) GD (PNG/JPEG/GIF ): 2.0.33 libgd Adobe Symbol PDFlib (PDF ): gnuplot libpdf 4, 5, 6 PDF gnuplot PDFlib svgalib (linux, vgadl ): gnuplot root setuid (!) X11 ( ): gnuplot C setlocale() ( 3 )

220 gnuplot 4.4 Part VII Index

Index.gnuplot, 38 3D, 54 abs, 26 acos, 26 acosh, 26 acsplines, 75 adobeglyphnames, 201 aed512, 163 aed767, 163 aifm, 164 all, 86 amiga, 164 angles, 89, 135 apollo, 164 Aqua, 164 aqua, 164 arg, 26 arrow, 90, 138 arrowstyle, 52, 137 ascii, 161 asin, 26 asinh, 26 atan, 26 atan2, 26 atanh, 26 automated, 49 autoscale, 67, 82, 92 avs, 70 axes, 21, 33, 37, 66 backquotes, 39 bars, 44 46, 52, 53, 80, 81, 93 batch/interactive, 17, 20, 56, 64, 89 BE, 165 be, 165 besj0, 26 besj1, 26 bessel, 219 besy0, 26 besy1, 26 bezier, 75 binary, 68, 70, 71, 102, 161 binary examples, 72 bind, 35, 88, 94, 120 bitwise operators, 28 bmargin, 94 border, 94, 109, 144 boxerrorbars, 42, 95 boxes, 43, 44, 95 boxwidth, 45, 95 boxxyerrorbars, 44 branch, 61 bugs, 219 call, 54, 64 candlesticks, 44, 46 canvas, 18, 180, 185, 196 cbdata, 156 cbdtics, 156 cblabel, 157 cbmtics, 157 cbrange, 33, 34, 127, 129, 141, 157 cbtics, 157 cd, 54 ceil, 26 center, 49 cgi, 168 cgm, 168 circle, 19, 45, 124 circles, 19, 45 clabel, 96, 98, 99, 113 clear, 55 clip, 52, 96 cntrparam, 38, 96, 99, 162 color resources, 216 colorbox, 34, 98, 127 129, 157 colornames, 33, 34, 99, 141 colors, 33, 34, 85, 131, 132, 141 colorspec, 34, 115, 123, 141, 142, 146 column, 27 columnhead, 27 columnheader, 22, 83, 112 command line editing, 20 command line options, 215 command-line-editing, 87 command-line-options, 37 commands, 54 comments, 16, 21, 64 commentschars, 21, 101 compatibility, 19 contour, 38, 54, 96, 98, 99, 110, 142, 162 coordinates, 21, 90, 91, 114, 115, 123 125, 138, 144, 146, 149, 152 copyright, 15 corel, 171 cos, 26 cosh, 26 csplines, 75 cumulative, 19, 75 data, 51, 66, 99 data file, 66 datafile, 38, 56, 66, 92, 99, 110, 161 datastrings, 22, 51, 83 date specifiers, 107 debug, 171 decimalsign, 18, 102, 105, 106, 117 defined, 27 221

222 gnuplot 4.4 INDEX degrees, 89 depthorder, 54, 128, 130 dgrid3d, 19, 103, 136, 142, 162 division, 24 dospc, 171 dots, 45 dpu414, 177 dumb, 171 dummy, 92, 104 dx, 49, 71 dxf, 172 dxy800a, 172 dy, 49, 71 edf, 70 editing, 20 editing postscript, 200 eepic, 172 egalib, 182 egamono, 182 ehf, 70 ellipse, 19, 124 elliptic integrals, 27 emf, 173 emtex, 185 emxvesa, 173 emxvga, 173 encoding, 18, 23, 104, 117, 183, 195, 197, 212 encodings, 104 enhanced, 22, 165, 194, 197, 198, 205, 209, 212, 213 environment, 23 eps, 32 epslatex, 174 epson 180dpi, 177 epson 60dpi, 177 epson lx800, 177 equal, 137 erf, 26 erfc, 26 error estimates, 58, 59 error state, 30, 88 errorbars, 67, 80 errorlines, 67, 80 errors, 30 evaluate, 55 every, 73 example, 73 examples, 78 excl, 177 exists, 27, 39 exit, 56 exp, 26 exponentiation, 28 expressions, 24, 86, 108 factorial, 28 failsafe, 50 fig, 177 file, 66 fill, 43 45, 47 filledcurves, 45 fillstyle, 18, 44, 45, 84, 123, 139, 142, 196 financebars, 44, 46 fit, 24, 30, 56, 58, 78, 163 fit parameters, 58 fitting, 58 flipx, 49 floating point exceptions, 100, 219 floor, 26 fontfile, 32, 199, 200, 202 fontpath, 105, 200 fonts, 31, 32, 180, 196, 214 format, 106, 142, 145, 148, 150, 152 format specifiers, 106 fortran, 100 fpe trap, 100 frequency, 75 fsteps, 46 function, 108 functions, 25, 31 gamma, 26, 219 gamma correction, 134 gd, 31 general, 68, 133, 159, 160 ggi, 179 gif, 31, 179 glossary, 32, 73 gnugraph, 181 gpbin, 159 gpic, 181 gpr, 182 gprintf, 39, 106, 115 graph menu, 209 grass, 182 grayscale resources, 216 grid, 109 grid data, 99, 103, 159, 161 gui s, 218 guidelines, 60 hcgi, 168 heatmap, 49 help, 63 help desk, 17 hercules, 182 hidden3d, 54, 109, 111 histeps, 46 histograms, 47 history, 63 historysize, 111 hotkey, 35 hotkeys, 35 hp2623a, 182

INDEX gnuplot 4.4 223 hp2648, 182 hp500c, 182 hpdj, 183 hpgl, 183 hpljii, 183 hppj, 184 ibeta, 26 if, 37, 63, 88 igamma, 26 imag, 26 image, 49, 52 imagen, 184 impulses, 50 increment, 141 index, 35, 67, 74 int, 26 internationalization, 219 interval, 140 introduction, 16 inverf, 26 invnorm, 26 isosamples, 38, 110, 111, 136, 161, 162 iteration, 48, 49, 64, 82, 89, 163 jpeg, 31, 184 kdensity, 19, 75 key, 83, 111 kyo, 185 label, 50, 114, 120 labels, 22, 50, 68, 116, 120 lambertw, 26 latex, 185 lc, 34 least squares, 56 legend, 111 lgamma, 26 libgd, 219 license, 15 line, 34, 91, 98, 138 line editing, 20 line resources, 217 linecolor, 34 lines, 51 linespoints, 51, 140 linestyle, 34, 51, 140 linetype, 33, 51, 85 linewidth, 51, 140 linux, 186 lmargin, 116 load, 64 loadpath, 117, 201 locale, 18, 102, 105, 117, 219 log, 26, 95 log10, 26 logscale, 117 lower, 65 lp, 51 lua, 186, 206 macintosh, 188 macros, 31, 39, 56 map, 54, 128 mapping, 118, 135 margin, 94, 116, 118, 121, 136, 146 Marquardt, 56 matrix, 68, 72, 161 metafont, 188 metapost, 190 mf, 188 mgr, 189 mif, 189 missing, 100 mixing macros backquotes, 40 modulo, 28 monochrome options, 216 mouse, 35, 37, 119, 212 mousing, 119 mp, 190 multi branch, 61 multi-branch, 57, 61 multiplot, 55, 120, 206 mx2tics, 121 mxtics, 121, 122, 144 my2tics, 122 mytics, 122 mztics, 122 NaN, 24, 31, 78 nec cp6, 177 negation, 28 negative, 131 new features, 18 newhistogram, 48 NeXT, 192 next, 192 noarrow, 90 noautoscale, 92 noborder, 94 nocbdtics, 156 nocbmtics, 157 nocbtics, 157 noclip, 96 nocontour, 99 nodgrid3d, 103 nofpe trap, 100 nogrid, 109 nohidden3d, 109, 219 nohistorysize, 111 nokey, 111 nolabel, 114 nologscale, 117 nomouse, 119

224 gnuplot 4.4 INDEX nomultiplot, 120 nomx2tics, 121 nomxtics, 122 nomy2tics, 122 nomytics, 122 nomztics, 122 nooffsets, 124 noparametric, 126 nopolar, 135 norm, 26 nosurface, 142 notimestamp, 144 nox2dtics, 147 nox2mtics, 148 nox2tics, 148 nox2zeroaxis, 148 noxdtics, 148 noxmtics, 150 noxtics, 151 noxzeroaxis, 154 noy2dtics, 154 noy2mtics, 154 noy2tics, 155 noy2zeroaxis, 155 noydtics, 155 noymtics, 155 noytics, 155 noyzeroaxis, 155 nozdtics, 155 nozmtics, 157 noztics, 157 nozzeroaxis, 156 object, 123 offsets, 124 okidata, 177 one s complement, 28 OpenStep, 193 Openstep, 193 openstep, 193 operator precedence, 28 operators, 28 options, 17 origin, 55, 121, 125 output, 125 palette, 33, 85, 98, 115, 127, 129 131, 141, 146, 157 parametric, 92, 126 pause, 65 pbm, 193 pcl5, 183 pdf, 31, 194, 219 pdfcairo, 194 pi, 31 placement, 112 plot, 66, 87, 158 plotting, 37 pm, 195 pm3d, 54, 91, 98, 126, 129, 138, 141 pm3d resources, 217 png, 31, 143, 196 pngcairo, 197 pointinterval, 51, 140 pointintervalbox, 134 points, 51 pointsize, 84, 135 polar, 37, 135 polygon, 19, 124 pop, 142 positive, 131 postscript, 32, 143, 198, 199 practical guidelines, 60 prescribe, 185 print, 86 printing, 210 prologue, 24, 174, 198, 201, 202 pseudocolumns, 35, 74, 78, 79 pslatex, 175, 202 pstex, 202 pstricks, 203 punctuation, 40 push, 142 pwd, 86 qms, 204 quit, 86 quotes, 41 raise, 86, 214 rand, 26 random, 27 range frame, 153 rangelimited, 153 ranges, 56, 81 real, 26 rectangle, 123, 139 refresh, 18, 67, 77, 87 regis, 204 replot, 77, 87 reread, 64, 87 reset, 88, 89 restore, 150 rgbalpha, 18, 49 rgbcolor, 34, 35 rgbformulae, 131 rgbimage, 49 rgip, 204 rmargin, 136 rotate, 49 rrange, 136 samples, 74, 110, 111, 136, 142 save, 88 sbezier, 75 seeking assistance, 17

INDEX gnuplot 4.4 225 seeking-assistance, 219 separator, 78, 101 set, 89 sgn, 26 shell, 157, 162 show, 89 sin, 26 sinh, 26 size, 55, 121, 126, 136, 180, 185, 196 skip, 72 smooth, 19, 74 space, 36 special filenames, 76 special-filenames, 39 specifiers, 106 specify, 40 splot, 38, 66, 109, 158 sprintf, 27, 39, 115 sqrt, 26 ssvgalib, 182 starc, 177 start, 38 starting values, 62 startup, 23, 38 statistical overview, 59 steps, 51 strcol, 27 strftime, 27 string operators, 28 stringcolumn, 27 strings, 38, 115 strlen, 27 strptime, 27 strstrt, 27 style, 78, 80, 81, 84, 115 styles, 84, 137, 139, 140 substitution, 39, 41, 118 substr, 27 substring, 27, 39 sun, 204 surface, 54, 99, 142, 162 svg, 204 svga, 205 svgalib, 182, 219 syntax, 16, 40, 106, 113, 146, 149 system, 27, 162 table, 142 tan, 26 tandy 60dpi, 177 tanh, 26 tc, 34 tek40, 205 tek410x, 205 term, 89, 163 terminal, 163 terminals, 143 termoption, 143 ternary, 29 test, 34, 162 texdraw, 205 text, 41, 115, 195 text menu, 210 textcolor, 34 tgif, 205 thru, 77 tics, 143 ticscale, 144 ticslevel, 144 tikz, 206 time specifiers, 42, 107 time/date, 41, 145, 148 timecolumn, 27 timefmt, 22, 82, 107, 115, 144, 145, 148, 219 timestamp, 144 tips, 62 title, 22, 112, 145 tkcanvas, 207 tm hour, 27 tm mday, 27 tm min, 27 tm mon, 27 tm sec, 27 tm wday, 27 tm yday, 27 tm year, 27 tmargin, 146 tpic, 207 trange, 146 transparency, 50 transparent, 139 unary, 28 undefine, 162 uniplex, 204 unique, 75 unixpc, 208 unixplot, 208 unset, 163 update, 57, 163 urange, 146 user defined, 30 user-defined, 66 using, 22, 30, 42, 57, 77, 80, 81, 127 UTF 8, 104, 201 valid, 27 value, 28, 31 variable, 43, 44, 50, 51, 74, 128 variables, 28, 30, 31, 35, 37, 58, 65 vectors, 52 vgagl, 208 vgal, 173 vgalib, 182

226 gnuplot 4.4 INDEX vgamono, 182 view, 147, 154, 158 volatile, 18, 66 vrange, 147 vttek, 205 VWS, 209 vx384, 209 wgnuplot.ini, 211 windows, 209 with, 80, 81, 84, 112, 135, 137, 178 word, 27 words, 27 writeback, 150 wxt, 31, 211 yrange, 155 ytics, 155 yzeroaxis, 155 zdata, 155 zdtics, 155 zero, 156 zeroaxis, 148, 154 156 zlabel, 157 zmtics, 157 zrange, 157 ztics, 157 zzeroaxis, 156 X resources, 214 218 X11, 213 x11, 17, 213 x11 fonts, 214 x11 mouse, 120 x2data, 147 x2dtics, 147 x2label, 147 x2mtics, 148 x2range, 148 x2tics, 148 x2zeroaxis, 148 xdata, 21, 115, 145, 147, 148, 154 156 xdtics, 147, 148, 154 156 xerrorbars, 52 xerrorlines, 53 xfig, 177 xlabel, 147, 149, 154, 155, 157 xlib, 218 xmtics, 148, 150, 154, 155, 157 xrange, 92, 135, 136, 146 148, 150, 155, 157 xterm, 205 xticlabels, 22, 79, 80 xtics, 94, 106, 109, 122, 144, 148, 151, 155, 157 xyerrorbars, 52 xyerrorlines, 53 xyplane, 21, 144, 147, 154, 156, 158 xzeroaxis, 154 y2data, 154 y2dtics, 154 y2label, 154 y2mtics, 154 y2range, 155 y2tics, 155 y2zeroaxis, 155 ydata, 155 ydtics, 155 yerrorbars, 53 yerrorlines, 53 ylabel, 155 ymtics, 155