Alphabetical list Categories
luts.set Retrieve and apply a colormap.
Call signature:

luts.set(name, N=None, reverse=False)

Help text:

luts.set(name, n, reverse) is a shortcut for the corresponding call to luts.get, followed by a call to lut.
Use luts.families, luts.family, luts.names to learn which colormaps exist.

Example:

import qplot as qp

import numpy as np

qp.figure('luts.set', 3, 3)

xx = np.tile(np.arange(11), (11,1))

yy = np.transpose(xx)

zz = np.cos(xx) + np.sin(yy)

qp.luts.set("qpjet")

qp.imsc(zz, xx=xx, yy=yy, c0=-2, c1=2)

qp.xaxis('X', [0,5,10], y=-.5, lim=[-.5, 10.5])

qp.yaxis('Y', [0,5,10], x=-.5, lim=[-.5, 10.5])

qp.cbar(width=10)

qp.caxis()

The full collection of available colormaps is shown here.

QPlot Documentation — (C) Daniel Wagenaar, 2014–2023