|
7 | 7 | | wiki | https://en.wikipedia.org/wiki/Gnuplot | |
8 | 8 | | wiki | https://en.wikibooks.org/wiki/Gnuplot | |
9 | 9 | | online | https://hostcat.fhsu.edu/cdclark/static/apps/gnuplot/ | |
| 10 | +| source | http://sf.net/p/gnuplot/gnuplot-main/ | |
10 | 11 | |--------+-------------------------------------------------------| |
11 | 12 |
|
12 | 13 | - 1986 |
|
16 | 17 |
|
17 | 18 | * cli |
18 | 19 |
|
19 | | -#+begin_src |
20 | | - gnuplot [x11 options] [options] [scriptfile ...] |
| 20 | +#+begin_src sh |
| 21 | + $ gnuplot [x11 options] [options] [scriptfile ...] |
| 22 | + $ GNUTERM=dumb gnuplot -e 'plot sin(x)' |
21 | 23 | #+end_src |
22 | 24 |
|
| 25 | +#+CAPTION: flags |
23 | 26 | |-----------+----+------------+---------------------------------| |
24 | 27 | | | -e | CMDS | | |
25 | 28 | | | -c | FILE [ARG] | runs script S with given args | |
|
28 | 31 | | --default | -d | - | do NOT read ~/.gnuplot | |
29 | 32 | |-----------+----+------------+---------------------------------| |
30 | 33 |
|
| 34 | +#+CAPTION: environment variables |
| 35 | +|---------+----------------------------------------| |
| 36 | +| GNUTERM | terminal override | |
| 37 | +| FIT_LOG | name of the log file, default: fit.log | |
| 38 | +|---------+----------------------------------------| |
| 39 | + |
31 | 40 | * language |
32 | 41 |
|
33 | 42 | #+begin_src gnuplot |
|
62 | 71 | |-----------+------------------------------------+-----------------------------| |
63 | 72 | | <r> | | | |
64 | 73 | | multiplot | layout N,N | | |
| 74 | +| | title S | | |
| 75 | +| | offset N,N | | |
65 | 76 | | unset | OPTION | | |
66 | 77 | | set | OPTION [VALUE] | | |
67 | 78 | | with | (l)ines[*], dots[.], lines(points) | | |
@@ -177,32 +188,26 @@ b -0.890 1.000 |
177 | 188 | #+CAPTION: S ="string", N=number, F=float |
178 | 189 | |------------+------------+-------------------------------------| |
179 | 190 | | <c> | <c> | | |
| 191 | +| | | | |
| 192 | +|------------+------------+-------------------------------------| |
180 | 193 | | table | "FILENAME" | save plot to file, unset it after | |
181 | 194 | | encoding | utf8 | | |
182 | 195 | |------------+------------+-------------------------------------| |
183 | 196 | | title | S | the | |
184 | 197 | | scale | N | | |
185 | 198 | | output | S | saves into filepath, unset it after | |
186 | 199 | | monochrome | _ | | |
| 200 | +| object | rectangle | | |
187 | 201 | |------------+------------+-------------------------------------| |
188 | 202 | | pause | N | seconds to pause | |
189 | 203 | | +reread+ | - | REMOVED in 6.0 +reread input+ | |
190 | 204 | |------------+------------+-------------------------------------| |
191 | 205 |
|
192 | | -#+CAPTIONS: background |
193 | | -#+begin_src gnuplot |
194 | | - set object rectangle \ |
195 | | - from screen 0,0 to screen 1,1 \ |
196 | | - behind \ |
197 | | - fillcolor rgb '$background' \ |
198 | | - fillstyle solid \ |
199 | | - noborder |
200 | | -#+end_src |
201 | | - |
202 | 206 | *** general: file parsing |
203 | 207 |
|
204 | 208 | |-------------+-----------------+----------------------------------| |
205 | 209 | | <c> | <c> | | |
| 210 | +| | | | |
206 | 211 | |-------------+-----------------+----------------------------------| |
207 | 212 | | datafile | separator S | | |
208 | 213 | | | separator tab | | |
@@ -252,21 +257,21 @@ b -0.890 1.000 |
252 | 257 |
|
253 | 258 | *** style |
254 | 259 |
|
255 | | -|-----------+---------------+----------------------------------| |
256 | | -| <c> | <c> | | |
257 | | -| fill | transparent | | |
258 | | -| | solid | | |
259 | | -| solid | F | | |
260 | | -| noborder | _ | | |
261 | | -| data | lines | sets default for *plot* with ... | |
262 | | -| | histograms | | |
263 | | -| line | N | can be later referenced on plot | |
264 | | -| histogram | gap N | | |
265 | | -| | cluster | | |
266 | | -| | clustered | | |
267 | | -| | rowstacked | | |
268 | | -| | columnstacked | | |
269 | | -|-----------+---------------+----------------------------------| |
| 260 | +|-------+-----------+---------------+----------------------------------| |
| 261 | +| | <c> | <c> | | |
| 262 | +| style | fill | transparent | | |
| 263 | +| | | solid | | |
| 264 | +| | solid | F | | |
| 265 | +| | noborder | _ | | |
| 266 | +| | data | lines | sets default for *plot* with ... | |
| 267 | +| | | histograms | | |
| 268 | +| | line | N | can be later referenced on plot | |
| 269 | +| | histogram | gap N | | |
| 270 | +| | | cluster | | |
| 271 | +| | | clustered | | |
| 272 | +| | | rowstacked | | |
| 273 | +| | | columnstacked | | |
| 274 | +|-------+-----------+---------------+----------------------------------| |
270 | 275 |
|
271 | 276 | #+CAPTION: gnuplot "test" command output |
272 | 277 | #+ATTR_HTML: :width 500 |
@@ -308,6 +313,16 @@ http://gnuplot.info/demo/pm3dcolors.html |
308 | 313 | } |
309 | 314 | #+end_src |
310 | 315 |
|
| 316 | +- background fullscreen rectangle |
| 317 | + #+begin_src gnuplot |
| 318 | + set object rectangle \ |
| 319 | + from screen 0,0 to screen 1,1 \ |
| 320 | + behind \ |
| 321 | + fillcolor rgb '$background' \ |
| 322 | + fillstyle solid \ |
| 323 | + noborder |
| 324 | + #+end_src |
| 325 | + |
311 | 326 | * examples |
312 | 327 |
|
313 | 328 | - https://github.com/TheFox/gnuplot-examples |
@@ -335,6 +350,4 @@ http://gnuplot.info/demo/pm3dcolors.html |
335 | 350 | - to read from stdin "-" might not work in plot (? |
336 | 351 | - use /dev/stdin |
337 | 352 | - you cannot plot fields from differents files/inputs against each other |
338 | | -- on multiplot, sometimes a plot will silently fail due some formatting issue |
339 | | - - try adding ";" |
340 | | - - try adding "\n" |
| 353 | +- on multiplot, sometimes a plot will silently fail (? |
0 commit comments