cmap2pixmap

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

Convert a maplotlib colormap into a QPixmap

Parameters:

cmap : ~matplotlib.colors.Colormap

The colormap to use

steps : int

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

Returns:

pixmap : QPixmap

The QPixmap instance