Top: Table of contents
Up: Table of contents chapter 8
Next: 8.6 Polar coordinates
Previous: 8.4 User-defined variable

8.5 2D parametric function

set parametric
set samples 200
set trange [0.00001:3]
plot t,log(t),-t,log(t),sin(t),t**2,-sin(t),t**2
set parametric
set samples 200
set xrange [-5:5]
set yrange [-5:5]
plot tan(t),t,t,tan(t)

图 21: Example : 2D parametric functions

GNUPLOT 提供以参数式作为描述图形的方式。在 2D 中,是由一对参数式决定所 绘的图形 (即 x=f(t), y=g(t)),此时以 t 作为变数。此图第二部份则以设定 x 与 y 的范围来控制显示范围。



Top: Table of contents Next: 8.6 Polar coordinates