#!/usr/local/bin/gnuplot -persist # set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'cerf.2.png' set format y "%.2f" set key noinvert samplen 0.5 spacing 1 width 0 height 0 unset parametric set samples 200, 200 set style data lines set mxtics set mytics set xtics border out scale 1,0.5 nomirror norotate autojustify set title "Faddeeva/Voigt Function" set xrange [ -10.0000 : 10.0000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ -1.00000 : 1.00000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault NO_ANIMATION = 1 save_encoding = "utf8" plot real( faddeeva(x) ) lw 2, imag( faddeeva(x) ) lw 2, real(cdawson(x)) lt -1 lw 0.5 title "Dawson's Integral"