Transcription of gnuplot 5
1 gnuplot Interactive Plotting ProgramThomas Williams & Colin by: Ethan A Merritt and many othersMajor contributors (alphabetic order):Christoph Bersch, Hans-Bernhard Br oker,John Campbell, Robert Cunningham,David Denholm, Gershon Elber,Roger Fearick, Carsten Grammes,Lucas Hart, Lars Hecking, P eter Juh asz,Thomas Koenig, David Kotz,Ed Kubaitis, Russell Lang, Timoth ee Lecomte,Alexander Lehmann, J er ome Lodewyck,Alexander Mai, Bastian M arkisch,Ethan A Merritt, Petr Mikul k,Daniel Sebald, Carsten Steger, Shigeharu Takeno,Tom Tkacik, Jos Van der Woude,James R. Van Zandt, Alex Woo, Johannes ZellnerCopyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin KelleyCopyright 2004 - 2021 various authorsMailing list for site and issue trackers: manual was originally prepared by Dick (December 2021)2gnuplot Gnuplot21 Copyright21 Introduction21 Seeking-assistance22 New features23 Features introduced in version ..23 Support for 64-bit integer arithmetic ..23 Voxel grids.
2 23 New plot styles and style options ..23 New data pre-processing filters ..24 New commands and command options ..24 New terminals and terminal options ..25 Pixmaps as objects ..25 Week-date time formats ..25 Other new features ..25 Changes ..26 Features introduced in version ..26 New plot styles and style options ..26 New data pre-processing filters ..26 Polar mode improvements and extensions ..26 Nonlinear coordinates systems ..27 New commands and command options ..27 New data type"array"..27 New terminals and terminal options ..27 Other new features ..28 Features introduced in version ..28 Differences between versions 4 and 529 Deprecated syntax29 Demos and Online Examples30 Batch/Interactive Operation31 Command line options ..31 Examples ..31 CONTENTS gnuplot size32 Command-line-editing32 Comments33 Coordinates33 Datastrings33 Enhanced text mode34 Escape sequences ..35 Environment35 Expressions36 Complex arithmetic ..37 Constants ..37 Functions.
3 37 Elliptic integrals ..39 Random number generator ..40 Value ..40 Counting and extracting words ..40 Operators ..41 Unary ..41 Binary ..41 Ternary ..42 Summation ..43 gnuplot -defined variables ..43 User-defined variables and functions ..44 Arrays ..44 Fonts45 Cairo (pdfcairo, pngcairo, epscairo, wxt terminals) ..45Gd (png, gif, jpeg, sixel terminals) ..46 Postscript (also encapsulated postscript *.eps) ..46 Glossary47 Inline data and datablocks47 Iteration48 Linetypes, colors, and styles494gnuplot ..49 Background color ..50 Linecolor variable ..50 Rgbcolor variable ..51 Dashtype ..51 Linestyles vs linetypes ..52 Layers52 Mouse input52 Bind ..52 Bind space ..54 Mouse variables ..54 Persist54 Plotting55 Plugins55 Start-up (initialization)56 String constants, string variables, and string functions56 Substrings ..56 String operators ..57 String functions ..57 String encoding ..57 Substitution and Command line macros57 Substitution of system commands in backquotes.
4 57 Substitution of string variables as macros ..58 String variables, macros, and command line substitution ..58 Syntax59 Quote Marks ..59 Time/Date data60II Plotting styles62 Arrows62 Bee swarm plots62 CONTENTS gnuplot boxes ..633D boxes ..64 Boxplot65 Boxxyerror66 Candlesticks66 Circles67 Ellipses68 Dots69 Filledcurves69 Fill properties ..70 Financebars70 Fsteps71 Fillsteps71 Histeps71 Histograms71 Newhistogram ..74 Automated iteration over multiple columns ..75 Image75 Transparency ..76 Image pixels ..76 Impulses77 Labels77 Lines78 Linespoints78 Parallelaxes79 Polar plots796gnuplot ..81 Steps82 Rgbalpha82 Rgbimage82 Vectors82 Xerrorbars83 Xyerrorbars83 Yerrorbars84 Xerrorlines84 Xyerrorlines84 Yerrorlines853D plots86 Surface plots ..862D projection (set view map) ..86PM3D plots ..86 Fence plots86 Isosurface87 Zerrorfill87 III Commands89 Break89Cd89 Call89 Argv[ ] ..90 Example ..90 CONTENTS gnuplot ..91 Clear91 Continue91Do92 Evaluate92 Exit92 Fit93 Adjustable parameters.
5 95 Short introduction ..96 Error estimates ..96 Statistical overview ..97 Practical guidelines ..97 Control ..98 Control variables ..98 Environment variables ..99 Multi-branch ..99 Starting values ..99 Tips .. 100 Help100 History101If101If-old .. 101 For102 Import102 Load103 Lower103 Pause103 Pause mouse close .. 104 Plot104 Axes .. 105 Binary .. 1058gnuplot .. 106 Array .. 106 Record .. 106 Skip .. 106 Format .. 107 Endian .. 107 Filetype .. 107 Avs .. 107 Edf .. 107 Png .. 108 Keywords .. 108 Scan .. 108 Transpose .. 108Dx, dy, dz .. 108 Flipx, flipy, flipz .. 108 Origin= .. 108 Center .. 109 Rotate .. 109 Perpendicular .. 109 Data .. 109 Bins .. 110 Columnheaders .. 111 Csv files .. 111 Every .. 111 Example datafile .. 112 Index .. 113 Skip .. 114 Smooth .. 114 Acsplines .. 114 Bezier .. 115 Bins .. 115 Csplines .. 115 Mcsplines .. 115 Sbezier .. 115 Unique .. 115 Unwrap.
6 115 Frequency .. 115 Fnormal .. 115 Cumulative .. 115 Cnormal .. 116 CONTENTS gnuplot .. 116 Zsort .. 116 Special-filenames .. 116 Piped-data .. 117 Using .. 118 Usingexamples .. 119 Pseudocolumns .. 119 Key .. 120 Xticlabels .. 120X2ticlabels .. 120 Yticlabels .. 120Y2ticlabels .. 120 Zticlabels .. 120 Cbticlabels .. 120 Volatile .. 121 Errorbars .. 121 Errorlines .. 121 Functions .. 122 Parametric .. 122 Ranges .. 122 Sampling .. 1241D sampling (x or t axis) .. 1242D sampling (u and v axes) .. 124 For loops in plot command .. 125 Title .. 126 With .. 127 Print129 Printerr129 Pwd129 Quit129 Raise129 Refresh130 Replot130 Reread13010gnuplot .. 132 Arrow .. 132 Autoscale .. 134 Noextend .. 135 Examples .. 135 Polar mode .. 135 Bind .. 135 Bmargin .. 136 Border .. 136 Boxwidth .. 137 Boxdepth .. 138 Color .. 138 Colorsequence .. 138 Clabel .. 138 Clip .. 138 Cntrlabel.
7 139 Cntrparam .. 140 Examples .. 141 Color box .. 142 Colornames .. 142 Contour .. 143 Dashtype .. 143 Data style .. 144 Datafile .. 144 Set datafile columnheaders .. 144 Set datafile fortran .. 144 Set datafile nofpetrap .. 144 Set datafile missing .. 144 Set datafile separator .. 145 Set datafile commentschars .. 146 Set datafile binary .. 146 Decimalsign .. 147 Dgrid3d .. 147 Dummy .. 149 Encoding .. 149 Errorbars .. 150 CONTENTS gnuplot .. 150 Fontpath .. 151 Format .. 152 Gprintf .. 152 Format specifiers .. 152 Time/date specifiers .. 154 Examples .. 155 Tmweek .. 155 Weekdateiso .. 155 Weekdatecdc .. 156 Function style .. 156 Functions .. 156 Grid .. 156 Hidden3d .. 157 Historysize .. 158 History .. 158 Isosamples .. 159 Isosurface .. 159 Jitter .. 159 Key .. 1603D key .. 161 Key examples .. 162 Extra key entries .. 162 Key autotitle .. 162 Key placement .. 163 Key samples.
8 164 Multiple keys .. 164 Label .. 164 Examples .. 166 Hypertext .. 167 Linetype .. 167 Link .. 168 Lmargin .. 168 Loadpath .. 168 Locale .. 169 Logscale .. 169 Macros .. 169 Mapping .. 169 Margin .. 170 Micro .. 17112gnuplot .. 171 Monochrome .. 171 Mouse .. 172 Doubleclick .. 173 Format .. 173 Mouseformat .. 173 Scrolling .. 173X11 mouse .. 174 Zoom .. 174 Mttics .. 174 Multiplot .. 174Mx2tics .. 176 Mxtics .. 176My2tics .. 177 Mytics .. 177 Mztics .. 177 Nonlinear .. 177 Object .. 178 Rectangle .. 179 Ellipse .. 179 Circle .. 180 Polygon .. 180 Depthorder .. 181 Offsets .. 181 Origin .. 181 Output .. 181 Overflow .. 182 Float .. 182 NaN .. 182 Undefined .. 183 Affected operations .. 183 Palette .. 183 Rgbformulae .. 185 Defined .. 185 Functions .. 186 Gray .. 187 Cubehelix .. 187 File .. 187 Gamma correction .. 188 Postscript .. 188 CONTENTS gnuplot .
9 188 Paxis .. 189 Pixmap .. 189 Plot .. 190Pm3d .. 190 Implicit .. 191 Algorithm .. 191 Lighting .. 192 Position .. 192 Scanorder .. 192 Clipping .. 193 Colorassignment .. 193 Corners2color .. 194 Border .. 194 Fillcolor .. 194 Interpolate .. 194 Deprecatedoptions .. 195 Pointintervalbox .. 195 Pointsize .. 195 Polar .. 195 Print .. 196 Psdir .. 196 Raxis .. 196 Rgbmax .. 197 Rlabel .. 197 Rmargin .. 197 Rrange .. 197 Rtics .. 197 Samples .. 197 Size .. 198 Spiderplot .. 199 Style .. 199 Set style arrow .. 199 Boxplot .. 200 Set style data .. 201 Set style fill .. 202 Set style fill border .. 202 Set style fill transparent .. 202 Set style function .. 203 Set style increment .. 20314gnuplot style line .. 203 Set style circle .. 205 Set style rectangle .. 205 Set style ellipse .. 205 Set style parallelaxis .. 206 Set style spiderplot .. 206 Set style textbox .. 206 Surface .. 206 Table.
10 207 Plot with table .. 207 Terminal .. 208 Termoption .. 208 Theta .. 208 Tics .. 209 Ticslevel .. 210 Ticscale .. 210 Timestamp .. 210 Timefmt .. 210 Title .. 211 Tmargin .. 212 Trange .. 212 Ttics .. 212 Urange .. 212 Variables .. 213 Version .. 213 Vgrid .. 213 View .. 213 Azimuth .. 214 Equalaxes .. 214 Projection .. 214 Vrange .. 215 Vxrange .. 215 Vyrange .. 215 Vzrange .. 215 Walls .. 215X2data .. 215X2dtics .. 215X2label .. 216X2mtics .. 216X2range .. 216 CONTENTS gnuplot .. 216X2zeroaxis .. 216 Xdata .. 216 Time .. 216 Xdtics .. 217 Xlabel .. 217 Xmtics .. 218 Xrange .. 218 Examples .. 219 Extend .. 220 Xtics .. 220 Xtics series .. 221 Xtics list .. 222 Xtics timedata .. 223 Geographic .. 223 Xtics logscale .. 224 Xtics rangelimited .. 224 Xyplane .. 224 Xzeroaxis .. 224Y2data .. 225Y2dtics .. 225Y2label .. 225Y2mtics .. 225Y2range .. 225Y2tics.