2020-02-20 00:07:03 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
PI=" 3.141592654 "
|
|
|
|
OUT="foo.tex"
|
|
|
|
|
|
|
|
gnuplot << __EOF__
|
|
|
|
|
|
|
|
set term latex
|
|
|
|
set output "$OUT"
|
2020-02-20 01:33:21 +01:00
|
|
|
set title "COS01"
|
2020-02-20 00:07:03 +01:00
|
|
|
|
|
|
|
plot \
|
|
|
|
[0:1] [0:1] \
|
|
|
|
(0.5 - 0.5 * cos(x*$PI)) \
|
|
|
|
with line
|
|
|
|
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
wc $OUT
|