![]() ![]() ![]() The new color table that you defined is now loaded into the IDL session memory, but not yet added to the color table file. H.) Click on the "Done" button to properly dismiss XPALETTE. Again, to see the change to the intermediate color index elements, click on the Redraw button.įigure 1: XPALETTE with custom red-white-blue color table defined. G.) With color index 255 still selected, click on Interpolate. Then to see the change to the intermediate color index elements, click on the Redraw button.Į.) Then, with the color index 128 selected, click on the Set Mark button.į.) Next click on or select color index 255, and then reposition the slider to Red = 0, Green = 0 and Blue = 255. Consequently, one should verify the assigned color table indices in future versions of IDL, before choosing a new color table index to add to the color table file.)ģ.) Launch the XPALETTE tool, which can be used to define a new color table, by issuing the IDL command:Ĥ.) In the XPALETTE GUI, load a predefined color table to modify (by clicking on the Predefined button to launch the XLOADCT tool to select a color table dismiss XLOADCT after selecting a color table), and/or simply begin modifying the color elements of the currently loaded color table, to define your new color table.įor example, to create your own red-white-blue gradient color table, do the following:Ī.) Select color index 0, and then reposition the sliders labeled "Red", "Green" and "Blue" such that Red has the value 255, Green is 0 and Blue is 0.ī.) Then with color index 0 still selected, click on the Set Mark button.Ĭ.) Next click on or select color index 128, and then reposition the sliders such that Red is 255, Green is 255 and Blue is 255.ĭ.) With color index 128 still selected, click on Interpolate. (Note that additional predefined color tables may be added to the default IDL color table file in future versions of IDL. ![]() Then for this example, the next available color table index is 75. In this case, the highest index of the default predefined color tables is 74. For example:ģ- RED TEMPERATURE 28- Hardcandy 53- CB-GreensĤ- BLUE/GREEN/RED/YE 29- Nature 54- CB-GreysĨ- GREEN/WHITE LINEA 33- Blue-Red 58- CB-PuBuGnĩ- GRN/WHT EXPONENTI 34- Rainbow 59- CB-PuRdġ0- GREEN-PINK 35- Blue Waves 60- CB-Purplesġ4- STEPS 39- Rainbow white 64- CB-YlGnBuġ5- STERN SPECIAL 40- Rainbow black 65- CB-YlOrBrġ7- Blue - Pastel - R 42- CB-Dark2 67- CB-PiYGġ9- Hue Sat Lightness 44- CB-Pastel1 69- CB-PuOrĢ0- Hue Sat Lightness 45- CB-Pastel2 70- CB-RdBuĢ1- Hue Sat Value 1 46- CB-Set1 71- CB-RdGyĢ2- Hue Sat Value 2 47- CB-Set2 72- CB-RdYlBuĢ3- Purple-Red Stri 48- CB-Set3 73- CB-RdYlGn After making note of the highest index number, enter any of the color table indexes to return to the IDL> command prompt. This produces a numbered listing of the predefined color tables. One way to do this is to issue the IDL "LOADCT" command without any parameters. The following steps illustrates how create a modified version of the standard IDL color table list file that adds a new custom "red-white-blue" color table entry (with a fully saturated red and blue color elements on the ends) to the list of color tables.ġ.) Prepare the IDL direct graphics environment to use a loaded color table by issuing the command:Ģ.) Next, assuming you would like to add a new predefined color table, rather than modify an existing predefined color table in your IDL color table file, determine what is the first unassigned color table index in the current color table file. You could save a renamed copy of this file in your home directory, for example: For example, for IDL 8.3 on Windows 7 in the default location, the IDL color table file is located at:Ĭ:\Program Files\exelis\idl83\resource\colors\colors1.tbl ![]() In that case, in preparation for modifying your color table file, you can copy your original IDL color table file, which is located in your IDL installation under the /resource/colors/ subdirectory, to a convenient writable location such as your home directory, and then proceed to modify this copy of the file, following the steps below. In any case, you may wish to preserve your original IDL color table file, and instead make a copy of this file to modify, using the steps in this help article. then your IDL session launched as a regular user may not have adequate permissions to modify the default color table file provided with your IDL installation. Note: If your IDL installation has been installed in a public directory location, such as This help article illustrates how an IDL user can add a new predefined color table to their IDL color table file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |