mpl_to_qt_color#

glue_qt.utils.mpl_to_qt_color(color, alpha=None)#

Convert a matplotlib color string into a Qt QColor object

Parameters:
colorstr

A color specification that matplotlib understands

alphafloat

Optional opacity. Float in range [0,1]

Returns:
qcolorQColor

A QColor object representing the converted color