[162] | 1 | ;+ |
---|
[2] | 2 | ; |
---|
| 3 | ; overlay color line types COL1D=col1d,STY1D=sty1d |
---|
| 4 | ; |
---|
[170] | 5 | ; @uses |
---|
| 6 | ; <propost_it>com_eg</propost_it> |
---|
| 7 | ; |
---|
[162] | 8 | ; @version |
---|
| 9 | ; $Id$ |
---|
| 10 | ; |
---|
| 11 | ;- |
---|
[2] | 12 | FUNCTION overlay_type, iover, dimplot |
---|
[165] | 13 | ; |
---|
[169] | 14 | compile_opt idl2, strictarrsubs |
---|
| 15 | ; |
---|
[2] | 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 |
---|
[165] | 32 | red = [0, 255, 0, 0, 0, 255] |
---|
[2] | 33 | green = [0, 0, 255, 0, 0, 0] |
---|
[165] | 34 | blue = [0, 0, 0, 255, 0, 255] |
---|
[2] | 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 | |
---|
[29] | 49 | line_style_txt = ', linestyle='+string(line_style(iover-1)-1) |
---|
[2] | 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 |
---|
| 58 | END |
---|