File: ellipses_style.dem

package info (click to toggle)
gnuplot 4.6.0-8
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 16,920 kB
  • sloc: ansic: 84,661; cpp: 6,631; lisp: 5,013; makefile: 2,129; sh: 1,092; objc: 647; asm: 539; perl: 298; awk: 235; pascal: 194; csh: 179; tcl: 88; python: 46
file content (72 lines) | stat: -rw-r--r-- 1,842 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)"

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"

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"

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'