On Tuesday 06 October 2009 22:32:54 Stefan Majewsky wrote:
> Am Dienstag 06 Oktober 2009 19:48:53 schrieb Bernhard Schiffner:
> > Kann man daraus relativ einfach ein (gnuplot) Histogram mit n (=20?)
> >  Klassen machen?
>
> Mit gnuplot kenne ich mich nicht aus, aber qtiplot kann das ganz gut. Bei
> Bedarf kann ich dir weitere Informationen zur genauen Bedienung geben.
>
> Gruß
> Stefan

Danke für den Tip. Es downloaded und baut gerade.

Bis dahin meine Erkenntnisse bei Gnuplot.
Nachteil: als fester y-Wert zum Zusammenzählen wird hier die Funktion(1) 
verwendet.

Damit klappt 
set logscale y
aber leider nicht mehr :-(

Bernhard
---------------------

reset

set term gif size 512, 512
set output "result_both_all.gif"
#set output "result_both_detail.gif"

xlow =   0
xhigh=   0.030
bins =  30

# Bins width
width = (xhigh-xlow) / bins
#
# function to fit a certain x into a bin (a la round)
bin_1(x) = ((width)*floor(x/width))+(width*7/16)
bin_2(x) = ((width)*floor(x/width))+(width*9/16)

set xrange [xlow:xhigh]
set xtics xlow, 5*width, xhigh
set mxtics 5
set format x "%5.3f"
set xlabel "s"

set yrange [*:*]
#set yrange [0:10]
set format y "%3.0f"
set ylabel "Events"

set grid mxtics xtics ytics

# here           (bin_1($1)) calcutates a digitized x-value, used in "smooth 
frequency"
#                           :(1) is a fixed (y-)value used for summing up
plot \
"result_o" using (bin_1($1)):(1) title "SCHED_OTHER" smooth frequency with 
impulses, \
"result_f" using (bin_2($1)):(1) title "SCHED_FIFO"  smooth frequency with 
impulses


_______________________________________________
Lug-dd maillist  -  [email protected]
https://ssl.schlittermann.de/mailman/listinfo/lug-dd

Antwort per Email an