Load a Python colormap to FSLeyes
Get RGB colors, one per line, for a given Python colormap. In the script below, we get RGB colors for the jet
matplotlib colormap.
import matplotlib.pyplot as plt
import numpy as np
# Generate the jet colormap
cmap = plt.cm.get_cmap('jet')