Back to demo index

gnuplot demo script: animation.dem

generated by animation.gp on Tue Feb 7 11:31:05 2023
gnuplot version gnuplot 6.1
#
# Spinning globe animation (webp or gif encoding)
#
# Simplified code;

set term webp animate delay 100 size 300,300
set output 'world.webp'
#
do for [ang = 0:355:5] {
    xrot = 60
    zrot = (720 - ang) %360
    set view xrot, zrot, 1.92, 1 

    splot cos(u)*cos(v),cos(u)*sin(v),sin(u) with lines lc "blue", \
          'world.dat' with polygons fs transparent solid 0.5 fc "olive"
}
unset output