cmap2pixmap#
- glue_qt.utils.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
- cmap
- Returns:
- pixmap
QPixmap
The QPixmap instance
- pixmap