PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : gnuplot hilfe



Huhn Hur Tu
27.11.13, 16:09
Hallo,

ich versuche mit Gnuplot verzweifelt eine grafik zu erzeugen, komme mit der konfiguration zurecht.

Kann mir hier jemand helfen/



set xdata time
set timefmt "%H.%M.$S"
set format x "%H:%M:$S"
set terminal png truecolor
set output "mssa_01.png"
set title "Laufzeiten der Methoden costumer, contracts, invoices"
set style data lines
set autoscale

plot "/tmp/check_output using 2:3:4 title "Laufzeit"



HTTPCODE Zeit Laufzeit Methode Host


200 15.17.17 64 customer, http://swismappbossa02
200 15.17.18 450 invoices, http://swismappbossa02
200 15.18.15 1913 contracts, http://swismappbossa03
200 15.18.17 67 customer, http://swismappbossa03
200 15.18.18 741 invoices, http://swismappbossa03
200 15.18.30 844 contracts, http://swismappbossa02
200 15.18.31 61 customer, http://swismappbossa02
200 15.18.32 485 invoices, http://swismappbossa02
200 15.25.53 1003 contracts, http://swismappbossa03
200 15.25.54 67 customer, http://swismappbossa03
200 15.25.55 440 invoices, http://swismappbossa03
200 15.26.07 1237 contracts, http://swismappbossa02
200 15.26.08 64 customer, http://swismappbossa02
200 15.26.09 677 invoices, http://swismappbossa02
200 15.26.20 915 contracts, http://swismappbossa01
200 15.26.22 59 customer, http://swismappbossa01
200 15.26.22 591 invoices, http://swismappbossa01



Gruss Stefan

Efraim
27.11.13, 22:13
Ich bin nicht der große Gnuplotter, aber ich sehe fehlende Quotes und 3 benutzte Datenspalten auf nur 2 Achsen, das kann nicht gut gehen. So läuft es, ist aber wohl nicht das, was Du willst:

plot "/tmp/check_output" using 2:3 title "Laufzeit"

Den 3 Methoden customer, contracts und invoices wirst Du mindestens verschiedene Farben zuordnen müssen, sonst wird das nichts mit dem Überblick.


Edit: In den Formatdefinitionen hast Du $S anstatt %S stehen.

Huhn Hur Tu
28.11.13, 12:31
Hi,
danke fuer den Hinweis, damit bin ich jetzt schon einen Schritt weiter
Und mit dem grep kann kann ich nach den Methoden filtern.



plot "< grep -e customer /tmp/mssa_output" using 2:3 title "customer", "< grep contract /tmp/mssa_output" using 2:3 title "contract", "< grep invoice /tmp/mssa_output" using 2:3 title " invoice"
Was jetzt noch fehlt ist das filtern nach den Hosts. Ich habe versucht per Pipe noch ein Grep anzupappen, leider bekomme ich hierbei folgendes



plot "< grep -e customer /tmp/mssa_output" | grep -e using 2:3 title "customer", "< grep contract . . . .


~/tmp$ gnuplot plotter
"plotter", line 11: undefined variable: grep
Gruss Stefan

Huhn Hur Tu
28.11.13, 19:24
Gefunden,


plot "< grep -e customer /tmp/mssa_output" | grep -e using 2:3 title "customer", "< grep contract . . . .

Das Anfuehrungszeichen war falsch gesetzt.

Gruss Stefan