2020-02-20 00:07:03 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-06-11 06:56:59 +02:00
|
|
|
#
|
|
|
|
# this script generate some picz for the PDF documentation
|
|
|
|
# and was called by mkdoc.sh
|
|
|
|
#
|
|
|
|
|
2020-02-20 00:07:03 +01:00
|
|
|
PI=" 3.141592654 "
|
2020-02-20 17:11:15 +01:00
|
|
|
|
2021-06-11 06:56:59 +02:00
|
|
|
# ---------------------------------------------------
|
|
|
|
|
2020-02-20 17:11:15 +01:00
|
|
|
OUT="cos01.tex"
|
2020-02-20 00:07:03 +01:00
|
|
|
|
|
|
|
gnuplot << __EOF__
|
|
|
|
|
|
|
|
set term latex
|
|
|
|
set output "$OUT"
|
2020-02-20 01:33:21 +01:00
|
|
|
set title "COS01"
|
2020-02-20 17:11:15 +01:00
|
|
|
set xlabel "input value"
|
|
|
|
|
|
|
|
set ylabel '\rotatebox{90}{corrected value}'
|
|
|
|
|
|
|
|
set grid
|
2020-02-20 00:07:03 +01:00
|
|
|
|
|
|
|
plot \
|
|
|
|
[0:1] [0:1] \
|
|
|
|
(0.5 - 0.5 * cos(x*$PI)) \
|
|
|
|
with line
|
|
|
|
|
|
|
|
__EOF__
|
|
|
|
|
2020-02-20 17:11:15 +01:00
|
|
|
wc $OUT
|
|
|
|
|
2021-06-11 06:56:59 +02:00
|
|
|
# ---------------------------------------------------
|
|
|
|
|
2020-02-20 17:11:15 +01:00
|
|
|
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
|
2021-06-11 06:56:59 +02:00
|
|
|
|
|
|
|
# ---------------------------------------------------
|