深度マップは、関数 `matplotlib.colors.LinearSegmentedColormap.from_list()` を使って matplotlib のカラーマップとして視覚化することができます。以下はその関数です：
```python
from matplotlib import color
import matplotlib.pyplot as plt

def depth_to_colormap (depth, colorlist):
    cmap = colors.LinearSegmentedColormap.from_list('depth_colormap', colorlist)
    fig, axe  = plt.subplots()
    colormap = axe.imshow(randDepth, aspect="auto", origin="upper", cmap=cmap)
    cbar = fig.colorbar(colormap, ax=axe)
    return
```
colorlist`は深度マップにマッピングされる色のリストで、好みに応じて変更できます。プログラム例を以下に示す：
```python
randDepth = np.random.rand(64, 64)
colorlist = ['#FF0000', '#00FF00', '#0000FF']
depth_to_colormap(randDepth, colorlist)
plt.show()
```
Sure. A depth map can be visualized as a matplotlib colormap with the function `matplotlib.colors.LinearSegmentedColormap.from_list()`. Here is the function:
```python
from matplotlib import color
import matplotlib.pyplot as plt

def depth_to_colormap (depth, colorlist):
    cmap = colors.LinearSegmentedColormap.from_list('depth_colormap', colorlist)
    fig, axe  = plt.subplots()
    colormap = axe.imshow(randDepth, aspect="auto", origin="upper", cmap=cmap)
    cbar = fig.colorbar(colormap, ax=axe)
    return
```
`colorlist` is a list of the colors that will be mapped to the depth map, which can be changed to your preference. An example program is as follows:
```python
randDepth = np.random.rand(64, 64)
colorlist = ['#FF0000', '#00FF00', '#0000FF']
depth_to_colormap(randDepth, colorlist)
plt.show()
```