From 634ea28dd7b098f4ded5ea0b16ad7447bcb4f454 Mon Sep 17 00:00:00 2001 From: Ellert van der Velden Date: Mon, 10 May 2021 12:01:51 +1000 Subject: [PATCH 1/2] Replaced links to colormaps with link to MPL docs --- tutorials/colors/colormaps.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tutorials/colors/colormaps.py b/tutorials/colors/colormaps.py index 12bbbb50a319..043b31f97ac3 100644 --- a/tutorials/colors/colormaps.py +++ b/tutorials/colors/colormaps.py @@ -4,8 +4,9 @@ ******************************** Matplotlib has a number of built-in colormaps accessible via -`.matplotlib.cm.get_cmap`. There are also external libraries like -[palettable]_ and [colorcet]_ that have many extra colormaps. +`.matplotlib.cm.get_cmap`. There are also external libraries that +have many extra colormaps, which can be viewed in the +[Third-party colormaps]_ section of the Matplotlib documentation. Here we briefly discuss how to choose between the many options. For help on creating your own colormaps, see :doc:`/tutorials/colors/colormap-manipulation`. @@ -32,8 +33,9 @@ perceives changes in the lightness parameter as changes in the data much better than, for example, changes in hue. Therefore, colormaps which have monotonically increasing lightness through the colormap -will be better interpreted by the viewer. A wonderful example of -perceptually uniform colormaps is [colorcet]_. +will be better interpreted by the viewer. Wonderful examples of +perceptually uniform colormaps can be found in the +[Third-party colormaps]_ section as well. Color can be represented in 3D space in various ways. One way to represent color is using CIELAB. In CIELAB, color space is represented by lightness, @@ -414,7 +416,7 @@ def plot_color_gradients(cmap_category, cmap_list): # References # ========== # -# .. [colorcet] https://colorcet.pyviz.org +# .. [Third-party colormaps] https://matplotlib.org/mpl-third-party/#colormaps-and-styles # .. [Ware] http://ccom.unh.edu/sites/default/files/publications/Ware_1988_CGA_Color_sequences_univariate_maps.pdf # .. [Moreland] http://www.kennethmoreland.com/color-maps/ColorMapsExpanded.pdf # .. [list-colormaps] https://gist.github.com/endolith/2719900#id7 @@ -424,5 +426,4 @@ def plot_color_gradients(cmap_category, cmap_list): # .. [bw] http://www.tannerhelland.com/3643/grayscale-image-algorithm-vb6/ # .. [colorblindness] http://www.color-blindness.com/ # .. [IBM] https://doi.org/10.1109/VISUAL.1995.480803 -# .. [palettable] https://jiffyclub.github.io/palettable/ # .. [turbo] https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html From 264695132aed01194d50c0f0d7b7f0da256fdba4 Mon Sep 17 00:00:00 2001 From: Ellert van der Velden Date: Mon, 10 May 2021 15:37:15 +1000 Subject: [PATCH 2/2] Improve link to use full RST. --- tutorials/colors/colormaps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/colors/colormaps.py b/tutorials/colors/colormaps.py index 043b31f97ac3..bbcd5c188daf 100644 --- a/tutorials/colors/colormaps.py +++ b/tutorials/colors/colormaps.py @@ -6,7 +6,7 @@ Matplotlib has a number of built-in colormaps accessible via `.matplotlib.cm.get_cmap`. There are also external libraries that have many extra colormaps, which can be viewed in the -[Third-party colormaps]_ section of the Matplotlib documentation. +`Third-party colormaps`_ section of the Matplotlib documentation. Here we briefly discuss how to choose between the many options. For help on creating your own colormaps, see :doc:`/tutorials/colors/colormap-manipulation`. @@ -35,7 +35,7 @@ which have monotonically increasing lightness through the colormap will be better interpreted by the viewer. Wonderful examples of perceptually uniform colormaps can be found in the -[Third-party colormaps]_ section as well. +`Third-party colormaps`_ section as well. Color can be represented in 3D space in various ways. One way to represent color is using CIELAB. In CIELAB, color space is represented by lightness, @@ -416,7 +416,7 @@ def plot_color_gradients(cmap_category, cmap_list): # References # ========== # -# .. [Third-party colormaps] https://matplotlib.org/mpl-third-party/#colormaps-and-styles +# .. _Third-party colormaps: https://matplotlib.org/mpl-third-party/#colormaps-and-styles # .. [Ware] http://ccom.unh.edu/sites/default/files/publications/Ware_1988_CGA_Color_sequences_univariate_maps.pdf # .. [Moreland] http://www.kennethmoreland.com/color-maps/ColorMapsExpanded.pdf # .. [list-colormaps] https://gist.github.com/endolith/2719900#id7