FloatImg4PythonBinding/doc/mkgraf.sh

48 lines
550 B
Bash
Raw Normal View History

2020-02-20 10:07:03 +11:00
#!/bin/bash
PI=" 3.141592654 "
OUT="cos01.tex"
2020-02-20 10:07:03 +11:00
gnuplot << __EOF__
set term latex
set output "$OUT"
2020-02-20 11:33:21 +11:00
set title "COS01"
set xlabel "input value"
set ylabel '\rotatebox{90}{corrected value}'
set grid
2020-02-20 10:07:03 +11:00
plot \
[0:1] [0:1] \
(0.5 - 0.5 * cos(x*$PI)) \
with line
__EOF__
wc $OUT
OUT="cos010.tex"
gnuplot << __EOF__
set term latex
set output "$OUT"
set title "COS010"
set xlabel "input value"
set ylabel '\rotatebox{90}{corrected value}'
set grid
plot \
[0:1] [0:1] \
(0.5 - 0.5 * cos(x*$PI*2)) \
with line
__EOF__
wc $OUT