random_colormap
module wntr.graphics.color
-
random_colormap(N, colormap='jet', name='random', seed=None)[source]
Create a random ordered colormap. Default settings creates a colormap named ‘random’
using the jet colormap.
- Parameters:
N (int) – Number of bins in the colormap.
colormap (str (optional)) – Name of matplotlib colormap
name (str (optional)) – Name of the colormap
seed (int or None) – Random seed
- Returns:
cmap
- Return type:
matplotlib.colors.ListedColormap object