gnuplot patch to add POV-Ray and VRML terminals

patch file

Following patch file is for adding new two terminals to gnuplot:

patch to add povray and vrml terminals to gnuplot 4.0
README

demo plotting by povray terminal

set terminal povray
set xlabel "x data"
set ylabel "Y-data"
set zlabel "height"
set samples 20
set isosamples 20
set out "povray-demo1.pov"
splot x*y with points, x*10 with points ps 1.5, \
 x-60 with d, -2*x-120 with lines
set out
! povray +FC +A0.1 +I povray-demo1.pov


Click here for the generated POV-Ray scene file



set terminal povray
set parametric
set samples 50
set isosamples 50
set view 60,30
set urange [-3:3]
set vrange [-3:3]
set out "tmp.pov"
splot u**2-v**2,2*u*v,u w d lt 3
set out
! sed 's/PinkAlabaster/pigment{checker White,Gray scale 10}/' \
  tmp.pov > povray-demo2.pov
! povray +FC +A0.1 +I povray-demo2.pov


Click here for the generated POV-Ray scene file



set terminal povray
set view 70,305
set out "tmp.pov"
# klein.dat is one of the gnuplot demo data
splot "klein.dat" with d
set out
! sed 's/Red/Red filter 0.5/' tmp.pov > povray-demo3.pov 
! povray +FC +A0.1 +I povray-demo3.pov


Click here for the generated POV-Ray scene file



set terminal povray
set samples 30
set isosamples 30
set xrange [-10:10]
set yrange [-10:10]
set view 75, 30
set xlabel "X axis"
set ylabel "Y axis"
set zlabel "Z axis"
# 'dots' mean 'polygons' for povray term.
set style function dots
set out "povray-demo4.pov"
splot x**2+y**2, x**2-y**2, x*y
set out
! povray +FC +A0.1 +I povray-demo4.pov


Click here for the generated POV-Ray scene file



set terminal povray
set dummy u,v
set samples 100
set isosamples 100
set zrange [-1:1]
sinc(u,v) = sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)
set out "tmp.pov"
splot [-20:20] [-20:20] sinc(u,v) with dots, \
  "<echo '15 -5 1'" with points pt 99 ps 7
set out
! sed  's/[/][/]color_definition/#declare Pcolor99 = material{texture{pigment{color SkyBlue}finish{phong 0.8 ambient 0.05}}}/' \
  tmp.pov > povray-demo5.pov
! povray +A0.1 +FC +I povray-demo5.pov


Click here for the generated POV-Ray scene file



set terminal povray
set parametric
set view 70,20
set style data linesp
set out "povray-demo6.pov"
# glass.dat is one of the gnuplot demo data
splot "glass.dat" using 3:2:1 lw 1.5 ps 2
set out
! povray +A0.1 +FC +I povray-demo6.pov


Click here for the generated POV-Ray scene file



set terminal povray
set xrange[-50:250]
set yrange[-0.025:0.025]
set zrange[0.2:1.2]
set xlabel "delta"
set ylabel "omega"
set zlabel "eq'"
set style data points
set out "tmp.pov"
cd "dat"
splot \
  "uep-ef116Pm08.dat" ps 4,\
  "sep-ef116Pm08.dat" pt 3 ps 4,\
  "orbit-TdoD=7.61.dat" pt 2 ps 2,\
  "orbit-TdoD=7.61-p10.dat" pt 7 ps 2.2,\
  "som-TdoD=7.61-1.dat" pt 5
set out
cd ".."
! sed 's/SkyBlue/Silver/' tmp.pov > povray-demo7.pov
! povray +A0.1 +FC +I povray-demo7.pov


Click here for the generated POV-Ray scene file and here for the plotted data



demo animation with povray terminal images


Click here for larger image (5.6MB).
Perl script to generate the gnuplot script and Makefile.




Click here for larger image (5.5MB).
Perl script to generate the gnuplot script and Makefile.



demo plotting by vrml terminal


KITA Toshihiro
http://t-kita.net/