Schrift
Wiki:Tipp zum Debugging: use Data::Dumper; local $Data::Dumper::Useqq = 1; print Dumper \@var;
[thread]12620[/thread]

output von gnuplot speichern (Seite 2)



<< |< 1 2 >| >> 17 Einträge, 2 Seiten
topeg
 2008-10-12 13:38
#115408 #115408
User since
2006-07-10
2611 Artikel
BenutzerIn

user image
Ach ja. Wo hast du das "set terminal" und "set output" gesetzt vor dem "plot" oder danach? Davor ist der der richtige Ort.
johnh
 2008-10-12 13:46
#115409 #115409
User since
2008-10-05
23 Artikel
BenutzerIn
[default_avatar]
Ich kann schon mein Gnuplot script ausführen. Wenn ich in Gnuplot mein script mit "load Packetloss.txt" aufrufe bekomme ich schon meine Grafik angezeigt.

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set grid nopolar
set size 0.8,0.6
set grid xtics nomxtics ytics nomytics noztics nomztics \
nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics
set grid layerdefault linetype 0 linewidth 1.000, linetype 0 linewidth 1.000
unset logscale
set autoscale y
set xlabel "Time(sec)" font "Arial,12"
set ylabel "verlust in %" font "Arial, 12"
set ytics ( 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0)
set title "Packet Loss" font "Arial,12"
set yrange [ 0.000 : 4.000 ] #noreverse nowriteback

plot 'plot.dat' with impulses lt 3 lw 2 ti "Packet Loss"
set terminal png
set output "| cat -"
#set output "Packetloss2.png"
#set terminal png
#replot


an dem script sollte es nicht liegen...
johnh
 2008-10-12 13:54
#115410 #115410
User since
2008-10-05
23 Artikel
BenutzerIn
[default_avatar]
Auch das hat nichts gebracht...

Aber folgendes: Ich habe in meinem Gnuplot Ordner 3 Varianten von Gnuplot aufgeführt, diese sind:

-pgnuplot (das was ich in Perl angegeben hab)
-wgnuplot
-wgnuplot_pipes

Ich probiere es mit den anderen mal aus...
topeg
 2008-10-12 13:58
#115411 #115411
User since
2006-07-10
2611 Artikel
BenutzerIn

user image
Doch es liegt am GnuplotScript.
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set grid nopolar
set size 0.8,0.6
set grid xtics nomxtics ytics nomytics noztics nomztics \
nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics
set grid layerdefault linetype 0 linewidth 1.000, linetype 0 linewidth 1.000
unset logscale
set autoscale y
set xlabel "Time(sec)" font "Arial,12"
set ylabel "verlust in %" font "Arial, 12"
set ytics ( 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0)
set title "Packet Loss" font "Arial,12"
set yrange [ 0.000 : 4.000 ] #noreverse nowriteback

set terminal png
set output "packageloss.png"

plot 'plot.dat' with impulses lt 3 lw 2 ti "Packet Loss"

#set output "Packetloss2.png"
#set terminal png
#replot


Das erstellt ein bild "packageloss.png" schau mal ob es da ist, nachdem du das Prgramm ausgeführt hast.
existiert auch die Datei "plot.dat" mit den nötigen Werten?
topeg
 2008-10-12 14:01
#115412 #115412
User since
2006-07-10
2611 Artikel
BenutzerIn

user image
So langsam verliere ich den Überblick. was steht bitte "-pgnuplot" und "-wgnuplot" und "-wgnuplot_pipes" (warum das "-" davor?)
johnh
 2008-10-12 14:24
#115413 #115413
User since
2008-10-05
23 Artikel
BenutzerIn
[default_avatar]
Nein..

die Zeichen "-" habe ich selbst eingefügt...

Es klappt jetzt...
Ich hatte "replot" auskommentiert und da war das problem...

Topeg vielen vielen vielen Danke...
Hast mir wirklich sehr geholfen....Kannst Du mir was empfehlen wo ich so das mit pipes und so nachlesen kann ?

Echt cool von dir...
johnh
 2008-10-12 14:59
#115415 #115415
User since
2008-10-05
23 Artikel
BenutzerIn
[default_avatar]
Ich hätte aber noch ne frage...

wie kann ich die Daten die geplottet werden sollen dynamisch eingeben ? Kann ich in die pipe mehrere parameter angeben ?
<< |< 1 2 >| >> 17 Einträge, 2 Seiten



View all threads created 2008-10-12 02:31.