Back to demo index

gnuplot demo script: TaBr.dem

autogenerated by webify.pl on Mon Jul 23 22:11:29 2012
gnuplot version gnuplot 4.7 patchlevel 0

Your browser does not support the HTML 5 canvas element

eV       λ       # unzoom rezoom zoom text ?
        
#
# Demo for non-linear linked axes, in this case x2 is proportional to 1/x.
# X axis is X-ray energy in eV; x2 axis is wavelength in Angstroms.
#
# The scattering data are pulled from the web using the GET
# command, which is provided by the perl-libwww module.
# You could replace it with wget or some other download tool, or you
# could manually download the data first and then plot from the local copy.
#
set encoding utf8
set key outside Left
set bmargin 5
set tmargin 6
set style data lines
set tics in
set ticslevel 0.5
set xlabel  "X-ray energy in eV"
set format y  '%5.1fe'
set title " Anomalous scattering factors "
set xrange  [9000:14400]
set offset 0,0,1.0,0
set xtics nomirror
link x via 12398./x inverse 12398./x

set x2label  "X-ray wavelength in Å"
set x2tics 0.1  format "%.1f Å nomirror

Brdata = "< GET http://www.bmsc.washington.edu/scatter/data/Br.dat"
Tadata = "< GET http://www.bmsc.washington.edu/scatter/data/Ta.dat"

plot Brdata using 1:3 title 'Br f"'  lt 1 lw 3, \
'' using 1:2 title "Br f'"  lt 1 lw 1, \
Tadata using 1:3 title 'Ta f"' lt 2 lw 3, \
'' using 1:2 title "Ta f'"  lt 2 lw 1


Click here for minimal script to generate this plot