mpl_to_qt_color

glue.utils.qt.mpl_to_qt_color(color, alpha=None)[source]

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