【Gnuplot】【備忘録】球面上を大円を描いて移動する点のgifの作成方法
何かと簡単に図が描けるGnuplotは、非常に便利な反面機能が多いので、試行錯誤しながら覚えていく必要がある。
今回は、球面を描いて、球面状を大円を描いて移動する点を描写するグラフのプログラムを作成した。
わからなくなったときに見直す用なので特に説明無し。
sphere.gp
#!/usr/bin/env gnuplot -dc -persist
set term gif animate optimize delay 5 size 960,720
set output 'sphere.gif'
set parametric
set view equal xyz
#set isosample 20,20
#set sample 20
set urange [0:2*pi]
set vrange [0:2*pi]
omega = pi/1000
do for [it = 1: 1000] {
splot cos(v)*cos(u), cos(v)*sin(u), sin(v)
set label 1 point pt 7 ps 2 at cos(pi)*cos(omega*it), cos(pi)*sin(omega*it), sin(pi) # このプログラムの一番の特徴。ポイントを球面に沿って移動させている。
}
set output
Author And Source
この問題について(【Gnuplot】【備忘録】球面上を大円を描いて移動する点のgifの作成方法), 我々は、より多くの情報をここで見つけました https://qiita.com/iHdkz/items/cd83e3385b961c56ce8b著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .