
Gnuplot - tydenni graf
Zdravim,
resim problem s konfigurakem pro Gnuplot pro Windows. Potrebuji zobrazit prubeh tydenni teploty od pondeli do nedele na zaklade prubezne logovanych hodnot s formatem radku:
po;06.09.2011;00:06:34;16.65
Datova rada konci vzdy aktualnim dnem a casem.
Zaroven potrebuji do stejneho grafu zobrazit prubeh minuleho tydne. Meritko osy x ale vzdy konci, narozdil od osy x2, aktualnim dnem, krivky se nedaji rozumne porovnavat.
Skript bezi ve smycce v nastavenem intervatu, nejedna se tedy o jednorazove zobrazeni s moznosti upravy rozsahu v konfiguracnim souboru.
Najde se prosim nejaka dobra duse s radou?
Konfiguracni soubor obsahuje:
set datafile separator ";"
set locale
set encoding cp1250
set terminal pngcairo size 800,450 font "tahoma,7" enhanced
set border 0
set lmargin 6
set rmargin 2
set tmargin 1
set bmargin 2
set key set grid
set xdata time set x2data time
set timefmt "%d.%m.%Y %H:%M:%S"
set yrange [*:*]
set x2range [*:*]
set xrange [*:*]
set format x "%a"
set xtics format "%a"
set xtics autofreq 86400
set format x2 "%a"
set x2tics format "%a"
set x2tics autofreq 86400
set output "tyden.png"
plot "minuly.xxt" using 2:3 axes x2y1 with lines linetype rgb "#FF00FF" linewidth 1 title "st. C",\ "tyden.xxt" using 2:3 with lines linetype rgb "#000000" linewidth 2 title "st. C"
Dekuji za kazdou pripominku.