set term png small color set size .5,.3 set output "mulaw.png" set grid set nokey set xtics 1 set ytics 1 set title "u-Law Logarithmic Encoding" set xrange [-1:1] plot sgn(x) * (log(1 + 255 * abs(x)) / log(1 + 255))