mglib

Personal IDL library for M. Galloy

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

vis/color/

mggrpalette__define.pro

object graphics


Subclass of IDLgrPalette with more color table choices.

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

Copyright

Color tables accessed with MG_LOADCT and MG_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:

http://www.apache.org/licenses/LICENSE-2.0
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.

Class description for mggrpalette

Inheritance

Routines

Routines from mggrpalette__define.pro

mggrpalette::loadCT [, tableNum] [, file=string] [, cpt_filename=string] [, /brewer] [, /gmt] [, /mpl] [, /gist] [, /chaco] [, /mg] [, /reverse]

Load a Brewer color table by index.

mggrpalette__define

Define instance variables.

Routine details

top mggrpalette::loadCT

mggrpalette::loadCT [, tableNum] [, file=string] [, cpt_filename=string] [, /brewer] [, /gmt] [, /mpl] [, /gist] [, /chaco] [, /mg] [, /reverse]

Load a Brewer color table by index.

Parameters

tableNum 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

Keywords

file in optional type=string default=colors.tbl

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

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 MG library

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

mg in optional type=boolean

set to use the MG library color tables

reverse in optional type=boolean

set to reverse color table

top mggrpalette__define

mggrpalette__define

Define instance variables.

File attributes

Modification date: Wed May 14 15:07:15 2014
Lines: 45
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.