You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/colormaps.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,13 @@
1
1
# Colormaps
2
2
3
-
The `cmap.Colormap` type represents a colormap.
3
+
The [`cmap.Colormap`][cmap.Colormap] type represents a colormap.
4
4
5
-
Also known as a LUT (look-up table), a colormap is a mapping from a scalar value to a color. Colormaps are used in a variety of contexts, including image processing, data visualization, and scientific visualization. The `cmap` library provides a [number of built-in colormaps](catalog/index.md), including all of the colormaps in matplotlib, napari, vispy, and more.
5
+
Also known as a LUT (look-up table), a colormap is a mapping from a scalar value
6
+
to a color. Colormaps are used in a variety of contexts, including image
7
+
processing, data visualization, and scientific visualization. The `cmap`
8
+
library provides a [number of built-in colormaps](catalog/index.md), including
9
+
all of the colormaps in matplotlib, cmocean, colorbrewer, colorcet, crameri, and
10
+
more.
6
11
7
12
```python
8
13
from cmap import Colormap
@@ -15,7 +20,7 @@ cm = Colormap('viridis')
15
20
16
21
The following objects can be interpreted as a colormap, and used as the first argument
17
22
to the [`cmap.Colormap`][] constructor; `cmap` refers to these objects collectively as
18
-
"`ColormapLike`". Briefly, valid arguments are of type:
23
+
["`ColormapLike`"][cmap.ColormapLike]. Briefly, valid arguments are of type:
0 commit comments