dotools_py.utility.tab30

Contents

dotools_py.utility.tab30#

dotools_py.utility.tab30()[source]#

Create a tab30 colormap.

The colormap can be access using tab30

Return type:

None

Returns:

Returns None

Example

import dotools_py as do
import matplotlib.pyplot as plt
import numpy as np
do.utility.tab30()
plt.figure(figsize=(6, 2))
gradient = np.linspace(0, 1, 256).reshape(1, -1)
gradient = np.vstack([gradient] * 10)  # Stack to make it thicker
plt.imshow(gradient, aspect='auto', cmap="tab30")
plt.axis('off')
../../_images/dotools_py-utility-tab30-1.png