njuychen / nclcmaps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nclcmaps

duplicate all colortables in NCL 6.3.0 to matplotlib colormaps

Installation:

git clone https://github.com/hhuangmeso/nclcmaps.git
cd nclcmaps
python setup.py install

Usage:

import matplotlib.pyplot as plt
import nclcmaps
import numpy as np

a=np.random.rand(100,100)
plt.pcolormesh(a,cmap=nclcmaps.cmaps('BlueDarkOrange18'))
plt.colorbar()
plt.show()

About

License:GNU General Public License v3.0


Languages

Language:Gnuplot 62.3%Language:Jupyter Notebook 34.8%Language:Python 2.1%Language:NCL 0.7%