If color is not present then COLORTABLE() prints the available color tables with their index. ArgumentsĪ byte or string referencing a color table or a byte/string array of colors. !NULL is returned if the NULL keyword is set. If COLORTABLE fails to load a color table, then -1 is returned. The COLORTABLE function returns a reference to the NCOLORS array: or if the TRANSPOSE keyword is set. cbar = COLORBAR(TARGET = c1, ORIENTATION = 1, $ POSITION = ) Move the Z Axis to the back. c1 = CONTOUR(dem, $ C_COLOR = ctable, $ N_LEVELS = levels, $ /FILL, $ PLANAR = 0, $ TITLE = 'Santa Monica Mountains') Add the colorbar. Define the color table levels = 10 ctable = COLORTABLE(,], NCOLORS = levels, /TRANSPOSE) Define the data file = FILE_WHICH( 'elevbin.dat') dem = READ_BINARY(file, DATA_DIMS = ) Display the data. The following lines create the graphic shown at the top of this topic. With the COLORTABLE function, you can specify the parameters to create a custom color table or load a system color table with specified parameters.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |