|
55 | 55 | - putting 2 newlines one after another, separate different blocks/groups of data |
56 | 56 |
|
57 | 57 | ** commands |
| 58 | + |
58 | 59 | |-------+------------------------------------+-----------------------------| |
59 | 60 | | <r> | | | |
60 | 61 | | unset | OPTION | | |
|
65 | 66 | | | | later can be referenced | |
66 | 67 | | | | eg: S_min_x | |
67 | 68 | |-------+------------------------------------+-----------------------------| |
| 69 | + |
68 | 70 | *** plot |
69 | 71 |
|
70 | | -- [re]plot [PLOT_A OPTS], [PLOT_B OPTS] |
| 72 | +|--------------+-------------------------| |
| 73 | +| <c> | | |
| 74 | +| INPUT | reads from... | |
| 75 | +|--------------+-------------------------| |
| 76 | +| "file.txt" | file contents | |
| 77 | +| "/dev/stdin" | standard input | |
| 78 | +| "< CMD" | CMD stdout | |
| 79 | +| "" | re-use last given input | |
| 80 | +|--------------+-------------------------| |
| 81 | + |
| 82 | +- [re]plot INPUT [PLOT_A OPTS], INPUT [PLOT_B OPTS] |
| 83 | + - every N - plots every N data points |
71 | 84 | - for [n = 1 : 5] |
72 | 85 | - widths = "30 15 5" |
73 | 86 | for [width in widths] |
74 | | - - "+" (previous filename) |
75 | | - - "filename.txt" |
76 | | - - /dev/stdin |
77 | 87 | - using N:N+1:N+n |
78 | | - - smooth [bezier¦mcsplines] |
| 88 | + - [[http://www.gnuplot.info/docs/loc9016.html][smooth]] |
| 89 | + - [[http://www.gnuplot.info/docs/loc9099.html][frequency]] - points with the same X-value are replaced with 1 point with Y-values sum |
| 90 | + - [bezier¦mcsplines] |
79 | 91 | - title S (for legend box) |
| 92 | + - bins=N - total N number of bins in graph http://gnuplot.info/docs_6.1/loc9125.html |
| 93 | + - binvalue=[avg¦sum] - how to group each bin, default: sum |
80 | 94 | - index N |
81 | 95 | - reference block N of data (aka separated by 2 \n) |
82 | 96 | - blocks index start at 0 |
|
95 | 109 | - [l]ine[w]ith N |
96 | 110 | - points |
97 | 111 | - pointsize N |
| 112 | + |
| 113 | +*** other |
98 | 114 | - imagesc - matrix/heatmap - 2d contour |
99 | 115 | - splot - 3d surface |
100 | 116 | - hist |
|
104 | 120 | *** general |
105 | 121 |
|
106 | 122 | #+CAPTION: S ="string", N=number, F=float |
107 | | -|------------+------------+-----------------------------------| |
108 | | -| <c> | <c> | | |
109 | | -| table | "FILENAME" | save plot to file, unset it after | |
110 | | -| encoding | utf8 | | |
111 | | -|------------+------------+-----------------------------------| |
112 | | -| title | S | the | |
113 | | -| scale | N | | |
114 | | -| output | S | saves into filepath at S | |
115 | | -| monochrome | _ | | |
116 | | -|------------+------------+-----------------------------------| |
117 | | -| pause | N | seconds to pause | |
118 | | -| +reread+ | - | REMOVED in 6.0 +reread input+ | |
119 | | -|------------+------------+-----------------------------------| |
| 123 | +|------------+------------+-------------------------------------| |
| 124 | +| <c> | <c> | | |
| 125 | +| table | "FILENAME" | save plot to file, unset it after | |
| 126 | +| encoding | utf8 | | |
| 127 | +|------------+------------+-------------------------------------| |
| 128 | +| title | S | the | |
| 129 | +| scale | N | | |
| 130 | +| output | S | saves into filepath, unset it after | |
| 131 | +| monochrome | _ | | |
| 132 | +|------------+------------+-------------------------------------| |
| 133 | +| pause | N | seconds to pause | |
| 134 | +| +reread+ | - | REMOVED in 6.0 +reread input+ | |
| 135 | +|------------+------------+-------------------------------------| |
120 | 136 |
|
121 | 137 | *** general: file parsing |
122 | 138 |
|
123 | | -|-----------+-----------------+----------------------------------| |
124 | | -| <c> | <c> | | |
125 | | -|-----------+-----------------+----------------------------------| |
126 | | -| datafile | separator S | | |
127 | | -| | separator tab | | |
128 | | -| | separator comma | input separator (default: space) | |
129 | | -|-----------+-----------------+----------------------------------| |
130 | | -| samples | N | sampling frequency | |
131 | | -| [xyz]data | time | tells ? axis is a date/time | |
132 | | -| timefmt | FMT | INPUT format date | |
133 | | -| format | [x¦y] FMT | OUTPUT format string | |
134 | | -|-----------+-----------------+----------------------------------| |
| 139 | +|-------------+-----------------+----------------------------------| |
| 140 | +| <c> | <c> | | |
| 141 | +|-------------+-----------------+----------------------------------| |
| 142 | +| datafile | separator S | | |
| 143 | +| | separator tab | | |
| 144 | +| | separator comma | input separator (default: space) | |
| 145 | +|-------------+-----------------+----------------------------------| |
| 146 | +| decimalsign | S | "." or "," | |
| 147 | +| samples | N | sampling frequency | |
| 148 | +| [xyz]data | time | tells ? axis is a date/time | |
| 149 | +| timecolumn | N FMT | INPUT format date on column N | |
| 150 | +| timefmt | FMT | INPUT format date | |
| 151 | +| format | [x¦y] FMT | OUTPUT format string, eg: %.2f | |
| 152 | +|-------------+-----------------+----------------------------------| |
135 | 153 |
|
136 | 154 | *** general: axis styling |
137 | 155 |
|
|
150 | 168 | | | rotate | | |
151 | 169 | | | START,STEP,END | | |
152 | 170 | | | (S N[,S N]) | custom labels S at point N | |
| 171 | +| [xyz]tic | rotate by N | rotates tic labels | |
153 | 172 | | [xyz][2]label | S | axis label | |
154 | 173 | | | offset N | | |
155 | 174 | |---------------+----------------+----------------------------------| |
|
167 | 186 |
|
168 | 187 | *** style |
169 | 188 |
|
170 | | -|-----------+-------------+----------------------------------| |
171 | | -| <c> | <c> | | |
172 | | -| fill | transparent | | |
173 | | -| | solid | | |
174 | | -| solid | F | | |
175 | | -| noborder | _ | | |
176 | | -| data | lines | sets default for *plot* with ... | |
177 | | -| | histograms | | |
178 | | -| line | N | can be later referenced on plot | |
179 | | -| histogram | gap N | | |
180 | | -| | cluster | | |
181 | | -| | clustered | | |
182 | | -| | rowstacked | | |
183 | | -|-----------+-------------+----------------------------------| |
| 189 | +|-----------+---------------+----------------------------------| |
| 190 | +| <c> | <c> | | |
| 191 | +| fill | transparent | | |
| 192 | +| | solid | | |
| 193 | +| solid | F | | |
| 194 | +| noborder | _ | | |
| 195 | +| data | lines | sets default for *plot* with ... | |
| 196 | +| | histograms | | |
| 197 | +| line | N | can be later referenced on plot | |
| 198 | +| histogram | gap N | | |
| 199 | +| | cluster | | |
| 200 | +| | clustered | | |
| 201 | +| | rowstacked | | |
| 202 | +| | columnstacked | | |
| 203 | +|-----------+---------------+----------------------------------| |
184 | 204 |
|
185 | 205 | #+CAPTION: gnuplot "test" command output |
186 | 206 | #+ATTR_HTML: :width 500 |
|
0 commit comments