-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcircle.pro
35 lines (32 loc) · 858 Bytes
/
circle.pro
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
pro circle, radius = radius, color = color, fill = fill, thick = thick
;+
; NAME:
; CIRCLE
; PURPOSE:
; To make the plotting symbol a circle using USERSYM (psym = 8)
;
; CALLING SEQUENCE:
; CIRCLE [, radius = radius, color = color, fill = fill, thick = thick]
;
; INPUTS:
; None
;
; KEYWORD PARAMETERS:
; RADIUS -- Radius of the circle in character sizes.
; COLOR -- Color to draw the symbol in (or to FILL with)
; FILL -- Fill the circle
; THICK -- Thickness of the border to draw.
; OUTPUTS:
;
;
; MODIFICATION HISTORY:
; Documented --
; Wed Nov 21 11:27:36 2001, Erik Rosolowsky <eros@cosmic>
;-
if n_elements(thick) eq 0 then thick = !p.thick
if not keyword_set(radius) then radius = 1
phi = findgen(41)/40*!pi*2
usersym, radius*cos(phi), radius*sin(phi), fill = fill, thick = thick, $
color = color
return
end