Keywords: Piecewise constant.svg Illustration of constant interpolation more precisely en Nearest neighbor interpolation on the same dataset as listed in Interpolation self-made in Gnuplot 2007-06-23 Berland Gnuplot source code set terminal svg fname Vera fsize 25 set output Piecewise_constant svg set key off set xzeroaxis set xtics axis 1 1 set ytics nomirror 1 set border 2 set yrange -1 1 1 1 plot - with lines linetype 3 linewidth 4 \ - with lines linetype 3 linewidth 4 \ - with lines linetype 3 linewidth 4 \ - with lines linetype 3 linewidth 4 \ - with lines linetype 3 linewidth 4 \ - with lines linetype 3 linewidth 4 \ - with lines linetype 3 linewidth 4 \ - with points linetype 1 pointtype 7 pointsize 1 \ 0 with lines -1 0 0 0 5 0 e 0 5 0 8415 1 5 0 8415 e 1 5 0 9093 2 5 0 9093 e 2 5 0 1411 3 5 0 1411 e 3 5 -0 7568 4 5 -0 7568 e 4 5 -0 9589 5 5 -0 9589 e 5 5 -0 2794 6 0 -0 2794 e 0 0 1 0 8415 2 0 9093 3 0 1411 4 -0 7568 5 -0 9589 6 -0 2794 e This version replaces the version of User Cronholm144 this version has some style changes and don't have dashed vertical lines Numerical analysis Interpolation |