gnuplot:start
Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
gnuplot
Schleifen
- schleife.plt
channel = 0 datafile = 'zeuch.txt' load 'bla.plt'
- bla.plt
set grid y set yrange [30:70] set label sprintf("Channel %g",channel+1) at graph 0.95, 0.1 right f(x)=a*x+b fit f(x) datafile index channel u 2:1 via a,b set xrange [a*30+b:a*70+b] #fit doesn't converge the other way round a=1/a b=-b*a plot datafile index channel using 1:2 title "bla", f(x) pause mouse #weiter bei linker if(MOUSE_KEY==1) channel=channel+1 #zurueck bei rechter if(MOUSE_KEY==3) channel=channel-1 #Ende bei mittlerer if(MOUSE_KEY==2) channel=channel+99 if(channel<21) reread
Zwei verschiedene y Achsen
- zwei_achsen.plt
set y2tics set ytics nomirror set angles degree tstart=9.2 tstop=12.8 g(x)=b fit g(x) data using ($1>tstart && $1<tstop?$1:1/0):(atan(($3-0.007)/($2+0.073))) via b plot data_other using 1:2 axes x1y2 with dots title 'other data', \ data u 1:(atan(($3-0.007)/($2+0.073))) w d t 'data', g(x)
Mehrere Plot Fenster
(in einer Schleife… siehe schleifen)
- mehrere_fenster.plt
plotnr=0 set term x11 plotnr plot bla index plotnr plotnr=plotnr+1
Höhere Auflösung
- Höhere Auflösung
set samples 2000
Zeiten/Datum auf einer Achse verwenden
Histogramm
(Gnuplot übernimmt das Binning!)
- histogramm.plt
binwidth=0.5 bin(x,width)=width*floor(x/width) plot 'data' u (bin($6,binwidth)):(1.0) smooth freq with boxes
Plot Fenster
Befehle
mit h abrufen (zB a → autoscale, r → ruler,…)
Mehrere Plots in ein Fenster
set multiplot layout 4,1
- 4 in y Richtung
- 1 in x Richtung
- danach einfach mehrere plot Befehle…
gnuplot/start.1300368894.txt.gz · Zuletzt geändert: 2011/03/17 14:34 von quirxl