Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple cyclic matplotlib colourmap based on viridis.
import matplotlib.colors
cyclic_viridis = matplotlib.colors.LinearSegmentedColormap.from_list(
(0.25,[256 // 3]),
(0.5,[2 * 256 // 3]),

This comment has been minimized.

Copy link

@makingwaves27 makingwaves27 commented Apr 13, 2021

Thanks! Just what I needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment