File: ellipse.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 (39 lines) | stat: -rw-r--r-- 858 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
#
# Ethan A Merritt - Feb 2007
# This demo requires support for 'set object ellipse'
#
load "gen-random.inc"

unset key
set xrange [-8:8]
set yrange [-8:8]
set size ratio 1.0
set zeroaxis
set border 0
set xtics axis
set ytics axis
set tics scale 0.5
set format xy ""

set title 'Example of `set object ellipse`'

set object 1 ellipse center 1.5,1.0 size 2.,4. angle 20. front fillstyle empty border -1
set obj 2 ellipse center 1.5, 1  size 6, 12  angle 20 front fs empty bo 3

A = pi/9.
plot $random using (1.5 + $1*cos(A)-2.*$2*sin(A)):(1.0 + $1*sin(A)+2.*$2*cos(A)) with dots

pause -1 "Hit return to continue"

set title 'Example of range-limited axes and tics'

set tics out scale 0.5
set xtics 1.0 border rangelimited nomirror
set ytics 1.0 border rangelimited nomirror
set format xy "%.0f"
set border 3

replot

pause -1 "Hit return to continue"
reset