# Plots pairs of all eigenfunctions from two runs # Use within gnuplot; include all quotes below; change run1 & run2: # > call 'two_runs_eigf.gp_in' "run1" "run2" # output is in $0_WW_$1.plt ; view it with ghostview. set data style line set terminal postscript color set output '$0_WW_$1.plt' Nk=0 # Nk_th eigenfunction # "every" option can do selected eigenfunctions, # the first is number "0" plot '$0.eigenfunc' every :::Nk::Nk using 1:4 ,\ '$1.eigenfunc' every :::Nk::Nk using 1:4 Nk=1 ; replot Nk=2 ; replot Nk=3 ; replot Nk=4 ; replot # When Nk is too large will get an error Nk=5 ; replot # saying "x range is invalid" Nk=6 ; replot # but all valid values will be in output file Nk=7 ; replot set output # No filename here closes output file set terminal X11 # Reverts to interactive gnuplot quit # The remainder of the file is NOT ignored ! # Notes # For "set terminal postscript" the options can be in any order: #set terminal postcript landscape enhanced color dashed simplex #X11 terminal ignores set output; so reset the terminal first ! #set output 'filename' # No filename closes output file; then -> std output