matplotlib.colors.from_levels_and_colors(levels, colors, extend='neither') [source]
A helper routine to generate a cmap and a norm instance which behave similar to contourf's levels and colors arguments.
| Parameters: |
|
|---|---|
| Returns: |
|
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.colors.from_levels_and_colors.html