gnuplot
 BACK ..
 Erste Schritte mit GNU-Plot
 ===========================
 Installation unter FreeBSD:
 ---------------------------
 cd /usr/ports/math/gnuplot ; make install && make clean
 (2D) ===> plot
 (3D) ===> splot
 ###
 ### interaktiv Mode
 ###
 > gnuplot
 show                          # Anzeige der Einstellungen
 show all                      # zeigt alle Einstellungen an
 help                          # Hilfe
 help set                      # Hilfe
 help set term                 # Hilfe
 help commands                 # Hilfe
 help commands splot           # Hilfe
 help commands plot            # Hilfe
 ### Ausgabe nach X11
 set terminal x11
 ### Ausgabe im PostScript-Format in Datei "out.ps"
 set terminal postscript
 set output "out.ps"
 ### schreiben in "Ausgabe" (2D)
 plot x*y
  Examples:
        plot sin(x)
        plot f(x) = sin(x*a), a = .2, f(x), a = .4, f(x)
        plot [t=1:10] [-pi:pi*2] tan(t)
 ### schreiben in "Ausgabe" (3D)
 splot x*y*z
 #------------------------------------------------------------------------------#
 Beispiel einer Darstellung einer Population mit "plot":
 -------------------------------------------------------
 > vi population.dat
           1965   103
           1970   55
           1975   34
           1980   24
           1985   10
 > gnuplot
 gnuplot> pop(x) = 103*exp((1965-x)/10)
 gnuplot> plot [1960:1990] 'population.dat', pop(x)
 #------------------------------------------------------------------------------#
 Beispiel einer Darstellung einer Population mit "plot":
 -------------------------------------------------------
 vi datafile.dat
           0 0 10
           0 1 10
           0 2 10
           1 0 10
           1 1 5
           1 2 10
           2 0 10
           2 1 1
           2 2 10
           3 0 10
           3 1 0
           3 2 10
 > gnuplot
 gnuplot> splot 'datafile.dat'
 #------------------------------------------------------------------------------#
 ###
 ### batch Mode
 ###
 ### Ausgabe im PNG-Format auf die Datei "plotout.png" einstellen
 > echo 'set terminal png' >> .gnuplot
 > echo 'set output "plotout.png"' >> .gnuplot
 ### Input-Datei erstellen
 > echo "splot f(x) = sin(x*a), a = .2, f(x), a = .4, f(x)" > gnuplot-input
 ### gnuplot im Batch-Mode starten
 > gnuplot gnuplot-input
 "G N U P L O T Version 3.7 patchlevel 2" kann folgende Ausgabeformate:
 ----------------------------------------------------------------------
 aed512
 aed767
 aifm
 bitgraph
 cgm
 corel
 dumb
 dxf
 eepic
 emf
 emtex
 epslatex
 epson-180dpi
 epson-60dpi
 epson-lx800
 fig
 gpic
 hp2623a
 hp2648
 hp500c
 hpdj
 hpgl
 hpljii
 hppj
 imagen
 kc-tek40xx
 km-tek40xx
 latex
 mf
 mif
 mp
 nec-cp6
 okidata
 pbm
 pcl5
 pdf
 png
 postscript
 pslatex
 pstex
 pstricks
 qms
 regis
 selanar
 starc
 svg
 table
 tandy-60dpi
 tek40xx
 tek410x
 texdraw
 tgif
 tkcanvas
 tpic
 vttek
 x11
 xlib
   [IMG]
 
/home/http/wiki/data/pages/os4_software_gnuplot.txt · Zuletzt geändert: 2010-05-22 19:03:58 (Externe Bearbeitung)
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki