cmap2pixmap

glue.utils.qt.cmap2pixmap(cmap, steps=50, size=(100, 100))

Convert a matplotlib colormap into a QPixmap

Parameters
cmap~matplotlib.colors.Colormap

The colormap to use

stepsint

The number of color steps in the output. Default=50

Returns
pixmapQPixmap

The QPixmap instance