Ignore:
Timestamp:
08/07/08 11:32:02 (16 years ago)
Author:
pinsard
Message:

improvements of headers (alignments of IDL prompt in examples)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Colors/getcolor.pro

    r327 r371  
    114114; 
    115115; @examples 
     116; 
    116117; To load a yellow color in color index 100 and plot in yellow, type: 
    117118; 
    118 ;      IDL> yellow = GETCOLOR('yellow', 100) 
    119 ;      IDL> PLOT, data, COLOR=yellow 
     119;   IDL> yellow = GETCOLOR('yellow', 100) 
     120;   IDL> PLOT, data, COLOR=yellow 
    120121; 
    121122; or, 
    122123; 
    123 ;      IDL> PLOT, data, COLOR=GETCOLOR('yellow', 100) 
     124;   IDL> PLOT, data, COLOR=GETCOLOR('yellow', 100) 
    124125; 
    125126; To do the same thing on a 24-bit color system with decomposed color on, type: 
    126127; 
    127 ;      IDL> PLOT, data, COLOR=GETCOLOR('yellow', /TRUE) 
     128;   IDL> PLOT, data, COLOR=GETCOLOR('yellow', /TRUE) 
    128129; 
    129130; or in IDL 5.2 and higher, 
    130131; 
    131 ;      IDL> DEVICE, Decomposed=1 
    132 ;      IDL> PLOT, data, COLOR=GETCOLOR('yellow') 
     132;   IDL> DEVICE, Decomposed=1 
     133;   IDL> PLOT, data, COLOR=GETCOLOR('yellow') 
    133134; 
    134135; To load all 16 colors into the current color table, starting at 
    135136; color index 200, type: 
    136137; 
    137 ;      IDL> TVLCT, GETCOLOR(), 200 
     138;   IDL> TVLCT, GETCOLOR(), 200 
    138139; 
    139140; To add the color names to a list widget: 
    140141; 
    141 ;      IDL> listID = Widget_List(baseID, Value=GetColor(/Names), YSize=16) 
     142;   IDL> listID = Widget_List(baseID, Value=GetColor(/Names), YSize=16) 
    142143; 
    143144; To load all 16 colors and have the color indices returned in a structure: 
    144145; 
    145 ;      IDL> DEVICE, Decomposed=0 
    146 ;      IDL> colors = GetColor(/Load, Start=1) 
    147 ;      IDL> HELP, colors, /Structure 
    148 ;     PLOT, data, COLOR=colors.yellow 
     146;   IDL> DEVICE, Decomposed=0 
     147;   IDL> colors = GetColor(/Load, Start=1) 
     148;   IDL> HELP, colors, /Structure 
     149;   IDL> PLOT, data, COLOR=colors.yellow 
    149150; 
    150151; To get the direct color values as 24-bit integers in color structure fields: 
    151152; 
    152 ;      IDL> DEVICE, Decomposed=1 
    153 ;      IDL> colors = GetColor(/Load) 
    154 ;      IDL> PLOT, data, COLOR=colors.yellow 
     153;   IDL> DEVICE, Decomposed=1 
     154;   IDL> colors = GetColor(/Load) 
     155;   IDL> PLOT, data, COLOR=colors.yellow 
    155156; 
    156157; Note that the START keyword value is ignored if on a 24-bit device, 
     
    158159; writing code like this: 
    159160; 
    160 ;      IDL> colors = GetColor(/Load) 
    161 ;      IDL> PLOT, data, Color=colors.yellow;           IDL> DEVICE, Decomposed=0 
    162 ;      IDL> colors = GetColor(/Load, Start=1) 
    163 ;      IDL> HELP, colors, /Structure 
    164 ;     PLOT, data, COLOR=colors.yellow 
     161;   IDL> colors = GetColor(/Load) 
     162;   IDL> PLOT, data, Color=colors.yellow;           IDL> DEVICE, Decomposed=0 
     163;   IDL> colors = GetColor(/Load, Start=1) 
     164;   IDL> HELP, colors, /Structure 
     165;   IDL> PLOT, data, COLOR=colors.yellow 
    165166; 
    166167; To get the direct color values as 24-bit integers in color structure fields: 
    167168; 
    168 ;      IDL> DEVICE, Decomposed=1 
    169 ;      IDL> colors = GetColor(/Load) 
    170 ;      IDL> PLOT, data, COLOR=colors.yellow 
     169;   IDL> DEVICE, Decomposed=1 
     170;   IDL> colors = GetColor(/Load) 
     171;   IDL> PLOT, data, COLOR=colors.yellow 
    171172; 
    172173; Note that the START keyword value is ignored if on a 24-bit device, 
     
    174175; writing code like this: 
    175176; 
    176 ;      IDL> colors = GetColor(/Load) 
    177 ;      IDL> PLOT, data, Color=colors.yellow 
     177;   IDL> colors = GetColor(/Load) 
     178;   IDL> PLOT, data, Color=colors.yellow 
    178179; 
    179180; @history 
Note: See TracChangeset for help on using the changeset viewer.