|
|
@ -3,9 +3,11 @@ |
|
|
|
# gnuplot script for plotting eurofxref-hist.csv as obtained from |
|
|
|
# http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html |
|
|
|
|
|
|
|
infile=system("echo $INFILE") |
|
|
|
outfile=system("echo $OUTFILE") |
|
|
|
|
|
|
|
# Start und Ende ermitteln (z.Zt. nur für Consolenausagabe) |
|
|
|
stats 'eurofxref-hist.csv' every ::1 u (strptime("%Y-%m-%d",strcol(1))) nooutput |
|
|
|
stats infile every ::1 u (strptime("%Y-%m-%d",strcol(1))) nooutput |
|
|
|
print ' -----Stats-(Timestamp)----' |
|
|
|
print ' Start: ', strftime("%d. %B %Y",STATS_min) |
|
|
|
print ' Ende: ', strftime("%d. %B %Y",STATS_max) |
|
|
@ -68,7 +70,7 @@ do for [i=1950:2050:1] { |
|
|
|
## gnuplot for SVG - gnuplot 4.2 / Ubuntu 8.10 |
|
|
|
set term svg size 6000,400 font "Arial,16" |
|
|
|
|
|
|
|
set outp 'Euro exchange rate to TRY (6000px wide).svg' |
|
|
|
set outp outfile |
|
|
|
set style line 1 lt rgb 'blue' lw 1 |
|
|
|
|
|
|
|
#available currencies: |
|
|
@ -76,11 +78,11 @@ set style line 1 lt rgb 'blue' lw 1 |
|
|
|
#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,ILS,INR,KRW,MXN,MYR,NZD,PHP,SGD,THB,ZAR |
|
|
|
|
|
|
|
plot \ |
|
|
|
'eurofxref-hist.csv' \ |
|
|
|
infile \ |
|
|
|
usi 1:($26) axis x1y1 tit '1 EUR in TRY' lt rgb 'blue' lw 1,\ |
|
|
|
'eurofxref-hist.csv' \ |
|
|
|
infile \ |
|
|
|
usi 1:($25/1000000) axis x1y1 tit '1 EUR in 1 000 000 TRL' lt rgb 'dark-violet' lw 1,\ |
|
|
|
'eurofxref-hist.csv' \ |
|
|
|
infile \ |
|
|
|
usi 1:($26) axis x1y1 notit w p lc rgb 'black' lt 1 lw 1.5 pt 7 ps 0.06 ,\ |
|
|
|
'eurofxref-hist.csv' \ |
|
|
|
infile \ |
|
|
|
usi 1:($25/1000000) axis x1y1 notit w p lc rgb 'black' lt 1 lw 1.5 pt 7 ps 0.06 ,\ |
|
|
|