source: trunk/procs/overlay_type.pro @ 162

Last change on this file since 162 was 162, checked in by pinsard, 15 years ago

start to modify unformal header to idldoc 2. header syntax

File size: 1.2 KB
Line 
1;+
2;
3; overlay color line types COL1D=col1d,STY1D=sty1d
4;
5; @version
6; $Id$
7;
8;-
9
10FUNCTION overlay_type, iover, dimplot
11
12@com_eg
13
14; overlay switch
15
16   overc = ',ov1d='+strtrim(string((iover-1) < 1), 2)
17
18   IF iover EQ 1 THEN overc = ',ov1d=0'
19
20; overlay color
21
22   colov = ''
23
24   IF dimplot EQ 1 THEN index_over = index_over + 1
25   IF index_over EQ 1 THEN BEGIN
26 ;     index_over = 2
27 ;     make palette
28      red =   [0, 255,   0,   0, 0, 255]
29      green = [0,   0, 255,   0, 0,   0]
30      blue =  [0,   0,   0, 255, 0, 255]
31      red = [0, red, red, red, red, red, red, red ]
32      green = [0, green, green, green, green, green, green, green]
33      blue = [0, blue, blue, blue, blue, blue, blue, blue ]
34      tvlct, red, green, blue
35   ENDIF
36
37   IF pal_type EQ 'col' AND index_over GE 1 THEN colov = ',COLOR='+string(line_color(index_over-1))
38
39; overlay thickness
40
41   line_thick_txt = ', thick='+string(line_thick(iover-1))
42
43; overlay style
44
45   line_style_txt = ', linestyle='+string(line_style(iover-1)-1)
46
47; result
48
49   IF dimplot EQ 1 THEN overc = overc+colov+line_thick_txt+line_style_txt
50;   IF dimplot EQ 2 THEN overc = overc+line_thick_txt+line_style_txt
51   IF dimplot EQ 2 THEN overc = overc+line_style_txt
52
53   return, overc
54END
Note: See TracBrowser for help on using the repository browser.