Skip to content

Instantly share code, notes, and snippets.

@QB3
QB3 / discrete_cmap.py
Created December 18, 2020 14:29 — forked from jakevdp/discrete_cmap.py
Small utility to create a discrete matplotlib colormap
# By Jake VanderPlas
# License: BSD-style
import matplotlib.pyplot as plt
import numpy as np
def discrete_cmap(N, base_cmap=None):
"""Create an N-bin discrete colormap from the specified input map"""
@QB3
QB3 / plot_camcan_example.py
Created October 24, 2018 15:52 — forked from massich/plot_camcan_example.py
mne camcan tutorial from parietal's mne assingment
# -*- coding: utf-8 -*-
"""
========================
cam-CAN tutorial dataset
========================
"""