API documentation for visualization library

Michael Galloy

single page | use frames     summary     class     fields     routine details     file attributes



direct graphics

includes main-level program

Load a color table by index. This routine is directly analogous to LOADCT, but with more color table options.

The default color tables:

The Brewer color tables are split into three types: sequential, diverging, and qualitative. Sequential color tables are simple sequences from white to a given color. The diverging color tables have white in the middle of the color table and progress in each direction towards two different colors. The qualitative color tables contain only a few colors for labeling purposes. The qualitative color tables are expanded to take up the same space of the other color tables in the graphic below:

The GMT color tables:

The Yorick/Gist color tables:

The matplotlib color tables:

Author information


Color tables accessed with VIS_LOADCT and VIS_XLOADCT are provided courtesy of Brewer, Cynthia A., 2007. http://www.ColorBrewer.org, accessed 20 October 2007.

Apache-Style Software License for ColorBrewer software and ColorBrewer Color Schemes

Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State University.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

top vis_loadct

vis_loadct [, table] [, file=string] [, /brewer] [, /gmt] [, /mpl] [, /gist] [, /chaco] [, /vis] [, rgb_table=lonarr(ncolors, 2)] [, /reverse] [, /show_tables] [, cpt_filename=string] [, _ref_extra=keyword]


table in optional type=long

table number, 0-40 if using default color table file, 0-34 for Brewer color tables, 0-6 for the Yorick/Gist color tables, or 0-15 for the matplotlib color tables


file in optional type=string default=colors.tbl

filename of color table file; this is present to make VIS_LOADCT completely implement LOADCT's interface, it would normally not be used

brewer in optional type=boolean

set to use the Brewer color tables

gmt in optional type=boolean

set to use the GMT color tables

mpl in optional type=boolean

set to use the matplotlib color tables

gist in optional type=boolean

set to use the Gist/Yorick color tables

chaco in optional type=boolean

set to use the Chaco color tables

vis in optional type=boolean

set to use the VIS library color tables

rgb_table out optional type=lonarr(ncolors, 2)

set to a named variable to retrieve the color table

reverse in optional type=boolean

set to reverse color table

show_tables in optional type=boolean

set to print a listing of the available color tables

cpt_filename in optional type=string

filename of .cpt file to load a color table from; the .cpt filename extension is optional; the filename given can be absolute, relative from the current working directory, or relative from the cpt-city directory in the VIS library; see cptcity_catalog.idldoc for a listing of the .cpt files provided with the VIS library

_ref_extra in out optional type=keyword

keywords to LOADCT

File attributes

Modification date: Fri Mar 4 16:47:13 2011
Lines: 267
Docformat: rst rst