source: trunk/procs/overlay_type.pro @ 170

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

fill uses paragraph in header with used commons

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