gnuplot:start
Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
gnuplot
- Schleife
channel = 0 datafile = 'zeuch.txt' load '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 Achsen
set y2tics 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 Fenster
plotnr=0 set term x11 plotnr plot bla index plotnr plotnr=plotnr+1
- Höhere Auflösung
set samples 2000
Plot Fenster
Befehle
mit h abrufen (zB a → autoscale, r → ruler,…)
gnuplot/start.1295446575.txt.gz · Zuletzt geändert: 2011/01/19 15:16 von quirxl