print shortcut in gnuplot

in order to print the plot that you draw with gnuplot quickly, you can save the following two lines as ~/.gnuplot

1
2
set macros
lpr = "set terminal postscript noenhanced simplex monochrome 'Helvetica' 10; set size 0.4,0.4; set output '|lpr'; replot; set term pop; set size 1.0,1.0; replot;";

after plotting, you can then simply type

1
@lpr

in the gnuplot window

Leave a Reply