Re: [OT]: gnuplot mit zwei Graphen
Günter Moritz schrieb am 20.10.2013 14:11 +0200:
> Ich möchte aus einer Datei zwei Datenreihen in einem Diagramm darstellen.
> Dazu habe ich das folgende gnuplot-Script erstellt:
> [...]
> # 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'
> [...]
> plot '~/garmin_plot.csv' using 1:2 smooth csplines with lines ,
> '~/garmin_plot.csv' using 1:3 smooth csplines with lines
> #######################
>
> 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.
Setze doch mal yrange auf [0:180], dann siehst du auch deine zweite
Datenreihe.
Wenn du diese auf y2 darstellen willst, dann musst du den den zweiten
Teil des plot-Befehl mit "axis x1y2" erweitern.
> MfG
> Günter
HTH Bernd
Reply to: