ColorMaps QML Type

Utility functions for color maps. More...

Import Statement: import QuickGraphLib

Methods

  • string colorMapName(enumeration colorMapName)
  • list<color> colors(enumeration colorMapName)

Detailed Description

See also ImageView, Builtin color maps, and Color mapped images.

Method Documentation

string colorMapName(enumeration colorMapName)

Returns the name of the color map colorMapName.

See also ColorMaps::colors.


list<color> colors(enumeration colorMapName)

Returns the list of colors that are used in colorMapName. These colors are equally spaced over the range of values.

colorMapName can take one of the following options:

ConstantDescription
ColorMaps.CividisMonotonically increasing colormap (blue/brown/yellow)
ColorMaps.GrayscaleMonotonically increasing colormap (black/white)
ColorMaps.InfernoMonotonically increasing colormap (black/red/yellow)
ColorMaps.MagmaMonotonically increasing colormap (blue/purple/red/yellow)
ColorMaps.PlasmaMonotonically increasing colormap (black/purple/red/yellow)
ColorMaps.TurboMultihue colormap (blue/green/yellow/red)
ColorMaps.TwilightCylical colormap (white/blue/black/red/white)
ColorMaps.TwilightShiftedCylical colormap (black/blue/white/red/black)
ColorMaps.ViridisMonotonically increasing colormap (purple/green/yellow)

More information about these colormaps can be found at in the matplotlib documentation.