Skip to content

Commit 52f83dc

Browse files
committed
update gnuplot
1 parent 541cf4d commit 52f83dc

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

terminal/tools/visualization/gnuplot/self.org

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@
1919

2020
#+begin_src sh
2121
$ gnuplot [x11 options] [options] [scriptfile ...]
22+
$ gnuplot -p -e "plot '-'" < rawnumbers # opens qt window
2223
$ GNUTERM=dumb gnuplot -e 'plot sin(x)'
2324
#+end_src
2425

2526
#+CAPTION: flags
2627
|-----------+----+------------+---------------------------------|
27-
| | -e | CMDS | |
28+
| | | <c> | |
29+
| | -e | CMDS | |
2830
| | -c | FILE [ARG] | runs script S with given args |
29-
| --persist | -p | - | keep window after plotting ends |
30-
| --slow | -s | - | wait for slow font init |
31-
| --default | -d | - | do NOT read ~/.gnuplot |
31+
| --persist | -p | - | keep window after plotting ends |
32+
| --slow | -s | - | wait for slow font init |
33+
| --default | -d | - | do NOT read ~/.gnuplot |
3234
|-----------+----+------------+---------------------------------|
3335

3436
#+CAPTION: environment variables
@@ -49,7 +51,6 @@
4951
- NaN type
5052
- {/Symbol ?} - replaces with postscript enhanced symbol http://materials.ucsd.edu/doc/ps_guide.pdf
5153
- eg: "{/Symbol p}" - replaces parens with 𝛑
52-
- curve fitting https://www.youtube.com/watch?v=vHM_5AeKwXE
5354
- do for [i=1:96] { plot f(x,i*0.1) }
5455
- operators http://www.gnuplot.info/docs_4.2/node55.html
5556
- Colors
@@ -100,9 +101,11 @@
100101
| "" | re-use last given input |
101102
|--------------+-------------------------|
102103

103-
- every N - plots every N data points
104-
- for [VAR = START : END]
105-
- for [LVAR in VAR] # widths = "30 15 5"
104+
- [[http://gnuplot.info/docs_5.5/loc8595.html][every]] - p++:b++:pstart:bstart:pend:bend
105+
- N - every N data points
106+
- N:N - every N data points, in every other block
107+
- for [VAR = NSTART : NEND]
108+
- for [VAR in LVAR] # LVAR = "30 15 5"
106109
- using N:N+1:N+n
107110
- [[http://www.gnuplot.info/docs/loc9016.html][smooth]]
108111
- [[http://www.gnuplot.info/docs/loc9099.html][frequency]] - points with the same X-value are replaced with 1 point with Y-values sum
@@ -288,7 +291,8 @@ b -0.890 1.000
288291

289292
*** term[inal]
290293

291-
- gif [animate¦delay]
294+
- gif [animate¦delay N¦loop N]
295+
- webp [animate¦delay N¦loop N]
292296
- png [size¦font]
293297
- pngcairo
294298
- wxt
@@ -306,13 +310,6 @@ http://gnuplot.info/demo/pm3dcolors.html
306310

307311
* snippets
308312

309-
- simple pipe
310-
#+begin_src sh
311-
$ gnuplot -p -e "plot '<cat'" < rawnumbers # opens qt window
312-
$ gnuplot -p -e "plot '-'" < rawnumbers # opens qt window
313-
$ GNUTERM=dumb gnuplot -e "plot '-'" < rawnumbers # ascii plot
314-
#+end_src
315-
316313
- stream - draw last 200 lines, ten times per second
317314
#+begin_src sh
318315
while (1) {
@@ -346,7 +343,7 @@ http://gnuplot.info/demo/pm3dcolors.html
346343

347344
- emacs: [[https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html][Org-babel-gnuplot]]
348345
- color theming https://github.com/GideonWolfe/Gnuplot-Pywal
349-
- wrapper: plot realtime and stored data from the cli https://github.com/dkogan/feedgnuplot
346+
- wrapper: [[https://github.com/dkogan/feedgnuplot][feedgnuplot]] - realtime and stored data from the cli
350347
- config https://github.com/Gnuplotting/gnuplot-configs
351348
- pallettes
352349
- https://github.com/Gnuplotting/gnuplot-palettes
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
- Gnuplot Tutorial for Scientists https://www.youtube.com/playlist?list=PLIBLYHTGmm_4ZVHGoPMp0JRG3MPVmMpM1
2-
- 24 gnuplot bootcamp https://www.youtube.com/watch?v=vu_LBbqI-oQ
3-
- 4:47 end overview
42
- https://www.youtube.com/playlist?list=PLaYBfUc8SG7W4cTZprVWjbtwrottWuk8c
3+
- +24 gnuplot bootcamp https://www.youtube.com/watch?v=vu_LBbqI-oQ+

0 commit comments

Comments
 (0)