#by Hankwang
# gnuplot script for plotting eurofxref-hist.csv as obtained from
# http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html
# download and unzip data if not available - delete eurofxref* to force new download.
# remove or comment out these lines in Windows/MacOS.
! [ -f eurofxref-hist.csv ] || wget http://www.ecb.int/stats/eurofxref/eurofxref-hist.zip
! [ -f eurofxref-hist.csv ] || unzip eurofxref-hist.zip
# strip commas and comment lines from the CSV file and write the result in 'euro.dat'.
# (remove this line in Windows and do it by hand)
#! perl -ne "s@N/A@0@g; s/,/ /g; /^[0-9]/ || next; print; " eurofxref-hist.csv > euro.dat
set timefmt "%Y-%m-%d"
set xdata time
set format x '%Y'
set ylabel '1 Euro in SKK'
set xlabel 'Date'
set grid
set style data lines
set key top left
set yrange [25:50]
set xrange ['1999-01-04':'2008-12-31']
set xtics 31536000
set mxtics 12
## gnuplot version with Fedora Core 3
# set term png small picsize 600 480 xffffff x000000 xa0a0a0 x00bf00 xbf0000 x0000bf
## gnuplot version with Ubuntu Linux 6
#set term png small size 600,480 xffffff x000000 xa0a0a0 x00bf00 xbf0000 x0000bf
## gnuplot for SVG - gnuplot 4.2 / Ubuntu 8.10
set term svg size 640,480 font "Arial,10"
set outp 'Euro exchange rate to SKK.svg'
set style line 1 lt 3 lw 1
#available currencies:
#first one is $2, second $3 and so on
#USD,JPY,BGN,CYP,CZK,DKK,EEK,GBP,HUF,LTL,LVL,MTL,PLN,ROL,RON,SEK,SIT,SKK,CHF,ISK,NOK,HRK,
#RUB,TRL,TRY,AUD,BRL,CAD,CNY,HKD,IDR,INR,KRW,MXN,MYR,NZD,PHP,SGD,THB,ZAR
plot 'euro.dat' usi 1:($19) title 'SKK' ls 1
== Summary == {{Information |Description={{en|1=Exchange rate Euro - Slowakische Krone}} {{de|1=Wechselkurs Euro - Slovak koruna}} |Source=created with gnuplot, data from http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html |Author=created with