-
-
Save pmagwene/4222049 to your computer and use it in GitHub Desktop.
Revisions
-
endolith revised this gist
Oct 9, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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) -
endolith revised this gist
Oct 9, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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) -
endolith revised this gist
Oct 9, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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)` -
endolith revised this gist
May 31, 2012 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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), -
endolith revised this gist
May 23, 2012 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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_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*) ============ ======================================================= 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*) brg blue-red-green bwr diverging blue-white-red coolwarm diverging blue-gray-red, meant to avoid issues with 3D -
endolith revised this gist
May 23, 2012 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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? -
endolith revised this gist
May 23, 2012 . 1 changed file with 32 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 [#]_ 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 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`)* ============ ======================================================= 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 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) 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 .. [#] 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>`_ -
endolith renamed this gist
May 23, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
endolith revised this gist
May 22, 2012 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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: _Accent_data = { 'blue': [ -
endolith revised this gist
May 22, 2012 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ # 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': [ -
endolith revised this gist
May 22, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Remapped to segments: _Accent_data = { 'blue': [ -
endolith revised this gist
May 20, 2012 . 3 changed files with 137 additions and 22 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ain# Remapped to segments: _Accent_data = { 'blue': [ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,31 +1,146 @@ 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, using a keyword argument:: imshow(X, cmap=cm.hot) 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. 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 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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'" http://www.wavemetrics.com/products/igorpro/creatinggraphs/colortab.htm all added here: http://sourceforge.net/mailarchive/message.php?msg_id=23330302 -
endolith revised this gist
May 19, 2012 . 1 changed file with 25 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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? -
endolith revised this gist
May 19, 2012 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 - 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 -
endolith revised this gist
May 19, 2012 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
endolith revised this gist
May 19, 2012 . 1 changed file with 46 additions and 51 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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!) 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 @@ -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? -
endolith revised this gist
May 19, 2012 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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 -
endolith revised this gist
May 19, 2012 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -148,19 +148,19 @@ ColorBrewer misc others added at the same time afmhot - Used in atomic force microscopy? brg bwr gnuplot gnuplot2 ocean rainbow seismic 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 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/cyclic/spectral, etc "sequential (quantitative) variables, discrete (qualitative) variables, and bipolar (diverging) variables" -
endolith revised this gist
May 19, 2012 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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" -
endolith revised this gist
May 18, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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: -
endolith revised this gist
May 18, 2012 . 1 changed file with 29 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,34 +1,39 @@ # Remapped to segments: _Accent_data = { 'blue': [ (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.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.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), ], } -
endolith revised this gist
May 18, 2012 . 1 changed file with 32 additions and 25 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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), ], '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), ], } -
endolith revised this gist
May 18, 2012 . 1 changed file with 27 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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)]} -
endolith revised this gist
May 18, 2012 . 1 changed file with 47 additions and 37 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -95,42 +95,50 @@ coolwarm 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 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 "sequential (quantitative) variables, discrete (qualitative) variables, and bipolar (diverging) variables" -
endolith revised this gist
May 18, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 "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 -
endolith revised this gist
May 18, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
endolith revised this gist
May 18, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
endolith revised this gist
May 18, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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/monotonic, sequential/diverging, etc -
endolith revised this gist
May 18, 2012 . 2 changed files with 0 additions and 82 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,36 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,46 +0,0 @@ -
endolith revised this gist
May 18, 2012 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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? identify which are isoluminant, divergent, etc
NewerOlder