8000 Replaced links to colormap packages with link to third-party packages… · matplotlib/matplotlib@dcffef7 · GitHub
[go: up one dir, main page]

Skip to content

Commit dcffef7

Browse files
author
Ellert van der Velden
authored
Replaced links to colormap packages with link to third-party packages list in MPL docs (#20196)
* Replaced links to colormaps with link to MPL docs * Improve link to use full RST.
1 parent 3efd447 commit dcffef7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
8000

tutorials/colors/colormaps.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
********************************
55
66
Matplotlib has a number of built-in colormaps accessible via
7-
`.matplotlib.cm.get_cmap`. There are also external libraries like
8-
[palettable]_ and [colorcet]_ that have many extra colormaps.
7+
`.matplotlib.cm.get_cmap`. There are also external libraries that
8+
have many extra colormaps, which can be viewed in the
9+
`Third-party colormaps`_ section of the Matplotlib documentation.
910
Here we briefly discuss how to choose between the many options. For
1011
help on creating your own colormaps, see
1112
:doc:`/tutorials/colors/colormap-manipulation`.
@@ -32,8 +33,9 @@
3233
perceives changes in the lightness parameter as changes in the data
3334
much better than, for example, changes in hue. Therefore, colormaps
3435
which have monotonically increasing lightness through the colormap
35-
will be better interpreted by the viewer. A wonderful example of
36-
perceptually uniform colormaps is [colorcet]_.
36+
will be better interpreted by the viewer. Wonderful examples of
37+
perceptually uniform colormaps can be found in the
38+
`Third-party colormaps`_ section as well.
3739
3840
Color can be represented in 3D space in various ways. One way to represent color
3941
is using CIELAB. In CIELAB, color space is represented by lightness,
@@ -414,7 +416,7 @@ def plot_color_gradients(cmap_category, cmap_list):
414416
# References
415417
# ==========
416418
#
417-
# .. [colorcet] https://colorcet.pyviz.org
419+
# .. _Third-party colormaps: https://matplotlib.org/mpl-third-party/#colormaps-and-styles
418420
# .. [Ware] http://ccom.unh.edu/sites/default/files/publications/Ware_1988_CGA_Color_sequences_univariate_maps.pdf
419421
# .. [Moreland] http://www.kennethmoreland.com/color-maps/ColorMapsExpanded.pdf
420422
# .. [list-colormaps] https://gist.github.com/endolith/2719900#id7
@@ -424,5 +426,4 @@ def plot_color_gradients(cmap_category, cmap_list):
424426
# .. [bw] http://www.tannerhelland.com/3643/grayscale-image-algorithm-vb6/
425427
# .. [colorblindness] http://www.color-blindness.com/
426428
# .. [IBM] https://doi.org/10.1109/VISUAL.1995.480803
427-
# .. [palettable] https://jiffyclub.github.io/palettable/
428429
# .. [turbo] https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html

0 commit comments

Comments
 (0)
0