Skip to content

Instantly share code, notes, and snippets.

@pmagwene
Forked from endolith/Accent.py
Created December 6, 2012 05:42
Show Gist options
  • Select an option

  • Save pmagwene/4222049 to your computer and use it in GitHub Desktop.

Select an option

Save pmagwene/4222049 to your computer and use it in GitHub Desktop.

Revisions

  1. @endolith endolith revised this gist Oct 9, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    Researched the origins and purposes of all the colormaps built into matplotlib, then added the info to the `colormaps()` docstring in [`pyplot.py`](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/pyplot.py#L1679)
    Researched the origins and purposes of all the colormaps built into matplotlib, then added the info to [the `colormaps()` docstring in `pyplot.py`](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/pyplot.py#L1679)
  2. @endolith endolith revised this gist Oct 9, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    Researched the origins and purposes of all the colormaps built into matplotlib, then added the info to the `colormaps()` docstring in `[pyplot.py](https://github.com/endolith/matplotlib/blob/cce444103c12b6b39473f4d2dfa562ce14b3dbf9/lib/matplotlib/pyplot.py#L1646)`
    Researched the origins and purposes of all the colormaps built into matplotlib, then added the info to the `colormaps()` docstring in [`pyplot.py`](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/pyplot.py#L1679)
  3. @endolith endolith revised this gist Oct 9, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Researched the origins and purposes of all the colormaps built into matplotlib, then added the info to the `colormaps()` docstring in `[pyplot.py](https://github.com/endolith/matplotlib/blob/cce444103c12b6b39473f4d2dfa562ce14b3dbf9/lib/matplotlib/pyplot.py#L1646)`
  4. @endolith endolith revised this gist May 31, 2012. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions Accent.py
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,11 @@
    # for categories of data. So I remapped Accent to segments
    # instead of continuous:

    # Actually, these should be used with ListedColormap, and
    # the number of colors should depend on the number of
    # categories in the data, with colors removed from the
    # list in a certain order?

    _Accent_data = {
    'blue': [
    (0.0, 0.0, 0.49803921580314636),
  5. @endolith endolith revised this gist May 23, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions colormaps_docstring.rst
    Original file line number Diff line number Diff line change
    @@ -62,13 +62,13 @@ package <http://yorick.sourceforge.net/index.php>`_, an evolution of the GIST pa
    ============ =======================================================
    gist_earth mapmaker's colors from dark blue deep ocean to green
    lowlands to brown highlands to white mountains
    gist_gray *(identical to `gray`)*
    gist_gray (identical to *gray*)
    gist_heat sequential red-orange-yellow-white, to emulate blackbody
    radiation from an iron bar as it grows hotter
    gist_ncar pseudo-spectral colormap from National Center for Atmospheric Research [#]_
    gist_rainbow runs through the colors in spectral order at nearly constant intensity
    gist_stern "Stern special" color table from Interactive Data Language software
    gist_yarg *(identical to `gray_r`)*
    gist_yarg (identical to *gray_r*)
    ============ =======================================================

    The following 34 colormaps are based on the `ColorBrewer <http://colorbrewer.org>`_ color specifications and designs developed by Cynthia Brewer:
    @@ -124,7 +124,7 @@ Other miscellaneous schemes:
    ========= =======================================================
    afmhot sequential black-orange-yellow-white blackbody
    spectrum, commonly used in atomic force microscopy
    binary *(identical to `gray_r`)*
    binary (identical to *gray_r*)
    brg blue-red-green
    bwr diverging blue-white-red
    coolwarm diverging blue-gray-red, meant to avoid issues with 3D
  6. @endolith endolith revised this gist May 23, 2012. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion full list.txt
    Original file line number Diff line number Diff line change
    @@ -64,7 +64,8 @@ Copied from GIST/Yorick:
    'Earlier versions of SkyView used the "Stern Special" color table by default, but we now default to more realistic if less colorful black and white images.'
    'In appearance the most significant change is that by default images are now black and white. Users can select any of the old and many new color tables if desired but we feel that the black and white images most accurately reflect the intensity scaling. Some novice users were confused about the meaning of the colors in the old versions. The old system used the Stern Special color table.'


    In [4]: array_equal(cm.cmap_d['gist_gray'](arange(256)), cm.cmap_d['gray'](arange(256)))
    Out[4]: True

    ColorBrewer

    @@ -193,6 +194,9 @@ binary

    identical to gray_r and gist_yarg

    In [8]: array_equal(cm.cmap_d['binary'](arange(256)), cm.cmap_d['gray_r'](arange(256)))
    Out[8]: True

    added here: https://github.com/matplotlib/matplotlib/commit/47af03d985d9729f3eedc41354fe11a22eff35c4

    meant for barcodes?
  7. @endolith endolith revised this gist May 23, 2012. 1 changed file with 32 additions and 14 deletions.
    46 changes: 32 additions & 14 deletions colormaps_docstring.rst
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,7 @@ The base colormaps are:
    in which the maximum magnitude and the minimum
    magnitude are equivalent)
    jet blue-cyan-yellow-red, a variant of hsv; based on a
    fluid-jet simulation by NCSA [1]_
    fluid-jet simulation by NCSA [#]_
    pink sequential increasing pastel black-pink-white, meant
    for sepia tone colorization of photographs
    prism repeating red-yellow-green-blue-purple-...-green pattern
    @@ -60,13 +60,15 @@ package <http://yorick.sourceforge.net/index.php>`_, an evolution of the GIST pa
    ============ =======================================================
    Colormap Description
    ============ =======================================================
    gist_earth "is loosely based on mapmaker's colors from dark blue deep ocean to green lowlands to brown highlands to white mountains"
    gist_gray (identical to `gray`)
    gist_heat sequential "a red-orange scale resembling the colors of an iron bar as it grows hotter" "dk red - red - orange - yellow - white color temperatures of hot iron bar"
    gist_earth mapmaker's colors from dark blue deep ocean to green
    lowlands to brown highlands to white mountains
    gist_gray *(identical to `gray`)*
    gist_heat sequential red-orange-yellow-white, to emulate blackbody
    radiation from an iron bar as it grows hotter
    gist_ncar pseudo-spectral colormap from National Center for Atmospheric Research [#]_
    gist_rainbow runs through the colors in spectral order at nearly constant intensity
    gist_stern "Stern special" color table from Interactive Data Language software
    gist_yarg (identical to `gray_r`)
    gist_yarg *(identical to `gray_r`)*
    ============ =======================================================

    The following 34 colormaps are based on the `ColorBrewer <http://colorbrewer.org>`_ color specifications and designs developed by Cynthia Brewer:
    @@ -120,24 +122,40 @@ Other miscellaneous schemes:
    ========= =======================================================
    Colormap Description
    ========= =======================================================
    afmhot sequential black-orange-yellow-white spectrum, commonly used in atomic force microscopy
    binary (identical to `gray_r`)
    afmhot sequential black-orange-yellow-white blackbody
    spectrum, commonly used in atomic force microscopy
    binary *(identical to `gray_r`)*
    brg blue-red-green
    bwr diverging blue-white-red
    coolwarm diverging blue-gray-red, meant to avoid issues with 3D shading, color blindness, and ordering of colors [#]_
    CMRmap "Default colormaps on color images often reproduce to confusing grayscale images. The proposed colormap maintains an aesthetically pleasing color image that automatically reproduces to a monotonic grayscale with discrete, quantifiable saturation levels." [#]_
    cubehelix Unlike most other color schemes cubehelix was designed by D.A. Green to be monotonically increasing in terms of perceived brightness. Also, when printed on a black and white postscript printer, the scheme results in a greyscale with monotonically increasing brightness. This color scheme is named cubehelix because the r,g,b values produced can be visualised as a squashed helix around the diagonal in the r,g,b color cube.
    gnuplot gnuplot's traditional pm3d scheme (black-blue-red-yellow)
    gnuplot2 sequential color printable as gray (black-blue-violet-yellow-white)
    coolwarm diverging blue-gray-red, meant to avoid issues with 3D
    shading, color blindness, and ordering of colors [#]_
    CMRmap "Default colormaps on color images often reproduce to
    confusing grayscale images. The proposed colormap
    maintains an aesthetically pleasing color image that
    automatically reproduces to a monotonic grayscale with
    discrete, quantifiable saturation levels." [#]_
    cubehelix Unlike most other color schemes cubehelix was designed
    by D.A. Green to be monotonically increasing in terms
    of perceived brightness. Also, when printed on a black
    and white postscript printer, the scheme results in a
    greyscale with monotonically increasing brightness.
    This color scheme is named cubehelix because the r,g,b
    values produced can be visualised as a squashed helix
    around the diagonal in the r,g,b color cube.
    gnuplot gnuplot's traditional pm3d scheme
    (black-blue-red-yellow)
    gnuplot2 sequential color printable as gray
    (black-blue-violet-yellow-white)
    ocean green-blue-white
    rainbow purple-blue-green-yellow-orange-red
    seismic diverging blue-white-red
    terrain mapmaker's colors, blue-green-yellow-brown-white, originally from IGOR Pro
    terrain mapmaker's colors, blue-green-yellow-brown-white,
    originally from IGOR Pro
    ========= =======================================================

    .. rubric:: Footnotes

    .. [1] Rainbow colormaps, `jet` in particular, are considered a poor choice for scientific visualization by many researchers: `Rainbow Color Map (Still) Considered Harmful <http://www.jwave.vt.edu/%7Erkriz/Projects/create_color_table/color_07.pdf>`_
    .. [#] Rainbow colormaps, `jet` in particular, are considered a poor choice for scientific visualization by many researchers: `Rainbow Color Map (Still) Considered Harmful <http://www.jwave.vt.edu/%7Erkriz/Projects/create_color_table/color_07.pdf>`_
    .. [#] Resembles "BkBlAqGrYeOrReViWh200" from `Color Table Gallery <http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml>`_
  8. @endolith endolith renamed this gist May 23, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  9. @endolith endolith revised this gist May 22, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Accent.py
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,8 @@
    # https://github.com/matplotlib/matplotlib/issues/881
    # Several of the ColorBrewer maps are "qualitative", meaning they are just a group of colors that can be used together for categories of data. So I remapped Accent to segments instead of continuous:
    # Several of the ColorBrewer maps are "qualitative", meaning
    # they are just a group of colors that can be used together
    # for categories of data. So I remapped Accent to segments
    # instead of continuous:

    _Accent_data = {
    'blue': [
  10. @endolith endolith revised this gist May 22, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Accent.py
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    # Remapped to segments:
    # https://github.com/matplotlib/matplotlib/issues/881
    # Several of the ColorBrewer maps are "qualitative", meaning they are just a group of colors that can be used together for categories of data. So I remapped Accent to segments instead of continuous:

    _Accent_data = {
    'blue': [
  11. @endolith endolith revised this gist May 22, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Accent.py
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ain# Remapped to segments:
    # Remapped to segments:

    _Accent_data = {
    'blue': [
  12. @endolith endolith revised this gist May 20, 2012. 3 changed files with 137 additions and 22 deletions.
    2 changes: 1 addition & 1 deletion Accent.py
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Remapped to segments:
    ain# Remapped to segments:

    _Accent_data = {
    'blue': [
    155 changes: 135 additions & 20 deletions colormaps()_docstring.rst
    Original file line number Diff line number Diff line change
    @@ -1,31 +1,146 @@
    matplotlib provides the following colormaps.

    * autumn
    * bone
    * cool
    * copper
    * flag
    * gray
    * hot
    * hsv
    * jet
    * pink
    * prism
    * spring
    * summer
    * winter
    * spectral
    matplotlib provides a number of colormaps, a complete list of which can be found in `cm._cmapnames`.

    You can set the colormap for an image, pcolor, scatter, etc,
    either as a keyword argument::
    using a keyword argument::

    imshow(X, cmap=cm.hot)

    or post-hoc using the corresponding pylab interface function::
    Additionally, for the "base" colormaps below, you can set the colormap post-hoc using the corresponding pylab interface function::

    imshow(X)
    hot()
    jet()

    In interactive mode, this will update the colormap allowing you to
    see which one works best for your data.
    see which one works best for your data.

    All colormaps can be reversed by appending ``_r``: For instance,
    ``gray_r`` is the reverse of ``gray``.

    There are 3 common color schemes used in visualization:

    1. Sequential schemes, for unipolar data that progresses from low to high
    2. Diverging schemes, for bipolar data that emphasizes positive or negative deviations from a central value
    3. Qualitative schemes, which don't have a relationship to magnitude

    The base colormaps are:

    ========= =======================================================
    Colormap Description
    ========= =======================================================
    autumn sequential increasing shades of red-orange-yellow
    bone sequential black-white color map with a tinge of blue,
    to emulate X-ray film
    cool sequential decreasing shades of cyan-magenta
    copper sequential increasing shades of black-copper
    flag repeating red-white-blue-black pattern
    gray simple sequential linearly-increasing black-to-white
    grayscale
    hot sequential black-red-yellow-white, to emulate blackbody
    radiation from an object at increasing temperatures
    hsv red-yellow-green-cyan-blue-pink-magenta, formed by
    changing the hue component in the HSV color space;
    meant to be used in plotting periodic data (that is,
    in which the maximum magnitude and the minimum
    magnitude are equivalent)
    jet blue-cyan-yellow-red, a variant of hsv; based on a
    fluid-jet simulation by NCSA [1]_
    pink sequential increasing pastel black-pink-white, meant
    for sepia tone colorization of photographs
    prism repeating red-yellow-green-blue-purple-...-green pattern
    spring shades of magenta-yellow
    summer shades of green-yellow
    winter shades of blue-green
    spectral black-purple-blue-green-yellow-red-white spectrum
    ========= =======================================================

    The next 7 palettes are from the `Yorick scientific visualisation
    package <http://yorick.sourceforge.net/index.php>`_, an evolution of the GIST package, both by David H. Munro:

    ============ =======================================================
    Colormap Description
    ============ =======================================================
    gist_earth "is loosely based on mapmaker's colors from dark blue deep ocean to green lowlands to brown highlands to white mountains"
    gist_gray (identical to `gray`)
    gist_heat sequential "a red-orange scale resembling the colors of an iron bar as it grows hotter" "dk red - red - orange - yellow - white color temperatures of hot iron bar"
    gist_ncar pseudo-spectral colormap from National Center for Atmospheric Research [#]_
    gist_rainbow runs through the colors in spectral order at nearly constant intensity
    gist_stern "Stern special" color table from Interactive Data Language software
    gist_yarg (identical to `gray_r`)
    ============ =======================================================

    The following 34 colormaps are based on the `ColorBrewer <http://colorbrewer.org>`_ color specifications and designs developed by Cynthia Brewer:

    Diverging:

    * BrBG
    * PiYG
    * PRGn
    * PuOr
    * RdBu
    * RdGy
    * RdYlBu
    * RdYlGn
    * Spectral

    Sequential:

    * Blues
    * BuGn
    * BuPu
    * GnBu
    * Greens
    * Greys
    * Oranges
    * OrRd
    * PuBu
    * PuBuGn
    * PuRd
    * Purples
    * RdPu
    * Reds
    * YlGn
    * YlGnBu
    * YlOrBr
    * YlOrRd

    Qualitative:

    * Accent
    * Dark2
    * Paired
    * Pastel1
    * Pastel2
    * Set1
    * Set2
    * Set3

    Other miscellaneous schemes:

    ========= =======================================================
    Colormap Description
    ========= =======================================================
    afmhot sequential black-orange-yellow-white spectrum, commonly used in atomic force microscopy
    binary (identical to `gray_r`)
    brg blue-red-green
    bwr diverging blue-white-red
    coolwarm diverging blue-gray-red, meant to avoid issues with 3D shading, color blindness, and ordering of colors [#]_
    CMRmap "Default colormaps on color images often reproduce to confusing grayscale images. The proposed colormap maintains an aesthetically pleasing color image that automatically reproduces to a monotonic grayscale with discrete, quantifiable saturation levels." [#]_
    cubehelix Unlike most other color schemes cubehelix was designed by D.A. Green to be monotonically increasing in terms of perceived brightness. Also, when printed on a black and white postscript printer, the scheme results in a greyscale with monotonically increasing brightness. This color scheme is named cubehelix because the r,g,b values produced can be visualised as a squashed helix around the diagonal in the r,g,b color cube.
    gnuplot gnuplot's traditional pm3d scheme (black-blue-red-yellow)
    gnuplot2 sequential color printable as gray (black-blue-violet-yellow-white)
    ocean green-blue-white
    rainbow purple-blue-green-yellow-orange-red
    seismic diverging blue-white-red
    terrain mapmaker's colors, blue-green-yellow-brown-white, originally from IGOR Pro
    ========= =======================================================

    .. rubric:: Footnotes

    .. [1] Rainbow colormaps, `jet` in particular, are considered a poor choice for scientific visualization by many researchers: `Rainbow Color Map (Still) Considered Harmful <http://www.jwave.vt.edu/%7Erkriz/Projects/create_color_table/color_07.pdf>`_
    .. [#] Resembles "BkBlAqGrYeOrReViWh200" from `Color Table Gallery <http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml>`_
    .. [#] See `Diverging Color Maps for Scientific Visualization <http://www.cs.unm.edu/~kmorel/documents/ColorMaps/>`_ by Kenneth Moreland.
    .. [#] See `A Color Map for Effective Black-and-White Rendering of Color-Scale Images <http://www.mathworks.com/matlabcentral/fileexchange/2662-cmrmap-m>`_ by Carey Rappaport
    2 changes: 1 addition & 1 deletion full list.txt
    Original file line number Diff line number Diff line change
    @@ -179,7 +179,7 @@ misc others added at the same time
    ocean
    rainbow
    seismic
    terrain - from "a measurement program called 'Igor'"
    terrain - from "a measurement program called 'Igor'" http://www.wavemetrics.com/products/igorpro/creatinggraphs/colortab.htm

    all added here: http://sourceforge.net/mailarchive/message.php?msg_id=23330302

  13. @endolith endolith revised this gist May 19, 2012. 1 changed file with 25 additions and 0 deletions.
    25 changes: 25 additions & 0 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -43,6 +43,9 @@ spectral (Spectral is not the same! rename to nipy_spectral?)

    Copied from GIST/Yorick:

    # The next 7 palettes are from the Yorick scientific visalisation package,
    # an evolution of the GIST package, both by David H. Munro.

    descriptions here http://dhmunro.github.com/yorick-doc/manual/yorick_70.html http://projects.scipy.org/scipy/browser/trunk/Lib/xplt/gistdata?rev=685

    These palettes tend to start with dark colors and progress toward lighter colors, except yarg and rainbow
    @@ -64,6 +67,14 @@ Copied from GIST/Yorick:


    ColorBrewer

    # 34 colormaps based on color specifications and designs
    # developed by Cynthia Brewer (http://colorbrewer.org).
    # The ColorBrewer palettes have been included under the terms
    # of an Apache-stype license (for details, see the file
    # LICENSE_COLORBREWER in the license directory of the matplotlib
    # source distribution).

    Added here https://github.com/matplotlib/matplotlib/commit/31c07815140e97becf2f2e037b8a214e263290b2
    Categorizations here http://rgm2.lab.nig.ac.jp/RGM2/func.php?rd_id=RColorBrewer:ColorBrewer

    @@ -131,6 +142,10 @@ cubehelix

    coolwarm

    # This bipolar color map was generated from
    # "Diverging Color Maps for Scientific Visualization" by Kenneth Moreland.
    # <http://www.cs.unm.edu/~kmorel/documents/ColorMaps/>

    Discussion about patch:
    http://sourceforge.net/mailarchive/message.php?msg_id=27816391

    @@ -144,6 +159,16 @@ coolwarm
    http://www.cs.unm.edu/~kmorel/documents/ColorMaps/index.html



    CMRmap

    Default colormaps on color images often reproduce to confusing grayscale images. The proposed colormap maintains an aesthetically pleasing color image that automatically reproduces to a monotonic grayscale with discrete, quantifiable saturation levels.

    # Implementation of Carey Rappaport's CMRmap.
    # See `A Color Map for Effective Black-and-White Rendering of Color-Scale Images' by Carey Rappaport
    # http://www.mathworks.com/matlabcentral/fileexchange/2662-cmrmap-m


    misc others added at the same time

    afmhot - Used in atomic force microscopy?
  14. @endolith endolith revised this gist May 19, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion full list.txt
    Original file line number Diff line number Diff line change
    @@ -50,7 +50,8 @@ Copied from GIST/Yorick:
    gist_earth "is loosely based on mapmaker's colors from dark blue deep ocean to green lowlands to brown highlands to white mountains" "dk blue - lt blue - dk green - yellow green - lt brown - white sort of like mapmakers colors from deep ocean to snow capped peak"
    gist_gray (identical to gray)
    gist_heat "a red-orange scale resembling the colors of an iron bar as it grows hotter" "dk red - red - orange - yellow - white color temperatures of hot iron bar"
    gist_ncar
    gist_ncar - resembles BkBlAqGrYeOrReViWh200 from National Center for Atmospheric Research
    http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml
    gist_rainbow "runs through the colors in spectral order at nearly constant intensity" "colors in spectral order"
    gist_stern # red - dk blue - lt blue - gray green - white "Stern special" color table from IDL (c) Research Systems, Inc.
    gist_yarg (identical to gray_r and binary)
    @@ -61,6 +62,7 @@ Copied from GIST/Yorick:
    'In appearance the most significant change is that by default images are now black and white. Users can select any of the old and many new color tables if desired but we feel that the black and white images most accurately reflect the intensity scaling. Some novice users were confused about the meaning of the colors in the old versions. The old system used the Stern Special color table.'



    ColorBrewer
    Added here https://github.com/matplotlib/matplotlib/commit/31c07815140e97becf2f2e037b8a214e263290b2
    Categorizations here http://rgm2.lab.nig.ac.jp/RGM2/func.php?rd_id=RColorBrewer:ColorBrewer
  15. @endolith endolith revised this gist May 19, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion full list.txt
    Original file line number Diff line number Diff line change
    @@ -57,7 +57,8 @@ Copied from GIST/Yorick:

    sources here: https://github.com/dhmunro/yorick/tree/master/g
    no explanation of what ncar or stern are for

    'Earlier versions of SkyView used the "Stern Special" color table by default, but we now default to more realistic if less colorful black and white images.'
    'In appearance the most significant change is that by default images are now black and white. Users can select any of the old and many new color tables if desired but we feel that the black and white images most accurately reflect the intensity scaling. Some novice users were confused about the meaning of the colors in the old versions. The old system used the Stern Special color table.'


    ColorBrewer
  16. @endolith endolith revised this gist May 19, 2012. 1 changed file with 46 additions and 51 deletions.
    97 changes: 46 additions & 51 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -23,30 +23,7 @@ Copied from MATLAB:
    These were all added here https://github.com/matplotlib/matplotlib/commit/26ffb47e95d7d694a94bb101d17ebcd0622d15f7




    Copied from GIST/Yorick:

    descriptions here http://dhmunro.github.com/yorick-doc/manual/yorick_70.html http://projects.scipy.org/scipy/browser/trunk/Lib/xplt/gistdata?rev=685

    These palettes tend to start with dark colors and progress toward lighter colors, except yarg and rainbow

    gist_earth "is loosely based on mapmaker's colors from dark blue deep ocean to green lowlands to brown highlands to white mountains" "dk blue - lt blue - dk green - yellow green - lt brown - white sort of like mapmakers colors from deep ocean to snow capped peak"
    gist_gray (identical to gray)
    gist_heat "a red-orange scale resembling the colors of an iron bar as it grows hotter" "dk red - red - orange - yellow - white color temperatures of hot iron bar"
    gist_ncar
    gist_rainbow "runs through the colors in spectral order at nearly constant intensity" "colors in spectral order"
    gist_stern # red - dk blue - lt blue - gray green - white "Stern special" color table from IDL (c) Research Systems, Inc.
    gist_yarg (identical to gray_r and binary)

    sources here: https://github.com/dhmunro/yorick/tree/master/g
    no explanation of what ncar or stern are for





    spectral (Spectral is not the same!)
    spectral (Spectral is not the same! rename to nipy_spectral?)

    "Tim Leslie's spectral patch"
    https://github.com/matplotlib/matplotlib/commit/b64652d335d4318d1b1a332843837a0c17a4a202
    @@ -64,36 +41,22 @@ spectral (Spectral is not the same!)



    cubehelix

    Unlike most other color schemes cubehelix was designed by D.A. Green to
    be monotonically increasing in terms of perceived brightness.
    Also, when printed on a black and white postscript printer, the scheme
    results in a greyscale with monotonically increasing brightness.
    This color scheme is named cubehelix because the r,g,b values produced
    can be visualised as a squashed helix around the diagonal in the
    r,g,b color cube.

    discussion http://sourceforge.net/mailarchive/message.php?msg_id=28065739
    paper http://arxiv.org/abs/1108.5083

    see cm.cubehelix() (no way to view the docstring?)


    coolwarm

    Discussion about patch:
    http://sourceforge.net/mailarchive/message.php?msg_id=27816391
    Copied from GIST/Yorick:

    – The map yields images that are aesthetically pleasing.
    – The map has a maximal perceptual resolution.
    – Interference with the shading of 3D surfaces is minimal.
    – The map is not sensitive to vision deficiencies.
    – The order of the colors should be intuitively the same for all people.
    – The perceptual interpolation matches the underlying scalars of the map.
    descriptions here http://dhmunro.github.com/yorick-doc/manual/yorick_70.html http://projects.scipy.org/scipy/browser/trunk/Lib/xplt/gistdata?rev=685

    http://www.cs.unm.edu/~kmorel/documents/ColorMaps/index.html
    These palettes tend to start with dark colors and progress toward lighter colors, except yarg and rainbow

    gist_earth "is loosely based on mapmaker's colors from dark blue deep ocean to green lowlands to brown highlands to white mountains" "dk blue - lt blue - dk green - yellow green - lt brown - white sort of like mapmakers colors from deep ocean to snow capped peak"
    gist_gray (identical to gray)
    gist_heat "a red-orange scale resembling the colors of an iron bar as it grows hotter" "dk red - red - orange - yellow - white color temperatures of hot iron bar"
    gist_ncar
    gist_rainbow "runs through the colors in spectral order at nearly constant intensity" "colors in spectral order"
    gist_stern # red - dk blue - lt blue - gray green - white "Stern special" color table from IDL (c) Research Systems, Inc.
    gist_yarg (identical to gray_r and binary)

    sources here: https://github.com/dhmunro/yorick/tree/master/g
    no explanation of what ncar or stern are for



    @@ -146,6 +109,38 @@ ColorBrewer




    cubehelix

    Unlike most other color schemes cubehelix was designed by D.A. Green to
    be monotonically increasing in terms of perceived brightness.
    Also, when printed on a black and white postscript printer, the scheme
    results in a greyscale with monotonically increasing brightness.
    This color scheme is named cubehelix because the r,g,b values produced
    can be visualised as a squashed helix around the diagonal in the
    r,g,b color cube.

    discussion http://sourceforge.net/mailarchive/message.php?msg_id=28065739
    paper http://arxiv.org/abs/1108.5083

    see cm.cubehelix() (no way to view the docstring?)


    coolwarm

    Discussion about patch:
    http://sourceforge.net/mailarchive/message.php?msg_id=27816391

    – The map yields images that are aesthetically pleasing.
    – The map has a maximal perceptual resolution.
    – Interference with the shading of 3D surfaces is minimal.
    – The map is not sensitive to vision deficiencies.
    – The order of the colors should be intuitively the same for all people.
    – The perceptual interpolation matches the underlying scalars of the map.

    http://www.cs.unm.edu/~kmorel/documents/ColorMaps/index.html


    misc others added at the same time

    afmhot - Used in atomic force microscopy?
  17. @endolith endolith revised this gist May 19, 2012. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -27,16 +27,16 @@ Copied from MATLAB:

    Copied from GIST/Yorick:

    descriptions here http://dhmunro.github.com/yorick-doc/manual/yorick_70.html
    descriptions here http://dhmunro.github.com/yorick-doc/manual/yorick_70.html http://projects.scipy.org/scipy/browser/trunk/Lib/xplt/gistdata?rev=685

    These palettes tend to start with dark colors and progress toward lighter colors, except yarg and rainbow

    gist_earth "is loosely based on mapmaker's colors from dark blue deep ocean to green lowlands to brown highlands to white mountains"
    gist_earth "is loosely based on mapmaker's colors from dark blue deep ocean to green lowlands to brown highlands to white mountains" "dk blue - lt blue - dk green - yellow green - lt brown - white sort of like mapmakers colors from deep ocean to snow capped peak"
    gist_gray (identical to gray)
    gist_heat "a red-orange scale resembling the colors of an iron bar as it grows hotter"
    gist_heat "a red-orange scale resembling the colors of an iron bar as it grows hotter" "dk red - red - orange - yellow - white color temperatures of hot iron bar"
    gist_ncar
    gist_rainbow "runs through the colors in spectral order at nearly constant intensity"
    gist_stern
    gist_rainbow "runs through the colors in spectral order at nearly constant intensity" "colors in spectral order"
    gist_stern # red - dk blue - lt blue - gray green - white "Stern special" color table from IDL (c) Research Systems, Inc.
    gist_yarg (identical to gray_r and binary)

    sources here: https://github.com/dhmunro/yorick/tree/master/g
  18. @endolith endolith revised this gist May 19, 2012. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -148,19 +148,19 @@ ColorBrewer

    misc others added at the same time

    afmhot
    afmhot - Used in atomic force microscopy?
    brg
    bwr
    gnuplot
    gnuplot2
    ocean
    rainbow
    seismic
    terrain
    terrain - from "a measurement program called 'Igor'"

    all added here: http://sourceforge.net/mailarchive/message.php?msg_id=23330302

    seismic from here? http://soliton.vm.bytemark.co.uk/pub/cpt-city/gery/index.html
    seismic from here? http://soliton.vm.bytemark.co.uk/pub/cpt-city/gery/index.html http://www.mathworks.com/matlabcentral/fileexchange/30585-large-data-in-matlab-a-seismic-data-processing-case-study/content/migration/seismic.m

    afmhot, ocean, rainbow from here? http://gnuplot.sourceforge.net/docs_4.2/node216.html

    @@ -177,6 +177,6 @@ binary



    identify which are isoluminant/monotonic, sequential/diverging, etc
    identify which are isoluminant/monotonic, sequential/diverging/cyclic/spectral, etc

    "sequential (quantitative) variables, discrete (qualitative) variables, and bipolar (diverging) variables"
  19. @endolith endolith revised this gist May 19, 2012. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -52,10 +52,12 @@ spectral (Spectral is not the same!)
    https://github.com/matplotlib/matplotlib/commit/b64652d335d4318d1b1a332843837a0c17a4a202
    added after "Spectral"

    from nipy
    http://sourceforge.net/mailarchive/message.php?msg_id=8931272

    Only non-MATLAB colormap to have a post-hoc function
    Looks similar but not exactly same as:
    http://www.math.mcgill.ca/keith/surfstat/doc/SurfStat/spectral.html
    http://www.mathworks.com/matlabcentral/fileexchange/4706-mia-2-4/content/mia24/Tools/spectralmni.m

    Related to http://www.math.mcgill.ca/keith/surfstat/doc/SurfStat/spectral.html and http://www.mathworks.com/matlabcentral/fileexchange/4706-mia-2-4/content/mia24/Tools/spectralmni.m but none of these have the same endpoints

    "black-purple-blue-green-yellow-red-white"

  20. @endolith endolith revised this gist May 18, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -49,6 +49,8 @@ Copied from GIST/Yorick:
    spectral (Spectral is not the same!)

    "Tim Leslie's spectral patch"
    https://github.com/matplotlib/matplotlib/commit/b64652d335d4318d1b1a332843837a0c17a4a202
    added after "Spectral"

    Only non-MATLAB colormap to have a post-hoc function
    Looks similar but not exactly same as:
  21. @endolith endolith revised this gist May 18, 2012. 1 changed file with 29 additions and 24 deletions.
    53 changes: 29 additions & 24 deletions Accent.py
    Original file line number Diff line number Diff line change
    @@ -1,34 +1,39 @@
    # Remapped to segments:

    _Accent_data = {
    'blue': [
    (0.0, 0.49803921580314636, 0.49803921580314636),
    (0.14285714285714285, 0.83137255907058716, 0.83137255907058716),
    (0.2857142857142857, 0.52549022436141968, 0.52549022436141968),
    (0.42857142857142855, 0.60000002384185791, 0.60000002384185791),
    (0.5714285714285714, 0.69019609689712524, 0.69019609689712524),
    (0.7142857142857143, 0.49803921580314636, 0.49803921580314636),
    (0.8571428571428571, 0.090196080505847931, 0.090196080505847931),
    (1.0, 0.40000000596046448, 0.40000000596046448),
    (0.0, 0.0, 0.49803921580314636),
    (0.125, 0.49803921580314636, 0.83137255907058716),
    (0.25, 0.83137255907058716, 0.52549022436141968),
    (0.375, 0.52549022436141968, 0.60000002384185791),
    (0.5, 0.60000002384185791, 0.69019609689712524),
    (0.625, 0.69019609689712524, 0.49803921580314636),
    (0.75, 0.49803921580314636, 0.090196080505847931),
    (0.875, 0.090196080505847931, 0.40000000596046448),
    (1.0, 0.40000000596046448, 0.0),
    ],

    'green': [
    (0.0, 0.78823530673980713, 0.78823530673980713),
    (0.14285714285714285, 0.68235296010971069, 0.68235296010971069),
    (0.2857142857142857, 0.75294119119644165, 0.75294119119644165),
    (0.42857142857142855, 1.0, 1.0),
    (0.5714285714285714, 0.42352941632270813, 0.42352941632270813),
    (0.7142857142857143, 0.0078431377187371254, 0.0078431377187371254),
    (0.8571428571428571, 0.35686275362968445, 0.35686275362968445),
    (1.0, 0.40000000596046448, 0.40000000596046448),
    (0.0, 0.0, 0.78823530673980713),
    (0.125, 0.78823530673980713, 0.68235296010971069),
    (0.25, 0.68235296010971069, 0.75294119119644165),
    (0.375, 0.75294119119644165, 1.0),
    (0.5, 1.0, 0.42352941632270813),
    (0.625, 0.42352941632270813, 0.0078431377187371254),
    (0.75, 0.0078431377187371254, 0.35686275362968445),
    (0.875, 0.35686275362968445, 0.40000000596046448),
    (1.0, 0.40000000596046448, 0.0),
    ],

    'red': [
    (0.0, 0.49803921580314636, 0.49803921580314636),
    (0.14285714285714285, 0.7450980544090271, 0.7450980544090271),
    (0.2857142857142857, 0.99215686321258545, 0.99215686321258545),
    (0.42857142857142855, 1.0, 1.0),
    (0.5714285714285714, 0.21960784494876862, 0.21960784494876862),
    (0.7142857142857143, 0.94117647409439087, 0.94117647409439087),
    (0.8571428571428571, 0.74901962280273438, 0.74901962280273438),
    (1.0, 0.40000000596046448, 0.40000000596046448),
    (0.0, 0.0, 0.49803921580314636),
    (0.125, 0.49803921580314636, 0.7450980544090271),
    (0.25, 0.7450980544090271, 0.99215686321258545),
    (0.375, 0.99215686321258545, 1.0),
    (0.5, 1.0, 0.21960784494876862),
    (0.625, 0.21960784494876862, 0.94117647409439087),
    (0.75, 0.94117647409439087, 0.74901962280273438),
    (0.875, 0.74901962280273438, 0.40000000596046448),
    (1.0, 0.40000000596046448, 0.0),
    ],
    }
  22. @endolith endolith revised this gist May 18, 2012. 1 changed file with 32 additions and 25 deletions.
    57 changes: 32 additions & 25 deletions Accent.py
    Original file line number Diff line number Diff line change
    @@ -1,27 +1,34 @@
    _Accent_data = {'blue': [(0.0, 0.49803921580314636,
    0.49803921580314636), (0.14285714285714285, 0.83137255907058716,
    0.83137255907058716), (0.2857142857142857, 0.52549022436141968,
    0.52549022436141968), (0.42857142857142855, 0.60000002384185791,
    0.60000002384185791), (0.5714285714285714, 0.69019609689712524,
    0.69019609689712524), (0.7142857142857143, 0.49803921580314636,
    0.49803921580314636), (0.8571428571428571, 0.090196080505847931,
    0.090196080505847931), (1.0, 0.40000000596046448,
    0.40000000596046448)],
    _Accent_data = {
    'blue': [
    (0.0, 0.49803921580314636, 0.49803921580314636),
    (0.14285714285714285, 0.83137255907058716, 0.83137255907058716),
    (0.2857142857142857, 0.52549022436141968, 0.52549022436141968),
    (0.42857142857142855, 0.60000002384185791, 0.60000002384185791),
    (0.5714285714285714, 0.69019609689712524, 0.69019609689712524),
    (0.7142857142857143, 0.49803921580314636, 0.49803921580314636),
    (0.8571428571428571, 0.090196080505847931, 0.090196080505847931),
    (1.0, 0.40000000596046448, 0.40000000596046448),
    ],

    'green': [(0.0, 0.78823530673980713, 0.78823530673980713),
    (0.14285714285714285, 0.68235296010971069, 0.68235296010971069),
    (0.2857142857142857, 0.75294119119644165, 0.75294119119644165),
    (0.42857142857142855, 1.0, 1.0), (0.5714285714285714,
    0.42352941632270813, 0.42352941632270813), (0.7142857142857143,
    0.0078431377187371254, 0.0078431377187371254),
    (0.8571428571428571, 0.35686275362968445, 0.35686275362968445),
    (1.0, 0.40000000596046448, 0.40000000596046448)],
    'green': [
    (0.0, 0.78823530673980713, 0.78823530673980713),
    (0.14285714285714285, 0.68235296010971069, 0.68235296010971069),
    (0.2857142857142857, 0.75294119119644165, 0.75294119119644165),
    (0.42857142857142855, 1.0, 1.0),
    (0.5714285714285714, 0.42352941632270813, 0.42352941632270813),
    (0.7142857142857143, 0.0078431377187371254, 0.0078431377187371254),
    (0.8571428571428571, 0.35686275362968445, 0.35686275362968445),
    (1.0, 0.40000000596046448, 0.40000000596046448),
    ],

    'red': [(0.0, 0.49803921580314636, 0.49803921580314636),
    (0.14285714285714285, 0.7450980544090271, 0.7450980544090271),
    (0.2857142857142857, 0.99215686321258545, 0.99215686321258545),
    (0.42857142857142855, 1.0, 1.0), (0.5714285714285714,
    0.21960784494876862, 0.21960784494876862), (0.7142857142857143,
    0.94117647409439087, 0.94117647409439087), (0.8571428571428571,
    0.74901962280273438, 0.74901962280273438), (1.0,
    0.40000000596046448, 0.40000000596046448)]}
    'red': [
    (0.0, 0.49803921580314636, 0.49803921580314636),
    (0.14285714285714285, 0.7450980544090271, 0.7450980544090271),
    (0.2857142857142857, 0.99215686321258545, 0.99215686321258545),
    (0.42857142857142855, 1.0, 1.0),
    (0.5714285714285714, 0.21960784494876862, 0.21960784494876862),
    (0.7142857142857143, 0.94117647409439087, 0.94117647409439087),
    (0.8571428571428571, 0.74901962280273438, 0.74901962280273438),
    (1.0, 0.40000000596046448, 0.40000000596046448),
    ],
    }
  23. @endolith endolith revised this gist May 18, 2012. 1 changed file with 27 additions and 0 deletions.
    27 changes: 27 additions & 0 deletions Accent.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    _Accent_data = {'blue': [(0.0, 0.49803921580314636,
    0.49803921580314636), (0.14285714285714285, 0.83137255907058716,
    0.83137255907058716), (0.2857142857142857, 0.52549022436141968,
    0.52549022436141968), (0.42857142857142855, 0.60000002384185791,
    0.60000002384185791), (0.5714285714285714, 0.69019609689712524,
    0.69019609689712524), (0.7142857142857143, 0.49803921580314636,
    0.49803921580314636), (0.8571428571428571, 0.090196080505847931,
    0.090196080505847931), (1.0, 0.40000000596046448,
    0.40000000596046448)],

    'green': [(0.0, 0.78823530673980713, 0.78823530673980713),
    (0.14285714285714285, 0.68235296010971069, 0.68235296010971069),
    (0.2857142857142857, 0.75294119119644165, 0.75294119119644165),
    (0.42857142857142855, 1.0, 1.0), (0.5714285714285714,
    0.42352941632270813, 0.42352941632270813), (0.7142857142857143,
    0.0078431377187371254, 0.0078431377187371254),
    (0.8571428571428571, 0.35686275362968445, 0.35686275362968445),
    (1.0, 0.40000000596046448, 0.40000000596046448)],

    'red': [(0.0, 0.49803921580314636, 0.49803921580314636),
    (0.14285714285714285, 0.7450980544090271, 0.7450980544090271),
    (0.2857142857142857, 0.99215686321258545, 0.99215686321258545),
    (0.42857142857142855, 1.0, 1.0), (0.5714285714285714,
    0.21960784494876862, 0.21960784494876862), (0.7142857142857143,
    0.94117647409439087, 0.94117647409439087), (0.8571428571428571,
    0.74901962280273438, 0.74901962280273438), (1.0,
    0.40000000596046448, 0.40000000596046448)]}
  24. @endolith endolith revised this gist May 18, 2012. 1 changed file with 47 additions and 37 deletions.
    84 changes: 47 additions & 37 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -95,42 +95,50 @@ coolwarm

    ColorBrewer
    Added here https://github.com/matplotlib/matplotlib/commit/31c07815140e97becf2f2e037b8a214e263290b2

    Accent
    Blues
    BrBG
    BuGn
    BuPu
    Dark2
    GnBu
    Greens
    Greys
    Oranges
    OrRd
    Paired
    Pastel1
    Pastel2
    PiYG
    PRGn
    PuBu
    PuBuGn
    PuOr
    PuRd
    Purples
    RdBu
    RdGy
    RdPu
    RdYlBu
    RdYlGn
    Reds
    Set1
    Set2
    Set3
    Spectral (spectral is not the same!)
    YlGn
    YlGnBu
    YlOrBr
    YlOrRd
    Categorizations here http://rgm2.lab.nig.ac.jp/RGM2/func.php?rd_id=RColorBrewer:ColorBrewer

    maxcolors category

    Diverging
    BrBG 11 div
    PiYG 11 div
    PRGn 11 div
    PuOr 11 div
    RdBu 11 div
    RdGy 11 div
    RdYlBu 11 div
    RdYlGn 11 div
    Spectral 11 div (not the same as spectral)

    Qualitative (these aren't supposed to be continuous! bug report?)
    Accent 8 qual
    Dark2 8 qual
    Paired 12 qual
    Pastel1 9 qual
    Pastel2 8 qual
    Set1 9 qual
    Set2 8 qual
    Set3 12 qual

    Sequential
    Blues 9 seq
    BuGn 9 seq
    BuPu 9 seq
    GnBu 9 seq
    Greens 9 seq
    Greys 9 seq
    Oranges 9 seq
    OrRd 9 seq
    PuBu 9 seq
    PuBuGn 9 seq
    PuRd 9 seq
    Purples 9 seq
    RdPu 9 seq
    Reds 9 seq
    YlGn 9 seq
    YlGnBu 9 seq
    YlOrBr 9 seq
    YlOrRd 9 seq



    @@ -165,4 +173,6 @@ binary



    identify which are isoluminant/monotonic, sequential/diverging, etc
    identify which are isoluminant/monotonic, sequential/diverging, etc

    "sequential (quantitative) variables, discrete (qualitative) variables, and bipolar (diverging) variables"
  25. @endolith endolith revised this gist May 18, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion full list.txt
    Original file line number Diff line number Diff line change
    @@ -152,7 +152,7 @@ misc others added at the same time

    afmhot, ocean, rainbow from here? http://gnuplot.sourceforge.net/docs_4.2/node216.html

    apparently AFM because heat is a common palette for atomic force microscopy? https://www.google.com/search?q=atomic+force+microscopy&tbm=isch
    apparently AFM because heat is a common palette for atomic force microscopy? https://www.google.com/search?q=atomic+force+microscopy&tbm=isch "The color selection uses the HSB-color model where the color (H) is set in ° value. The color is selected by entering a number or by clicking a color in the color bar."

    binary

  26. @endolith endolith revised this gist May 18, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -152,6 +152,8 @@ misc others added at the same time

    afmhot, ocean, rainbow from here? http://gnuplot.sourceforge.net/docs_4.2/node216.html

    apparently AFM because heat is a common palette for atomic force microscopy? https://www.google.com/search?q=atomic+force+microscopy&tbm=isch

    binary

    identical to gray_r and gist_yarg
  27. @endolith endolith revised this gist May 18, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -150,6 +150,7 @@ misc others added at the same time

    seismic from here? http://soliton.vm.bytemark.co.uk/pub/cpt-city/gery/index.html

    afmhot, ocean, rainbow from here? http://gnuplot.sourceforge.net/docs_4.2/node216.html

    binary

  28. @endolith endolith revised this gist May 18, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions full list.txt
    Original file line number Diff line number Diff line change
    @@ -148,7 +148,7 @@ misc others added at the same time

    all added here: http://sourceforge.net/mailarchive/message.php?msg_id=23330302


    seismic from here? http://soliton.vm.bytemark.co.uk/pub/cpt-city/gery/index.html


    binary
    @@ -162,4 +162,4 @@ binary



    identify which are isoluminant, divergent, etc
    identify which are isoluminant/monotonic, sequential/diverging, etc
  29. @endolith endolith revised this gist May 18, 2012. 2 changed files with 0 additions and 82 deletions.
    36 changes: 0 additions & 36 deletions MATLAB's definitions.rst
    Original file line number Diff line number Diff line change
    @@ -1,36 +0,0 @@
    From http://www.mathworks.com/help/techdoc/ref/colormap.html

    autumn
    varies smoothly from red, through orange, to yellow.
    bone
    is a grayscale colormap with a higher value for the blue component. This colormap is useful for adding an "electronic" look to grayscale images.
    colorcube
    contains as many regularly spaced colors in RGB color space as possible, while attempting to provide more steps of gray, pure red, pure green, and pure blue.
    cool
    consists of colors that are shades of cyan and magenta. It varies smoothly from cyan to magenta.
    copper
    varies smoothly from black to bright copper.
    flag
    consists of the colors red, white, blue, and black. This colormap completely changes color with each index increment.
    gray
    returns a linear grayscale colormap.
    hot
    varies smoothly from black through shades of red, orange, and yellow, to white.
    hsv
    varies the hue component of the hue-saturation-value color model. The colors begin with red, pass through yellow, green, cyan, blue, magenta, and return to red. The colormap is particularly appropriate for displaying periodic functions. hsv(m) is the same as hsv2rgb([h ones(m,2)]) where h is the linear ramp, h = (0:m–1)'/m.
    jet
    ranges from blue to red, and passes through the colors cyan, yellow, and orange. It is a variation of the hsv colormap. The jet colormap is associated with an astrophysical fluid jet simulation from the National Center for Supercomputer Applications. See Examples.
    lines
    produces a colormap of colors specified by the axes ColorOrder property and a shade of gray.
    pink
    contains pastel shades of pink. The pink colormap provides sepia tone colorization of grayscale photographs.
    prism
    repeats the six colors red, orange, yellow, green, blue, and violet.
    spring
    consists of colors that are shades of magenta and yellow.
    summer
    consists of colors that are shades of green and yellow.
    white
    is an all white monochrome colormap.
    winter
    consists of colors that are shades of blue and green.
    46 changes: 0 additions & 46 deletions h5utils' definitions.rst
    Original file line number Diff line number Diff line change
    @@ -1,46 +0,0 @@
    From http://ab-initio.mit.edu/wiki/index.php/Color_tables_in_h5topng

    autumn
    red-orange-yellow color map; based on colormap of the same name in Matlab
    bluered
    blue-white-red colorbar, useful for signed data in conjunction with -Z option to make white=0
    bone
    nearly grayscale (blackish to whitish) color map with a tinge of blue; based on colormap of the same name in Matlab, which suggests using it to add an "electronic" look to grayscale images
    colorcube
    enhanced color-cube color map; based on colormap of the same name in Matlab, basically designed to fill the RGB color space with an emphasis on a few pure colors
    cool
    cyan-magenta color map; based on colormap of the same name in Matlab
    copper
    black-copper color map; based on colormap of the same name in Matlab
    dkbluered
    dark blue-white-red colorbar, useful for signed data in conjunction with -Z option to make white=0; similar to bluered but shows a bit more dynamic range for the maxima/minima by darkening at the ends
    flag
    alternating red/white/blue/black color map; based on colormap of the same name in Matlab
    gray
    simple black-to-white grayscale color bar
    green
    white-green color map; useful for translucent overlays with -A
    hot
    black-red-yellow-white color map, useful for nonnegative "intensity" data — based on colormap of the same name in Matlab, loosely resembling the color of heated object at increasing temperatures
    hsv
    red-yellow-green-cyan-blue-pink-magenta color map formed by changing the hue component in the HSV color space; based on colormap of the same name in Matlab, who recommend it for used in plotting periodic data (that is, in which the maximum magnitude and the minimum magnitude are equivalent)
    jet
    blue-cyan-yellow-red color map (a variant of hsv; based on colormap of the same name in Matlab, who based it on a fluid-jet simulation by NCSA
    lines
    oscillating color map; based on colormap of the same name in Matlab (based on the Matlab plot-line colors)
    pink
    pastel black-pink-white color map; based on colormap of the same name in Matlab, used for Sepia tone colorization
    prism
    repeating red-yellow-green-blue-purple-...-green color map; based on colormap of the same name in Matlab
    spring
    magenta-yellow color map; based on colormap of the same name in Matlab
    summer
    green-yellow color map; based on colormap of the same name in Matlab
    vga
    Windows 4-bit color map; based on colormap of the same name in Matlab
    winter
    blue-green color map; based on colormap of the same name in Matlab
    yarg
    simple white-to-black grayscale color bar (the reverse of gray, and almost equivalent to using -gray or gray with -r); this is useful to make contour-like overlays with the -A option because its transparency scale (black is transparent) is the opposite of gray (white is transparent)
    yellow
    white-yellow color map; useful for translucent overlays with -A
  30. @endolith endolith revised this gist May 18, 2012. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion full list.txt
    Original file line number Diff line number Diff line change
    @@ -157,4 +157,9 @@ binary

    added here: https://github.com/matplotlib/matplotlib/commit/47af03d985d9729f3eedc41354fe11a22eff35c4

    meant for barcodes?
    meant for barcodes?




    identify which are isoluminant, divergent, etc