Skip to content

Commit a430a3a

Browse files
committed
Added snippets for Gnuplot.
1 parent b56e303 commit a430a3a

File tree

1 file changed

+149
-0
lines changed

1 file changed

+149
-0
lines changed

neosnippets/gnuplot.snip

+149
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
snippet range
2+
abbr set x/y range.
3+
options head
4+
set ${1:#:axis}range [${2:*}:${3:*}]
5+
6+
snippet xrange
7+
abbr set xrange [X1:X2]
8+
options head
9+
set xrange [${1:*}:${2:*}]
10+
11+
snippet yrange
12+
abbr set yrange [Y1:Y2]
13+
options head
14+
set yrange [${1:*}:${2:*}]
15+
16+
snippet title
17+
abbr set title '...'
18+
options head
19+
set title ${1:#:title}
20+
21+
snippet labelaxis
22+
abbr set title '...'
23+
options head
24+
set ${1:#:axis}label ${2:#:label}
25+
26+
snippet tics
27+
abbr set x/y tics start, incr, end
28+
options head
29+
set ${1:#:axis}tics ${2:#:start}, ${3:#:incr}, ${4:#:end}
30+
31+
snippet xtics
32+
abbr set xtics start, incr, end
33+
options head
34+
set xtics ${1:#:start}, ${2:#:incr}, ${3:#:end}
35+
36+
snippet ytics
37+
abbr set ytics start, incr, end
38+
options head
39+
set ytics ${1:#:start}, ${2:#:incr}, ${3:#:end}
40+
41+
snippet datasep
42+
abbr set datafile separator 'separator'
43+
options head
44+
set datafile separator '${1:#:separator}'
45+
46+
snippet term
47+
abbr set terminal
48+
options head
49+
set terminal ${1:#:terminal}
50+
51+
snippet out
52+
abbr set output 'filename'
53+
options head
54+
set output '${1:#:filename}'
55+
56+
snippet key
57+
abbr set key
58+
options head
59+
set key
60+
61+
snippet key!
62+
abbr unset key
63+
options head
64+
unset key
65+
66+
snippet grid
67+
abbr set grid
68+
options head
69+
set grid
70+
71+
snippet grid!
72+
abbr unset grid
73+
options head
74+
unset grid
75+
76+
snippet border
77+
abbr set border
78+
options head
79+
set border
80+
81+
snippet print
82+
abbr print
83+
options head
84+
print(${1:#:string}}
85+
86+
snippet sprintf
87+
abbr sprintf
88+
options head
89+
sprintf('${1:#:format}', ${2:#:vars})
90+
91+
snippet multiplot
92+
abbr set multiplot ... unset multiplot
93+
options head
94+
set multiplot
95+
${1:#:plot code}
96+
unset multiplot
97+
98+
snippet if
99+
abbr if (...) {...}
100+
options head
101+
if (${1:#:condition}) {
102+
${2:#:commands}
103+
}
104+
105+
snippet else
106+
abbr else {...}
107+
options head
108+
else {
109+
${1:#:commands}
110+
}
111+
112+
snippet ifelse
113+
abbr if (...) {...} else {...}
114+
options head
115+
if (${1:#:condition}) {
116+
${2:#:commands}
117+
} else {
118+
${3:#:commands}
119+
}
120+
121+
snippet while
122+
abbr while (...) {...}
123+
options head
124+
while (${1:#:expression}) {
125+
${2:#:commands}
126+
}
127+
128+
snippet do
129+
abbr do for <iter> {...}
130+
options head
131+
do for ${1:#:iter} {
132+
${2:#:commands}
133+
}
134+
135+
snippet fors
136+
abbr for [string in "A B C..."]
137+
options head
138+
for [${1:str} in '${2:#:string list}']
139+
140+
snippet fori
141+
abbr for [intvar = start, end, incr]
142+
options head
143+
for [${1:i} = ${2:#:start}, ${3:#:end}, ${4:1}
144+
145+
snippet logscale
146+
abbr set logscale <axis>
147+
options head
148+
set logscale ${1:#:axis}
149+

0 commit comments

Comments
 (0)