Top: Table of contents
Up: Table of contents chapter 8
Next: 8.7 Mapping
Previous: 8.5 2D parametric function

8.6 Polar coordinates

set noborder
set clip
set polar
set samples 160
set xrange [0:12*pi]
plot 2*x
set noborder
set clip
set polar
butterfly(x)=exp(cos(x))-2*cos(4*x)+sin(x/12)**5
set samples 800
set title "Butterfly"
set nokey
plot butterfly(x)

图 22: Example : plotting on polar coordinate

GNUPLOT 提供在极座标中绘图的环境。此时以 x 做为变数代表 angle, 以径度量做为单位 (2*PI 为一圆周),若输入 set angle degrees , 则改为度度量 (360度为一圆周)。输入 set noborder 为不将四周的 方框绘出。



Top: Table of contents Next: 8.7 Mapping