cmap2pixmap#

glue_qt.utils.cmap2pixmap(cmap, steps=50, size=(100, 100))#

Convert a matplotlib colormap into a QPixmap

Parameters:
cmapmatplotlib.colors.Colormap

The colormap to use

stepsint

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

Returns:
pixmapQPixmap

The QPixmap instance