File: clip_radial.dem

package info (click to toggle)
gnuplot 6.0.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,940 kB
  • sloc: ansic: 95,319; cpp: 7,590; makefile: 2,470; javascript: 2,328; sh: 1,531; lisp: 664; perl: 304; pascal: 191; tcl: 88; python: 46
file content (44 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Test new code to clip lines in polar plots against the
# bounding circle set by rrange [0:MAX]
#
# Create test data
reset
set style data lines
set sample 50
set table $DATA
plot '+' using (360.*rand(0)) : (rand(0))
unset table
#
unset clip radial
set dummy t, y
set angles degrees
set raxis
set polar
set rrange [  0.00 : 0.60 ] noreverse nowriteback
set xrange [ -1.00 : 1.00 ] noreverse nowriteback
set yrange [ -1.00 : 1.00 ] noreverse nowriteback
set border polar
set size square
#
set multiplot
set clip one
set clip two
unset clip radial
unset polar
plot $DATA using ($2*cos($1)):($2*sin($1)) lw 4 lc "yellow" notitle
set polar
set rrange [  0.00 : 0.60 ] noreverse nowriteback
set xrange [ -1.00 : 1.00 ] noreverse nowriteback
set yrange [ -1.00 : 1.00 ] noreverse nowriteback
plot $DATA using 1:2:(sprintf("%d",$0)) with labels notitle
set clip radial
set key samplen 2
set label 1 "set clip radial" right at graph 0.9, graph 0.95
plot $DATA lt 3 title "set clip 2" at graph 0.9, graph 0.90
unset clip two
plot $DATA lt 1 title "unset clip 2" at graph 0.9, graph 0.85
unset multi
#
pause -1 "<cr> to continue"
reset