You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bat/tests/syntax-tests/highlighted/gnuplot/test.gp

20 lines
2.2 KiB
Gnuplot

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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'