# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'nonlinear2.1.png' set dummy jw, y set grid nopolar set grid xtics nomxtics ytics nomytics noztics nomztics \ nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics set grid layerdefault lt 0 linewidth 0.500, lt 0 linewidth 0.500 set key inside center bottom vertical Right noreverse enhanced autotitle box lt black linewidth 1.000 dashtype solid set label 1 "Same as plot #2 in 'electron.dem'\nexcept that the axes are set up using\n'set nonlinear' rather than 'set logscale'" at graph 0.5, 0.85, 0 center norotate back nopoint set samples 160, 160 set style data lines set mxtics 10.000000 set xtics border out scale 1,0.5 nomirror norotate autojustify set xtics norangelimit logscale autofreq set ytics border out scale 1,0.5 nomirror norotate autojustify set ytics norangelimit autofreq textcolor rgb "dark-violet" set y2tics border out scale 1,0.5 nomirror norotate autojustify set y2tics norangelimit autofreq textcolor rgb "#56b4e9" set title "Log-scaled axes defined using 'set nonlinear'" set xlabel "jw (radians)" set xrange [ 1.10000 : 90000.0 ] noreverse nowriteback set autoscale xfixmin set autoscale xfixmax set ylabel "magnitude of A(jw)" set y2label "Phase of A(jw) (degrees)" set yrange [ 0.100000 : 1.00000 ] noreverse nowriteback set nonlinear x via log10(x) inverse 10**x set nonlinear y via log10(y) inverse 10**y A(jw) = ({0,1}*jw/({0,1}*jw+p1)) * (1/(1+{0,1}*jw/p2)) p1 = 10 p2 = 10000 GPFUN_A = "A(jw) = ({0,1}*jw/({0,1}*jw+p1)) * (1/(1+{0,1}*jw/p2))" plot abs(A(jw)) lt 1, 180/pi*arg(A(jw)) axes x1y2 lt 3