Пример создания анимации в системе gnuplot
Приведённый ниже пример демонстрирует две возможности gnuplot:
- создание динамических иллюстраций;
- встраивание в последовательность команд gnuplot визуализируемых
данных.
set xrange [-1:1]
set yrange [-1:1]
plot '-' with line
0 0
0 1
e
pause 1.0
plot '-' with line
0 0
0.104528 0.994522
e
pause 1.0
plot '-' with line
0 0
0.207912 0.978148
e
pause 1.0
plot '-' with line
0 0
0.309017 0.951057
e
pause 1.0
plot '-' with line
0 0
0.406737 0.913545
e
pause 1.0
plot '-' with line
0 0
0.5 0.866025
e
pause 1.0
plot '-' with line
0 0
0.587785 0.809017
e
pause 1.0
plot '-' with line
0 0
0.669131 0.743145
e
pause 1.0
plot '-' with line
0 0
0.743145 0.669131
e
pause 1.0
plot '-' with line
0 0
0.809017 0.587785
e
pause 1.0
plot '-' with line
0 0
0.866025 0.5
e
pause 1.0
plot '-' with line
0 0
0.913545 0.406737
e
pause 1.0
plot '-' with line
0 0
0.951057 0.309017
e
pause 1.0
plot '-' with line
0 0
0.978148 0.207912
e
pause 1.0
plot '-' with line
0 0
0.994522 0.104528
e
pause 1.0
plot '-' with line
0 0
1 0