matplotlib.colors.
from_levels_and_colors
(levels, colors, extend='neither')¶A helper routine to generate a cmap and a norm instance which behave similar to contourf’s levels and colors arguments.
Parameters: | levels : sequence of numbers
colors : sequence of colors
extend : {‘neither’, ‘min’, ‘max’, ‘both’}, optional
|
---|---|
Returns: | (cmap, norm) : tuple containing a |