summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2021-01-09 21:54:51 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2021-01-09 22:35:50 +0100
commit4c523af1ab4b0fdbb403ae31423bb6cf1dc7f65f (patch)
treeb9a8ad8b153c4646990d2ed5cf7b4a568f1e1ac1 /tests
parentc5c28eb05b89e8dc095da1593b63ea53862800c8 (diff)
Add gnuplot syntax
closes #1431
Diffstat (limited to 'tests')
-rw-r--r--tests/syntax-tests/highlighted/gnuplot/test.gp19
-rw-r--r--tests/syntax-tests/source/gnuplot/test.gp19
2 files changed, 38 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/gnuplot/test.gp b/tests/syntax-tests/highlighted/gnuplot/test.gp
new file mode 100644
index 00000000..bb96f60d
--- /dev/null
+++ b/tests/syntax-tests/highlighted/gnuplot/test.gp
@@ -0,0 +1,19 @@
+set terminal pngcairo enhanced
+set output "/tmp/polynomial.png"
+
+set grid
+
+set xrange [-5:5]
+set yrange [-5:10]
+
+set samples 10000
+
+set key bottom right
+
+f(x) = 1.0 / 14.0 * ((x+4) * (x+1) * (x-1) * (x-3)) + 0.5
+
+plot \
+ f(x) title "polynomial of degree 4" \
+ with lines \
+ linewidth 2 \
+ linetype rgb '#0077ff'
diff --git a/tests/syntax-tests/source/gnuplot/test.gp b/tests/syntax-tests/source/gnuplot/test.gp
new file mode 100644
index 00000000..411cf134
--- /dev/null
+++ b/tests/syntax-tests/source/gnuplot/test.gp
@@ -0,0 +1,19 @@
+set terminal pngcairo enhanced
+set output "/tmp/polynomial.png"
+
+set grid
+
+set xrange [-5:5]
+set yrange [-5:10]
+
+set samples 10000
+
+set key bottom right
+
+f(x) = 1.0 / 14.0 * ((x+4) * (x+1) * (x-1) * (x-3)) + 0.5
+
+plot \
+ f(x) title "polynomial of degree 4" \
+ with lines \
+ linewidth 2 \
+ linetype rgb '#0077ff'