[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[OT]: gnuplot mit zwei Graphen



Hallo an Alle,
in Ermangelung an einem geeigneten Forum stelle ich hier diese Frage.

Ich möchte aus einer Datei zwei Datenreihen in einem Diagramm darstellen.
Dazu habe ich das folgende gnuplot-Script erstellt:

#######################
#
# Trainingswerte HF und Pace
#
set grid y2
set grid x
set grid y
set border 15
set key top center
set key outside box
set tics out
set title 'Training 2013-10-14'

# senkrechte Striche
f1(x) = 15

# x-Achse
set xtics out nomirror rotate 1 autofreq scale 2
set locale 'de_DE.UTF-8'
set xdata time
set timefmt '%H:%M:%S'
set format x "%H. %M"
set xlabel 'Uhrzeit'


# y-Achse
set yrange [60:180]
set ylabel 'HF'

# y2-Achse
set y2tics out nomirror autofreq scale 2
set y2range [3.00:20.00]
set y2label 'Pace'


# Daten

plot '~/garmin_plot.csv' using 1:2 smooth csplines with lines , '~/garmin_plot.csv' using 1:3 smooth csplines with lines
#######################

Ausschnitt der Daten
#######################
13:10:28    116    19.1351
13:10:37    118    8.52951
13:10:45    116    6.29644
13:10:53    120    6.60328
13:10:55    121    6.664
13:11:01    124    6.6827
13:11:04    126    6.68003
13:11:10    128    6.61638
13:11:18    130    6.52827
13:11:21    131    6.50787
13:11:27    133    6.81106
13:11:32    136    6.64275
13:11:36    138    6.85589
13:11:46    139    8.07102
13:11:56    140    7.54831
13:12:06    139    7.35186
13:12:16    138    7.38771
13:12:25    138    7.16846
13:12:34    140    7.0205
13:12:38    141    7.07414
13:12:43    142    7.24008
13:12:51    142    6.50026
13:13:00    143    6.98226
13:13:09    145    7.31636
13:13:18    144    7.3616
13:13:27    146    7.93273
13:13:29    146    8.05932
#######################

Es wird aber nur die erste Datenreihe (using 1:2) dargestellt. Die Beschriftung der y2-Achse ist korrekt dargestellt.

Warum wird die zweite Datenreihe nicht dargestellt?
Danke für Eure Hilfe und Tipps.

MfG
Günter

P.S.
wenn Ihr ein geeignetes (deutsches) Forum kennt, sagt es mir bitte.


Reply to: