#!/bin/sh
gnuplot --persist <<EOF
# TK=1.1e-5, 1/TK=90909.1
!scalex 90909.1 spec.dat >spec-rescaled.dat
!scalex 90909.1 spec-S0.5.dat >spec-S0.5-rescaled.dat
set termoption enh
set title "Kondo model - spectral function"
set xrange [-30:30]
set yrange [0:1.05]
set xlabel '{/Symbol w}/T_K'
set ylabel 'A({/Symbol w})'
plot 'spec-rescaled.dat' with l title 'S=1', \
 'spec-S0.5-rescaled.dat' with l title 'S=1/2'
EOF
