File: ellipses_style.dem

package info (click to toggle)
gnuplot 5.4.1%2Bdfsg1-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,316 kB
  • sloc: ansic: 85,877; cpp: 7,440; makefile: 2,548; javascript: 2,322; sh: 1,542; lisp: 667; perl: 304; pascal: 191; tcl: 88; python: 46
file content (72 lines) | stat: -rw-r--r-- 1,865 bytes parent folder | download | duplicates (6)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Demo to illustrate the ellipses style

set title "Demonstration of the 'ellipses' plotting style\nTwo-column form: x  y  (default size)"

plot 'ellipses.dat' u 1:2 with ellipses

pause -1 'Hit <cr> to continue'

set title "Three-column form: x  y  major_diameter  (minor diameter is the same)" noenh

plot 'ellipses.dat' u 1:2:3 with ellipses

pause -1 'Hit <cr> to continue'

set title "Four-column form: x  y  major_diameter  minor_diameter" noenh

plot 'ellipses.dat' u 1:2:3:4 with ellipses

pause -1 'Hit <cr> to continue'

set title "Five-column form: x  y  major_diameter  minor_diameter angle" noenh

plot 'ellipses.dat' u 1:2:3:4:5 with ellipses

pause -1 'Hit <cr> to continue'

set title "Six-column form: 6th column variable color (lc variable)"

plot 'ellipses.dat' u 1:2:3:4:5:6 with ellipses lc var

pause -1 'Hit <cr> to continue'

set title "Six-column form: 6th column variable color (lc palette)"

plot 'ellipses.dat' u 1:2:3:4:5:6 with ellipses lc pal

pause -1 'Hit <cr> to continue'

set title "Six-column form: 6th column variable color (lc rgb variable)"

plot 'ellipses.dat' u 1:2:3:4:5:7 with ellipses lc rgb var

pause -1 'Hit <cr> to continue'

set title "Scaling of axes: units xy"
set yr [-15:30]
set xr [-5:15]

plot 'ellipses.dat' u 1:2:3:4:5 with ellipses units xy

pause -1 'Hit <cr> to continue'

set title "Scaling of axes: units xx"

plot 'ellipses.dat' u 1:2:3:4:5 with ellipses units xx

pause -1 'Hit <cr> to continue'

set title "Scaling of axes: units yy"

plot 'ellipses.dat' u 1:2:3:4:5 with ellipses units yy

pause -1 'Hit <cr> to continue'

set title "Now see all three together"

plot 'ellipses.dat' u 1:2:3:4:5 with ellipses units xy title "units xy",\
     '' u 1:2:3:4:5 with ellipses units xx title "units xx",\
     '' u 1:2:3:4:5 with ellipses units yy title "units yy"

pause -1 'Hit <cr> to continue'
reset